I have a web page with 3 frames on a page. I am moving information from one frame to other using java script. An example of the line i am using is:
selectsquad is the frame name
SelectSquad is the form name
When in ie 5 I have no problems the value of play moves across to the text box goalkeeper1_id no problem. However when I run the same page in netscape navigatopr 4.7 I get the following error message :
parent.selectsquad.SelectSquad has no properties.
Do I access the frame diffently in netscape?
debug your script
Try using alerts to figure out where your objects are.
var myframe = parent.selectsquad;
var myform = parent.selectsquad.SelectSquad;
alert('frame: ' + myframe + '\nform: ' + myform);
I think you've got the frame identified, but I'll bet there's something wrong with the way your addressing the form. Maybe it hasn't been created yet.
Also, try using the frames, forms, and elements arrays to get at the object. Try testing them by returning the length of each.
If parent.selectsquad.SelectSquad.goalkeeper1_id is a selectbox you have to use this to make it work in both browsers:
I think IE automatically knows that you want to know the value of the selected item of the selectbox, but somehow NN does not.
Maybe this was not your problem?