History troubles.

Reply

Join Date: Jun 2009
Posts: 1
Reputation: snapped2002 is an unknown quantity at this point 
Solved Threads: 0
snapped2002 snapped2002 is offline Offline
Newbie Poster

History troubles.

 
0
  #1
Jun 28th, 2009
I am making a site called theremote.ca

The question I have is this.

When a user visits my site evrything is done from the main page and the pages they visit change through frames.
They never actually leave the index page.


The problem I am having is the history. It is showing all pages they visited with me and of course if they choose to click one of them it will not take them back to index, it will take them directly to that page that should be appearing within the frame on the index page.

How do I adjust these pages so they will either show up in history only as theremote.ca or even better is there a way to make them NOT add themselves to the users browser history at all.

Desperate in ottawa.

Snapped
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 3,187
Reputation: sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of 
Solved Threads: 571
Sponsor
sknake's Avatar
sknake sknake is offline Offline
.NET Enthusiast

Re: History troubles.

 
0
  #2
Jun 29th, 2009
That is a limitation of frames. You can use a parameter for the page being loaded in the frame so history will cache that way. www.website.com?param=someothersite.com
Scott Knake
Custom Software Development
Apex Software, Inc.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,315
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 161
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso

Re: History troubles.

 
0
  #3
Jun 29th, 2009
In the "not index" pages
  1. <script type='text/javascript'>
  2. if (self.location == top.location) { self.location='/index.html?frame=' + self.location;
  3. </script>
in the index page a reference to set the frame src to the 'frame' parameter if set, or to the home page if not set
  1. //my scripting isnt this good
  2. if (frame != "") {document.getElementbyID('frame').src= frame;}
Or in php asp the same can be done serverside and never serve the pages outside of the frameset
  1. <frameset bgcolor="#eeeeee" rows="120,0" frameborder="0" bordercolor="#eeeeee">
  2. <frame name="Header" src="/head.html" frameborder="0" title="Header" scrolling="no" noresize>
  3. <?php If ($frame)
  4. {Echo '<frame name="Details" src="/' , $frame , '" frameborder="0" title="Details" Scrolling="auto" Noresize>';
  5. }
  6. else
  7. {Echo '<frame name="Details" src="/home.html" frameborder="0" title="Details" Scrolling="auto" Noresize>';
  8. }
  9. ?>
  10. </frameset>
Last edited by almostbob; Jun 29th, 2009 at 1:46 pm.
Failure is not an option It's included free
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 2007
Posts: 3,203
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 165
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: History troubles.

 
0
  #4
Jul 8th, 2009
I hate it when people mess with the history, because I often want to return to the page I came from before I visited that page.

DO NOT change the history. You are affecting things not connected with your site.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Reply

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



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC