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

can a frameset be set up so that the URL shows its changes

Status
Not open for further replies.

fpl9250

Programmer
Jan 22, 2007
46
US
Hello,

I'm wondering if there's a way of setting up a frame set so that it shows the whole URL at the top as the user goes to different pages. In other words, when the user goes to about.html, I want the parent frame to show xyz.com/about.html

Can this be done?

Thanks in advance for your responses.
 
not sure but you might be able to use javascript to change the <title> of the parent frame, you definately can't do it with CSS or HTML.

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
You're not really going to 'about.html'. You're staying at home.html and loading 'about.html' in the frame.

Don't use frames if that's what you want. (Not to add fuel to the fire over this topic on this forum, but there are very few good reasons to continue to use frames.)

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
if you use XHTML strict you won't be able to use framesets, so concider your document type first, as this affects what tags are available to you!

frames have their place and I use them to good effect for our members area where i want to have a permanent menu at the top without re-rendering for each page, on top of which it runs behond the scenes AJAX to keep the session / login live.

Work out what you want to do and why before you do the 'how'

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
I already have worked out what I want. Here's why I need this. I'm redoing my site from 100% flash to HTML with Flash. The whole site will be URL oriented vs one Flash file loading everything. The drawback is that I can't have music playing throughout the site seamlessly. So I'm looking for a javascript that will reload any given page in a frame set. The problem is that I'll be sending out campains with specific URLs and I need that URL to show at the top, and if someone copies the URL and sends it someone, I need it to be the correct one. I guess showing the URL as it changes is not the biggest priority but it's certainly something I need.

thanks for your replies.
 
chris read my post again , i said
XHTML strict

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
XHTML strict is simply a DTD

You could follow the strict coding practices of XHTML and use the XHTML transitional DTD if you so wished.

Your post read as if you were suggesting that you could only use strict XHTML code practices with the one DTD.



Chris.

Indifference will be the downfall of mankind, but who cares?
Woo Hoo! the cobblers kids get new shoes.
People Counting Systems

So long, and thanks for all the fish.
 
lol - sorry, it's the way I tell em, I meant if you used strict DTD, you couldn't use framesets nor can you use TARGET.

Clear as mud eh?



"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
The drawback is that I can't have music playing throughout the site
That's not a drawback, it's a bonus.

You have to balance your visitors' ability to bookmark the exact page that they want (and search engines' ability to send them there in the first place) against your ability to thrust your choice of musical accompaniment down their throats.

If you have a good reason for having music (like, you're a musician and the site is a showcase for what you do), have the user explicitly launch a player in a new window that can play while they're browsing in the main one.

Don't use frames for this.


-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
websites that play music when you visit them drive me mad and I leave instantly, I might already be listening to music, or watching TV with my laptop!

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
1DMF said:
websites that play music when you visit them drive me mad and I leave instantly...
Me too. Especially if they do not have an obvious 'stop the music' button.

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top