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!

URL to override frames page defaults?

Status
Not open for further replies.

benjamenus

Programmer
Dec 3, 2001
157
GB
My index.htm is a frames pages (2 frames) that by default calls contents.htm and home.htm. If I update the site I send an email out saying "go to and click on new".

Is is possible to send out a URL which calls the frames page but overrides the defaults, so instead it would call contents.htm and new.htm? Also, in the syntax for that URL would it be possible to specify a bookmark within new.htm to jump to?

Thankyou in advance.
 
it would be possible i guess if you use a server scripting

zzzzzz
 
use a Self-Referencing Frameset
normally used for SEO but will work just as well for your purpose.
All you will need to do then is send the URL of the page and the frames will be called around the page.

If you have problems with some links creating framsets within the frameset just add target="_parent" to the problem ones.



Chris.

Indifference will be the downfall of mankind, but who cares?
 
Assuming you do not have access to any server-side code:

You could just build another copy of index.htm which loads contents.htm and new.htm... this might be called: updates.htm and is identical except to index.htm except that it loads new.htm instead of home.htm.

This is not a perfect solution... but it's something you could put in place immediately for a guaranteed solution.

Regarding having it travel directly to an anchor name (bookmark) within new.htm, that will require you to dabble in a little Javascript - in the updates.htm file at the frameset level... basically picking off the parameter that was passed into the URL and then using document.write to write the location in the call to new.htm.

Let us know if you have access to do this server-side (the better way) or if you are limited to just Javascript.

Jeff

 
Thanks for the suggestions everyone. I'll do a little investigation and see which works best for me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top