preserve the back button action when doing AJAX calls

This is a discussion on "preserve the back button action when doing AJAX calls" within the JavaScript Forum section. This forum, and the thread "preserve the back button action when doing AJAX calls are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 27th, 2007, 22:19
Junior Member
Join Date: Oct 2007
Location: Holland
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
preserve the back button action when doing AJAX calls

hi all

In my website I'm doing a lot of Ajax calls, and consequently the changes do not go in the browser history. Thus, the back button takes me several steps back (before all the Ajax calls).
I know there are lots of posts written on this topic, but can you recommend me an elegant and lightweight solution for this problem. I want all the Ajax actions to be recorded in the history of the browser....

thanks!
Reply With Quote

  #2 (permalink)  
Old Nov 28th, 2007, 11:56
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: preserve the back button action when doing AJAX calls

Unfortunately this is not possible, you cannot alter the back button functionality of the browser...(this is a god thing ) This is a minor drawback of Ajax.. for example you will lose all of the steps when the page is refreshed too..

The best way is to keep track of the movements within your javascript and create a "back" button within the page with maybe a warning to the user that the back button of the browser will mean having to start again.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Reply With Quote
  #3 (permalink)  
Old Nov 28th, 2007, 12:37
Junior Member
Join Date: Oct 2007
Location: Holland
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Re: preserve the back button action when doing AJAX calls

thanks
Well, I know that the Google Web Toolkit supports history updates when doing the Ajax calls. So I assumed that there is a lightweight framework, which can do it as well, hmmmm.
Reply With Quote
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to change button action into a movieclip button action cjrollo Flash & Multimedia Forum 7 Nov 21st, 2007 17:07
[SOLVED] preserve the state of checkboxes after an AJAX call pesho318i JavaScript Forum 4 Nov 7th, 2007 16:35
How do i Multiple AJAX Calls on the Same Page ? jd2007 JavaScript Forum 2 Aug 9th, 2007 09:59
Condition on button action artdog Flash & Multimedia Forum 1 Sep 14th, 2006 19:45


All times are GMT. The time now is 06:01.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43