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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reference a frames page from e-mail link

Status
Not open for further replies.

bmacman

IS-IT--Management
Feb 19, 2001
51
US
Hello, I am trying to reference a specific page in an e-mail link to a website that is utilizing framesets. The problem is that when I click on the link, I do not get the frames along with the page that I want to see, I only get the page in full screen mode. Is there anyway that I can specify a page in a link that will include the framesets without using the index page as my link? I know that this sound confusing, but I could not think of any other way to describe what I am trying to do. Any help with this would be greatly appreciated.

Thank You
B
 
Oh I see - you want specific pages loaded in the frameset - and it's not the ones you originally put in there - am I right? So here you can use a query string.

This involves two parts really. One is the information you send - called the querys string, which adds on to the URL in the link like so:

<a href=&quot;frameset.htm?page=page_1.htm&quot;>web-site</a>

The red part is sent to the URL, and is held, by frameset.htm here, in document.location.
So if you were to look at document.location - it would contain ?page=page_1.htm.

So in the frameset, you need to add code to get this string, take out the info - and use it, see if this faq will help: faq216-343 ;-)

You will end up chopping up the string, then getting the piece you want, and resetting the appropriate frames src to that.

b2 - benbiddington@surf4nix.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top