In general, IE seems to treat
myObject['myProperty']
the same as
myObject.myProperty.
This is true to the extent that if you say
document.all['nonExistentControl']
it will give you the error message
document.all.nonExistentControl is null or not an object.
Dunno about other browsers.
-----Original Message-----
From: Teng-Fong SEAK [mailto:tfseak@f...]
Sent: Wednesday, October 30, 2002 1:58 AM
To: javascript
Subject: [javascript] RE: Submit frame1 from frame2
> In onload of frame2 call this
>
> parent.frames.fra_1.document.frm_1.submit();
Not really correct. It should be
parent.fra_1.document.frm_1.submit();
as Robert points out (this time, I remember to give credit to you ;) )
or
parent.frames["fra_1"].document.frm_1.submit();
Your syntax might be accepted by IE (I haven't tried), but it might
be just a bug.
> fra_1 : name of frame 1
> frm_1 : name of form of the document in fra_1
>
> Regards,
> Chandrabhan Dutta Majumdar
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20