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!

website roadmap

Status
Not open for further replies.

shades44

Programmer
Jun 14, 2004
25
CA
hello,

i'm trying to create a navigation path (roadmap) that shows users where they are in my website.. i have two frames, one is the main frame where the pages are loaded and the other is the contents frame and where i want my roadmap path to appear. My question is this: i want my contents frame to listen to my main frame and modify the roadmap string (for example: Home/Products/ ets..) everytime a new page is loaded. This doesnt work:

//Contents Frame
window.parent.document.frames[1].onload=alert;

I've heard that with frames things get a bit messy. Can anyone help?
 
How are you planning to modify the roadmap string? Do you already have a Javascript function to do it?

--Chessbot

"In that blessed region of Four Dimensions, shall we linger on the threshold of the Fifth, and not enter therein? Ah, no! [...] Then, yielding to our intellectual onset, the gates of the Sixth Dimension shall fly open; after that a Seventh, and then an Eighth -- --" Flatland, A. Square (E. A. Abbott)
 
yeah that's all taken care of.. all i need to be alerted on is everytime the main frame is reloaded so i can do what i need to do in the contents frame.
 
On every main page, include a js file such as "roadmap.js".
The contents?
Code:
onload = parent.frames['contentsFrame'].location.reload;
// or change name of frame if necessary

--Chessbot

"In that blessed region of Four Dimensions, shall we linger on the threshold of the Fifth, and not enter therein? Ah, no! [...] Then, yielding to our intellectual onset, the gates of the Sixth Dimension shall fly open; after that a Seventh, and then an Eighth -- --" Flatland, A. Square (E. A. Abbott)
 
im desperately trying to avoid having to go to every main page because there are close to a hundred.. but i'm beginning to see that's the only way.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top