HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 25th, 2000, 05:10 PM
smmorrow smmorrow is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Location: Pennsylvania, USA
Posts: 37 smmorrow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 15 sec
Reputation Power: 9
If, as my documentation suggests, the history.go is "buggy" in multiframe documents in Navigator 3.0, and can only be called with values 1, 0, and -1 in IE, how do I go back more than 1 URL? Obviously history.back() takes me back one - but I need to go back 2 or 3. Is there another method that is safer?

Reply With Quote
  #2  
Old May 25th, 2000, 05:27 PM
rycamor rycamor is offline
Gödelian monster
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 1999
Location: Pembroke Pines, Florida, USA
Posts: 2,300 rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 3 h 2 m 4 sec
Reputation Power: 44
I was under the impression that history.back(2), history.back(3), etc... worked, at least for all version 4+ browsers.

The whole purpose of () is to send parameters with a function call, so when in doubt, try it.

It would even be possible to use a variable that tracks how many clicks back you need, in which case you would do history.back(variablename).

As a workaround for the older browsers, you might try using a while loop and call history.back() as many times as the value of your tracking variable.

Reply With Quote
  #3  
Old May 26th, 2000, 05:12 PM
smmorrow smmorrow is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Location: Pennsylvania, USA
Posts: 37 smmorrow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 15 sec
Reputation Power: 9
The history.back(3) doesn't work. It simply ignores the parameter and just goes back 1 item in the history. I haven't yet tried to history.back loop, but that'll be my next attempt.
Thanks for the reply. I'm very new to javascript, and appreciate all suggestions.

Sharon

Reply With Quote
  #4  
Old August 7th, 2000, 04:24 PM
rynop2000 rynop2000 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: east lansing,MI
Posts: 9 rynop2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
use this:

history.go(x);

where x is the number back or forth

so:
history.go(-2); would go 2clicks back

here is a GREAT javascript ref. page for further questions (im a newbie also and this is a must 4allnewbies)
http://developer.netscape.com/docs/...jsref/index.htm

Ryan

------------------

Reply With Quote
  #5  
Old August 7th, 2000, 04:49 PM
smmorrow smmorrow is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Location: Pennsylvania, USA
Posts: 37 smmorrow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 15 sec
Reputation Power: 9
Thanks for your reply, Ryan. Because I read that the history.go was "buggy" under certain conditions and that it only allowed -1,0 and -1 in IE(which may have changed in later releases), I decided to go with the other suggestion which was a history.back "loop". I pass a number into a routine, which simply executes the history.back that number of times. It works fine.
Again thanks for taking the time to respond. Devshed subscriber/developers are the best!

Sharon

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > History back


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway