ethar turky
asked on
frame
Dear all,
How get passed Parameter to parent window from inside frame?
How get passed Parameter to parent window from inside frame?
ASKER
I want a variable that was "SENT" to the parent window
http://xx.com/x.asp?param1=t
I want to get param1 from frame window.
Thanks
http://xx.com/x.asp?param1=t
I want to get param1 from frame window.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks very much
ASKER
This is answer my question perfectly, but I have one more question,
the value now stored in javascript , how can pass it to asp code?
Thanks.
the value now stored in javascript , how can pass it to asp code?
Thanks.
You have to refresh the page and attach it to the end of your URL in the frame. That's the only way, then you can pick it out with ASP. For instance:
self.location=self.locatio n.href+par am;
Then grab it out of the URL with ASP.
self.location=self.locatio
Then grab it out of the URL with ASP.
Can you elaborate a little? Are you passing a variable that is inside the frame to the parent? Or do you want a variable that was set in the parent window? If the latter, you can use parent.variableName.
Regards,
Zyloch