Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-07-2003, 04:14 AM   #1
WiredGuy
Pounding Googlebot
 
Industry Role:
Join Date: Aug 2002
Location: Canada
Posts: 34,486
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
__________________
I play with Google.
WiredGuy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-07-2003, 04:29 AM   #2
hybrid
So Fucking Banned
 
Join Date: Jul 2002
Location: Backseat of a Ford Escort Hatchback
Posts: 3,253
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.
hybrid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-07-2003, 05:07 AM   #3
Easton
Too lazy to set a custom title
 
Easton's Avatar
 
Industry Role:
Join Date: Sep 2002
Location: Phoenix, AZ
Posts: 9,825
i'm smashed outta my mind... time for bed guys!
__________________
New models booked and shot every week... MILFs, pornstars and teens. Girls for every niche and project.
Looking for high-quality affordable exclusive content? Check me out at Easton Content for all the details.
Easton is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-07-2003, 05:54 AM   #4
LuSiD
Confirmed User
 
Join Date: Dec 2002
Location: South Florida
Posts: 434
Quote:
Originally posted by WiredGuy
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
Might want to try top.window.document.VAR1 and top.window.document.VAR2

If that doesn't work, then no clue. But goodluck.
__________________
I bought a dog the other day... I named him Stay. It's fun to call him... "Come here, Stay! Come here, Stay!" He went insane. Now he just ignores me and keeps typing.
LuSiD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-07-2003, 09:23 AM   #5
NetRodent
Confirmed User
 
Join Date: Jan 2002
Location: In the walls of your house.
Posts: 3,985
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.
__________________
"Every normal man must be tempted, at times, to spit on his hands, hoist the black flag, and begin slitting throats."
--H.L. Mencken
NetRodent is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-07-2003, 12:57 PM   #6
WiredGuy
Pounding Googlebot
 
Industry Role:
Join Date: Aug 2002
Location: Canada
Posts: 34,486
Quote:
Originally posted by NetRodent
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.
Yes, both all documents (main page, hidden frame and visible frame) are all on the same domain. The main page calls two frames, the invisible one is called /blank.html and the visible one is /content/index.html

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
__________________
I play with Google.
WiredGuy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-07-2003, 02:13 PM   #7
whee
Confirmed User
 
Join Date: Sep 2002
Location: http://www.nightstation.com
Posts: 1,375
Name the frames and collect the vals from the name instead
__________________
http://www.nightstation.com
whee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-07-2003, 02:17 PM   #8
Cogitator
Confirmed User
 
Join Date: Feb 2002
Location: Florida
Posts: 672
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".
__________________
- this space intentionally left blank -
Cogitator is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-07-2003, 03:36 PM   #9
WiredGuy
Pounding Googlebot
 
Industry Role:
Join Date: Aug 2002
Location: Canada
Posts: 34,486
Quote:
Originally posted by whee
Name the frames and collect the vals from the name instead
The data is stored in the root page, the one that calls the 2 frames. I can't move the data into the framed pages because this is dynamically generated.

WG
__________________
I play with Google.
WiredGuy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.