General discussion

Locked

Javascript variables between FRAMES

By Mike@IHS ·
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

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Javascript variables between FRAMES

by yagar In reply to Javascript variables betw ...
Collapse -

Javascript variables between FRAMES

by Mike@IHS In reply to Javascript variables betw ...

Poster rated this answer

Collapse -

Javascript variables between FRAMES

by joakim.kosmo In reply to Javascript variables betw ...

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.

Collapse -

Javascript variables between FRAMES

by Mike@IHS In reply to Javascript variables betw ...

Poster rated this answer

Collapse -

Javascript variables between FRAMES

by Mike@IHS In reply to Javascript variables betw ...

This question was closed by the author

Back to Web Development Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums