Display iframe source in web browser's address bar

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Jan 2009
Posts: 71
Reputation: jonow is an unknown quantity at this point 
Solved Threads: 0
jonow jonow is offline Offline
Junior Poster in Training

Display iframe source in web browser's address bar

 
0
  #1
Jan 12th, 2009
Hi I have an iframe on my website and it will load new content inside of the iframe when a user clicks on a link. You never navigate away from the page. Is there a way to display the source of the iframe or the html file that is being displayed in the iframe in the web browsers address bar? I would like to do this using JavaScript. I do not really want to use PHP or SSI on my website because of the capacity of the server.

Also I do not know if this matters but the primary way that the information is displayed in the iframe is through a flash menu bar.
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,623
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 468
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: Display iframe source in web browser's address bar

 
0
  #2
Jan 12th, 2009
> Is there a way to display the source of the iframe or the html file
> that is being displayed in the iframe in the web browsers address
> bar?

AFAIK, no. It seems pretty logical that the URL in the address bar doesn't change given that the user hasn't navigated away from the resource/web page and is shown new content which is shipped to and fro via remote scripting.
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,352
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 163
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso

Re: Display iframe source in web browser's address bar

 
0
  #3
Jan 15th, 2009
you could put it in the status bar

not familiar with flash
but
<iframe id='name' src='file1.html'>iframe</iframe>
<a onclick="document.name.src='file2.html';window.status='file2.html';">Next page</a>

the flash equivalent should work
Failure is not an option It's included free, you don't have to do anything to get it
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 71
Reputation: jonow is an unknown quantity at this point 
Solved Threads: 0
jonow jonow is offline Offline
Junior Poster in Training

Re: Display iframe source in web browser's address bar

 
0
  #4
Jan 16th, 2009
Have you tired that? I cant right now because of time but it sounds like this is not possible without PHP or something of the equivalent.

Thank you though
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,352
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 163
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso

Re: Display iframe source in web browser's address bar

 
0
  #5
Jan 16th, 2009
javascript operates "without PHP or something of the equivalent."
used in many scripts to display prompts in the status bar
here is a bunch of them
http://www.javascriptkit.com/script/cutindex19.shtml
Failure is not an option It's included free, you don't have to do anything to get it
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC