| 12:29 pm on Mar 29, 2002 (gmt 0)|
try using an array reference.
| 12:41 pm on Mar 29, 2002 (gmt 0)|
Does this means that I can't use the id attribute? It will be hard to use the array reference becuase the pages are dynamic, and so the number and position of checkboxes varies enormously...
| 12:45 pm on Mar 29, 2002 (gmt 0)|
why do you need the name the same for the asp? If your using vb then add a 1, 2 to the end then when you request the checkboxes do loop them and do a replace.
| 12:50 pm on Mar 29, 2002 (gmt 0)|
I haven't written the ASP code. I simply get the resulting HTML, but I fear that it may not be enough to work with unless I can use the ID tags.
It's not just a case of numbering them 1, 2, 3... either. The layout has multiple two dimensional matrices, so the numbering needs to be more like 'ID_1_0_1_3'. This is why accessing them correctly through the array reference is tricky.
| 2:54 pm on Mar 29, 2002 (gmt 0)|
Why not let the value of the "name" attribute be the same as the "id"?
Then, in NN4: document.forms[formName].chkboxName
and dom1 browsers: document.getElementById('chkboxName')
| 2:58 pm on Mar 29, 2002 (gmt 0)|
| 3:14 pm on Mar 29, 2002 (gmt 0)|
That's what doesn't make any sense. I think the ASP has to be the place that changes. What good are name tags in a room, if everyone is named Bob?
| 3:19 pm on Mar 29, 2002 (gmt 0)|
| 6:33 pm on Apr 3, 2002 (gmt 0)|
why don't you try document.formname.elements? Give this a try.
| 6:54 pm on Apr 3, 2002 (gmt 0)|
I think you have to do it with document.layers in Netscape 4, but I'm not sure as I've never tried it. You might find this page useful: