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" <David.Durham1....@scott.af.mil>
Subject RE: [OT] RE: javascript html:fprm and getElementById
Date Tue, 28 Jun 2005 18:50:58 GMT
oops
 
<snip>


>       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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message