467,122 Members | 1,319 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,122 developers. It's quick & easy.

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
  • viewed: 3564
Share:
2 Replies
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by claudel | last post: by
5 posts views Thread by DotNetJunkies User | last post: by
34 posts views Thread by clinttoris@hotmail.com | last post: by
10 posts views Thread by rn5a@rediffmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.