Gotcha, thanks for clarifying :)
Frank
-----Original Message-----
From: "Nitish Kumar"<[EMAIL PROTECTED]>
Sent: 6/27/05 2:23:48 AM
To: "'Struts Users Mailing List'"<[email protected]>
Subject: RE: javascript html:fprm and getElementById
Sorry for getting mixed up with terms, I didnt mean casting as in terms of
Java, :)
document.getElementById always returns object and then if we start treating
it as frames or forms. It some times doesnt work..
Thanks and Regards,
Nitish Kumar
-----Original Message-----
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Monday, June 27, 2005 10:40 AM
To: [email protected]
Subject: RE: javascript html:fprm and getElementById
Remember that getElementById is the "standards-compliant" method, the others
are not, IIRC. They of course work too, but when manipulating DOM objects,
getElementById is supposed to be used, according to the current standards.
Is there such a thing as casting in JS? I'm not sure. I don't think there
is as far as object references go anyway, but I could be wrong.
Frank
-----Original Message-----
From: "Nitish Kumar"<[EMAIL PROTECTED]>
Sent: 6/27/05 12:37:42 AM
To: "'Struts Users Mailing List'"<[email protected]>
Subject: RE: javascript html:fprm and getElementById
I geuss, some thing working or not working in JavaScript is a lot
dependent
on what version of what browser, are you using.
Well, Any ways, from my previous experience with JavaScript, usually
document.getElementById gives you an object, and casting it to form
doesnt
work all the time..
it is always better to use document.forms[i].action .
Thanks and Regards,
Nitish Kumar
-----Original Message-----
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Monday, June 27, 2005 3:05 AM
To: Struts Users Mailing List
Subject: Re: javascript html:fprm and getElementById
Why do you believe this does not work? I just tried in IE and it worked
[Message truncated. Tap Edit->Mark for Download to get remaining portion.]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]