Go Back   Velocity Reviews > Newsgroups > PERL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

PERL - CGI checkbox labelling confuses javascript

 
Thread Tools Search this Thread
Old 07-11-2006, 07:53 PM   #1
Default 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>...</label> block 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


Greg G
  Reply With Quote
Old 07-12-2006, 12:56 AM   #2
Mumia W.
 
Posts: n/a
Default Re: CGI checkbox labelling confuses javascript

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>...</label> block 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?

  Reply With Quote
Old 07-12-2006, 03:38 PM   #3
Greg G
 
Posts: n/a
Default Re: CGI checkbox labelling confuses javascript

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>...</label> block 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

  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump