473,236 Members | 1,595 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,236 software developers and data experts.

CGI checkbox labelling confuses javascript


I'm using a bit of javascript code to get the object type of cells in a
table. However, because of the way CGI's checkbox function puts a
<label>...</labelblock around the checkbox. This confuses javascript
which says that the type of object in that cell is unknown.

This seems to be a new feature in the checkbox function. I had this
same code running under FC2 (sorry, I don't know what the perl version
or version of CGI I had running), but it does this label block under
5.8.6/CGI 3.10

Is there any way to suppress this label block?

Thanks.

-Greg G
Jul 11 '06 #1
2 3679
Greg G wrote:
I'm using a bit of javascript code to get the object type of cells in a
table. However, because of the way CGI's checkbox function puts a
<label>...</labelblock around the checkbox. This confuses javascript
which says that the type of object in that cell is unknown.
[...]
Hi Greg.

What's stopping you from writing the HTML code for the
checkbox directly?

Jul 11 '06 #2
Mumia W. wrote:
Greg G wrote:
>I'm using a bit of javascript code to get the object type of cells in a
table. However, because of the way CGI's checkbox function puts a
<label>...</labelblock around the checkbox. This confuses javascript
which says that the type of object in that cell is unknown.
[...]

Hi Greg.

What's stopping you from writing the HTML code for the
checkbox directly?
Frankly, the code is much more readable if I use the convenience
functions. I'm trying to eliminate directly coding the HTML.

I guess I'm really irked that this was added in with no option to not
use it.

-Greg G

Jul 12 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: claudel | last post by:
Hi I have a newb PHP/Javascript question regarding checkbox processing I'm not sure which area it falls into so I crossposted to comp.lang.php and comp.lang.javascript. I'm trying to...
12
by: zig | last post by:
I've posted this on alt.comp.lang.coldfusion, but is predominantly a javascript problem: I have a CF query which returns several rows of records. I wanted to have a checkbox on each record of...
5
by: Leo J. Hart IV | last post by:
Hello, I'm hoping someone can help me out. I was wondering if the Enabled property of a CheckBox or RadioButton server control is stored in the ViewState. If not, is there some way to to add...
5
by: DotNetJunkies User | last post by:
1. i want to populate checkboxlist using javascript only at client side ....how can i do this..by populate word i mean that checkboxes should be checked or unchecked on some condition basis.......
34
by: clinttoris | last post by:
Hello Experts, I have been told to post this in the Javascript forum as I want to do this client side just before my form gets submitted. Once the user clicks the submit button a javascript...
10
by: rn5a | last post by:
All the rows in a DataGrid, including the Header, are accompanied with a CheckBox. I want that when the CheckBox in the Header is checked, then all the CheckBoxes should automatically get checked....
2
by: Martin | last post by:
At the top of a page I'm displaying a check box thus: <input type='checkbox' name='ckbx1' onClick='saveStatus("ckbx1");'>ABC I then execute the following to set the check box to whatever it was...
0
by: cyberdawg999 | last post by:
Greetings all in ASP land I have overcome one obstacle that took me 2 weeks to overcome and I did it!!!!! I am so elated!! thank you to all who invested their time and energy towards helping me...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.