Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 30th, 2004, 08:44 AM
Authorized User
 
Join Date: Nov 2003
Location: , , .
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default Window.History

Hi, is there a possibility to clean up the url listed in window.history using javascript. I use the IE browser in my development environment.

TIA
Praveen

Reply With Quote
  #2 (permalink)  
Old August 30th, 2004, 03:04 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

What do you mean by "clean up"? There is no way to access the contents of the history object, unless you want to go() to them or go back() or forward() or reload().

Snib

<><
Reply With Quote
  #3 (permalink)  
Old August 31st, 2004, 12:20 AM
Authorized User
 
Join Date: Nov 2003
Location: , , .
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What I meant by cleanup is that, as and when I navigate to other pages from the currently opened window, I don't want the references in the History object to be present.

In other words, the back button on the browser should not have any URLs listed.

What I was pondering upon was not to disable the Back button on the browser toolbar, instead just clear up the url's listed in the history object.

I've understood from your comments, that using History object I can navigate forward/ backwards, but can't access the contents in it.

Is there any other workaround.

TIA
Praveen

Reply With Quote
  #4 (permalink)  
Old August 31st, 2004, 04:04 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

You would have to use the location.replace(Url) for all navigation throughout the site.



--

Joe (Co-author Beginning XML, 3rd edition)
Reply With Quote
  #5 (permalink)  
Old September 3rd, 2004, 09:36 PM
Authorized User
 
Join Date: Aug 2004
Location: Yogyakarta, D.I. Yogyakarta, Indonesia.
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default

With location.replace() you will get a new opened browser that is out of the member of the previous stack/history. You need to know that every browser uses stack method to set histories on the browser. Remember not to use location.href() !!

With love, Randhy.

Reply With Quote
  #6 (permalink)  
Old September 4th, 2004, 03:49 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Quote:
quote:Originally posted by Randhy
 With location.replace() you will get a new opened browser...


No, you will replace the current page without adding to the history.

--

Joe

--

Joe (Co-author Beginning XML, 3rd edition)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Browser history abdul_owiusa Javascript How-To 11 October 13th, 2006 09:13 AM
How to clear history toshi Javascript 0 August 17th, 2006 06:07 AM
history.back(-1); elania Javascript How-To 3 February 2nd, 2005 03:14 PM
History data stagedancer SQL Server 2000 2 December 8th, 2004 09:57 AM
Record History cdenequolo Classic ASP Basics 2 December 3rd, 2003 12:44 PM



All times are GMT -4. The time now is 11:59 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.