Click to See Complete Forum and Search --> : problem with Script


nicoescribal
07-04-2005, 12:00 PM
i have some problems with a script.
I have made a web page HTML with two frames one in the upper part and one bellow it.
I would like to get the url of the page that is in the upper frame. I store it in a variable as follows.
var variable = parent.frames[0].location.href
It says that i have a security error.
What shall I do to get the url of the page shown in the frame that is at the top?
I am using IExplorer 6 Win XP with SP2.
Thak You

NICOLAS ESCRIBAL

phpnovice
07-04-2005, 02:23 PM
If you're getting a security error, then the document in that other frame is not within the same domain as the current document. There is no work-around for this problem. Cross-domain scripting is not allowed. Period.