cdemott33
asked on
Get the parent URL for an iFrame
I have a page on one domain. (www.mypage.com/mydirectory/defaults.asp)
Within this page is an iframe that points to a different URL. (www.differenturl.com/calendar.aspx)
When the calendar.aspx page loads in the iFrame I need it to get the URL of the page that loaded the iFrame. So basically I need it get this:
www.mypage.com/mydirectory/
Is there a way to do this? If so, can you please explain how. Thanks!
Within this page is an iframe that points to a different URL. (www.differenturl.com/calendar.aspx)
When the calendar.aspx page loads in the iFrame I need it to get the URL of the page that loaded the iFrame. So basically I need it get this:
www.mypage.com/mydirectory/
Is there a way to do this? If so, can you please explain how. Thanks!
That may be listed in the referrer information in the http headers.
ASKER
Is there a way I could get this information using VB.NET? If so, how?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi patil786 -
When I click the button the response.write displays "www.google.com". I want to get www.mypage.com/mydirectory/defaults.asp. Any thoughts on how I can do this?
When I click the button the response.write displays "www.google.com". I want to get www.mypage.com/mydirectory/defaults.asp. Any thoughts on how I can do this?
can you post your code here.
are you referring any google code like google checkout, payment gateway etc..
are you referring any google code like google checkout, payment gateway etc..