struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Durham David R Jr Ctr 805 CSPTS/SCE" <>
Subject RE: [OT] RE: javascript html:fprm and getElementById
Date Tue, 28 Jun 2005 18:50:58 GMT

>       if (isIE && startNode.nodeName == "FORM" && criteria == "name"){
>         if (startNode.attributes['name'].nodeValue == value) {
>           return startNode;
>         }
>       } else {

The code above is not needed.  It has something to do with an IE problem
with Form Nodes and the Node.getAttribute() method.  If you execute
aFormNode.getAttribute("name"), and you have an <input name="name"> in
the form, ha ha, it returns the value of the input instead of the form
tag attribute.  Doesn't seem to do that with attributes['x'].  Anyway,
this is definitely OT, and maybe something like document.forms['myForm']
is more appropriate for your problem.

- Dave

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message