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

.



Relevant Pages

  • Re: PHP-Javascript method for auto-selecting checkbox groups
    ... Ok, back to the drawing board, it didn't work when my colleague tested ... I tried with the HTML code below, but IE spat out the following: ... > If you want to ease your pain a bit, you could consider using my "Checkbox ...
    (alt.php)
  • Re: PHP-Javascript method for auto-selecting checkbox groups
    ... Ok, back to the drawing board, it didn't work when my colleague tested ... I tried with the HTML code below, but IE spat out the following: ... > If you want to ease your pain a bit, you could consider using my "Checkbox ...
    (comp.lang.php)
  • Handling events for Checkbox in Data Grid
    ... control inside a datagrid, ... In its HTML code, set AutoPostBack=true and there is an ... the 'onCheckChanged' Event of the checkbox. ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • Checkbox Question
    ... I have a script that will work on it is own, but the problem is the site I ... am trying to implement the checkbox on a site with attachments on the same ... Here is a snippet from the HTML code ... Dim mySmartUpload, intCount, Conn, RS ...
    (microsoft.public.inetserver.asp.general)
  • Re: CheckBox web controls using a loop
    ... HTML code: ... private void Button1_Click(object sender, System.EventArgs e) ... if (c is CheckBox) ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)