Problem with frame with netscape

They have: 9 posts

Joined: Jun 2000

Hi,
I would like to communicate with two frames, but I don't manage with Netscape.
Here is my problem...

parent.start.form.marque.value=2;
or
top.start.form.marque.value=2;

start is the name of my left frame, form is the name of my form & marque my text field.

It works perfectly with ie but Netscape told me that parent.start.form has no properties...

Any idea??

Thanks a lot

Gauthier

They have: 231 posts

Joined: Feb 2000

Maybe Netscape doesnt like you using the name 'form' for your form. If that wont work , then send us a url.

They have: 9 posts

Joined: Jun 2000

I find the solution...

parent.frames['start'].document.forms['form'].Marque.value=2;

Thanks for your help...

They have: 99 posts

Joined: May 1999

You found the solution, but the key is not the
frames[number] array reference or the
document.forms[number] array reference, it is simply refering to the form field using the

top.framename.document.formname.fieldname.value method -or-

parent.framename.document.formname.fieldname.value method (the difference is relative vs absolute reference)

IE allows you to drop the ".document." portion, but netscape complains. You may certainly use the frames[#] or forms[#] arrays, but it is simpler to refer to the frame or form name directly.

Also, just in case you ever wish to communicate between parent and child windows, make sure you use the windowname.opener=parentframename method. By doing this, the child can talk back to the parent (and any frames associated with the parent).

Tazman

[Edited by tazman on 07-12-2000 at 01:27 AM]

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.