Forum Moderators: open

Message Too Old, No Replies

problem with <iframe> and Mozilla browser

         

thamps

10:32 am on Jul 11, 2005 (gmt 0)

10+ Year Member



i am Having a Main.jsp and inside that i am using two frames( <iframe> ).the 'src' of these frames are two jsp files( frame1.jsp,frame2.jsp). when i click on a link in first frame i am calling a javacript funcion and in that iam trying to get value of a field (for example a
hidden field 'id') from the second frame.

i used the following code to get the value from second frame in the javascript( javascript is written in frame1.jsp)

var id=parent.document.SecondFrameName.form[0].id.value

in IE iam able to get this value. but in Mozilla and Konqueror browsers i am not getting this .

plz send me a solution to get a value from one frame
in to the javascript of other frame.

encyclo

1:00 pm on Jul 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In Mozilla and Firefox there is usually a Javascript Console (under the Tools menu). What errors (if any) is it displaying when you view that page?

Also, have you tried using

[b]window[/b].parent.document....
?