[jQuery] Re: History Plug-In

2008-12-16 Thread Olivier Percebois-Garve
http://stilbuero.de/jquery/history/

What you want to do is ok, you'll just need to change the window.location.*
hash*
in the callback of your ajax request.


On Tue, Dec 16, 2008 at 5:12 PM, russellneufeld russellneuf...@gmail.comwrote:


 Hi all,

  This question has been asked before but there weren't too many good
 answers.  I'm looking for a decent history plugin for jQuery.  I have
 a page which has a table which gets updated asynchronously, and I'd
 like the browser to think of each update as a new page so the back
 button works.

  I've read about a jquery ui history plug-in, but I can't find it on
 the jquery ui pages.  I've tried the History jquery plug-in, which may
 work for my needs, but there's no documentation and only one example
 which is very small and relates to link clicks.

  Can anyone recommend a good history plugin with examples and
 documentation?

  Thanks,

Russ


[jQuery] Re: History Plug-In

2008-12-16 Thread russellneufeld

Hi Olivier,

  Thanks for the response.  So it looks like I include the
jquery.history_remote.js file, call this in my $(document).ready()
function:

$.ajaxHistory.initialize();

but then what do I do next?  I get a callback every time I update the
table in my page with new content, so I tried adding this line in the
callback:

$.ajaxHistory.update(update + (update_count++));

I also tried this:

window.location.hash = update + (update_count++);

Neither seemed to work in that when I navigate away and then use the
back button, I don't see the final version of the page when I come
back using the back button.  Is there something else I need to do?

Thanks a lot for the help.

  Russ