Discussion Locked

Javascript variables between FRAMES

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a Javascript problem retreiving variables through frames. I have 2 frames, upper and lower where I initialize variables in functions. I'm trying to access the variables of the upper frame either by a call to the frame's function (javascript:parent.upper.function() ) or directly (myVar = parent.upper.otherVar; ) and I keep getting the error "Permission Denied" to access the upper frame variables. I'm using IE (5.0) and apparently you can't access different frame variables or functions with this version of the browser or lower. If this is true, I would really appreciate some info on how to overcome this problem !!

Thanks!
Mike@IHS

5 replies

by joakim.kosmo

Is the frames in the framesets on the same server? If not, you will not be able to access elements from one page to the other. You could maybee update the location.href property of the other frame, and this way send some query parameter. But this means server-client communications, and would be time consuming.

This discussion is closed to new replies.