NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page How Can I... Remove a Page From the History Object?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 08-21-2003, 07:33 AM THREAD STARTER               #1 (permalink)
NamePros Member
 
Mp)Tarh's Avatar
Join Date: Aug 2003
Location: Ontario, Canada
Posts: 98
Mp)Tarh is an unknown quantity at this point
 



How Can I... Remove a Page From the History Object?


Does anyone know a JavaScript function to remove a page from the History object (without using window.location.replace())?
__________________
Yeah... I knew that. What?
Mp)Tarh is offline  
Old 08-21-2003, 11:25 AM   #2 (permalink)
New Member
Join Date: Jul 2003
Posts: 9
IndigoPixel is an unknown quantity at this point
 



Only the user can delete his/her own history ... it would be a major invasion of privacy if JS could interact with a list of pages a user has been too recently.
IndigoPixel is offline  
Old 08-21-2003, 01:09 PM THREAD STARTER               #3 (permalink)
NamePros Member
 
Mp)Tarh's Avatar
Join Date: Aug 2003
Location: Ontario, Canada
Posts: 98
Mp)Tarh is an unknown quantity at this point
 



Ok, thanks.

But just so that you know, JS CAN interact with the history list

I'm designing a function that can do what I described above, I had to do a bit of DOM research though.

Alright, done! Here is a link to the file I made: formmaker.txt
__________________
Yeah... I knew that. What?
Mp)Tarh is offline  
Old 09-06-2003, 02:15 PM   #4 (permalink)
New Member
Join Date: Jul 2003
Posts: 9
IndigoPixel is an unknown quantity at this point
 



According to JavaScript: The Definitive Guide (4th Edition. O'Reilly, 2002), page 401:
Quote:
The History object was originally designed as an array of URLs that represented the complete browsing history of the browser. Once the privacy implication of this became apparent, however, all access to the actual URLs was restircted, and the History object was left with only its back() forward(), and go() methods to move the browser through the history arry without revealing the contents of the array.
And you'll notice in the script that you wrote, that you never once touch the History object ... perhaps you meant something else by your original post?
IndigoPixel is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 03:51 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger