Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

finding a _parent's domain name address via an iframe

Status
Not open for further replies.

ralphonzo

Programmer
Apr 9, 2003
228
GB
a bit convaluted this one, sorry!

i'm embedding an asp page with form into different web pages via an iframe. these pages may be asp, php, htm, etc, which is why i'm keeping the asp seperate. to make the app work, i need to find the domain name address of each _parent page to send as a hidden field from the iframe page. the ip address isn't much use as i need to redirect to the precise page once the server work is complete.

does anyone know if there's any way to get this info?
 
ok, bit dumb really. i can grab the address in the receiving page via javascript document.referrer and then use that to fire back.

is there another way?? just as a matter of interest.
 
ralp, javascript is the only way to do this. serverside scripting will not be able to read the url of the parent.


Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top