You are not logged in.

#1 2011-09-23 16:58:29

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

JavaScript window.top problems [Solved]

Hi all,

I'm currently tinkering with a Project and I'm trying to access the object window.top from within a JS file
i know that the object exists because with the current setup

Main Frame (object is here) 2nd Frame (i can access it here) js file (can only get null or unassigned when i call parent.top or window.parent)


i'm simply trying to share a string between the pages much like a global variable, i think i read somewhere that because the js is loaded it creates it's own window.top and therefore can't see the original window.top object.

Please help this is starting to tick me off

Regards
Matthew

Last edited by genisis300 (2011-09-24 20:04:20)


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

#2 2011-09-24 20:05:15

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Re: JavaScript window.top problems [Solved]

I Worked out that the script was being called before i was setting the Variable in the 1st place smile

Now i got that Fixed Let the code Role smile


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

Board footer

Powered by FluxBB