Click to See Complete Forum and Search --> : Passing info from outside site between frames


asp_beginner
06-22-2003, 02:46 PM
Hello,

I have two frames on a page right now. I'm trying to make it so that one frame would just be a page like Yahoo or anything like that, and the other frame would always display the URL of the page.

I know I can see the URL of a page through using ASP's Request.ServerVariables collection, but I don't know how to apply it to an external site.

Would anyone know how to do what I'm trying to do? Any help would be really appreciated. Thanks!

TBor
06-26-2003, 09:01 AM
If you just want to find out the URL of the page you've got open in the other frame, you should be able to use client-side script and reference the location.href of the other frame.

For instance, if you're opening Yahoo in a frame called "main" and want to display the URL of Yahoo in another frame called "URL", just reference Parent.main.location.href from within the URL frame.

You can use Parent.frames("framename").location.href, or just Parent.framename.location.href.

Hope that makes sense, and it's what you're looking for.

TBor

TBor
07-01-2003, 09:46 AM
My mistake. Sorry all!

TBor