![]() |
JScript Coding Question
Ok, I'm a bit stumped on this, so hopefully someone can help:
Document A has an Invisible Frame and the rest of the page is visible, so: DOC 1 -> Frame A (hidden) and Frame B (full) On Document 1 I have 2 Jscript variables (on the page that defines the frames). On Frame B I need to access the data stored in these 2 variables. How do I reference that data, I thought it would be top.window.VAR1 and top.window.VAR2 but I keep getting undefined. Anyone have an idea? Thanks WG |
www.gurusnetwork.com
Every single time I have a question or a problem, this is the place to find solutions. Seriously, almost everyone there knows their shit. |
i'm smashed outta my mind... time for bed guys!
|
Quote:
If that doesn't work, then no clue. But goodluck. :thumbsup |
Are all of the documents on the same domain? If the frames call documents on other domains there is no direct way to access the variables. The only way to communicate between two frames on different hosts is to pass data via the window.status variable.
|
Quote:
How do you use the window.status variable to pass data since I keep getting undefined errors. Any other suggestions will really help. Thanks everyone. WG |
Name the frames and collect the vals from the name instead
|
Frames are treated like windows in code. If the frames are inside another frame, your code won't work. You might want to try "window.parent.VAR1".
|
Quote:
WG |
All times are GMT -7. The time now is 04:27 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123