[EMAIL PROTECTED] (Sheetal) wrote in message 
news:<[EMAIL PROTECTED]>...
> I am running into some cross reference javascript variable bugs in netscape
> I have to 2 frames from one frame I call the javascript varible of another
> frame. The problem is sometime it works some time doesnt. Some time It throughs
> some error in javascript console.
> 
> Is there some bug in 6.1 in refering cross frame varibles/object ?
> 
> Any help would be apprecited
> 
> Sheetal

I think there is a bug with NS6.1 losing the names of frames which
doesn't appear in any earlier versions of NS, including NS6.0 and
6.01.  This would account for the problems in cross referencing.  Try
putting a Javascript detect in to see what the browser thinks the
frame names are, such as

alert(top.frames[0].name + "  " + top.frames[1].name) 

I think you'll be surprised at what you get back.

You can change/force the name of the frame on the fly with;

top.frames[1].name = "myName"  // or whatever name you want to give
it.

but in my experience it's not long before NS screws it up again, so
you have to constantly set this before you reference the frame.

John

Reply via email to