Re: [jQuery] jQuery history plugin - from making the back button work to a more elaborate Hijax solution

2006-10-19 Thread Paul Bakaus
Hi Klaus,your idea is definitely worth trying out, sounds great to me!By the way, I've found some (maybe?) bug in your current history implementation. If you initalize the page for the first time, then click a link, and then click the back button again, it will show you chapter 3 instead of no

Re: [jQuery] jQuery history plugin - from making the back button work to a more elaborate Hijax solution

2006-10-19 Thread Klaus Hartl
Paul Bakaus schrieb: Hi Klaus, your idea is definitely worth trying out, sounds great to me! By the way, I've found some (maybe?) bug in your current history implementation. If you initalize the page for the first time, then click a link, and then click the back button again, it will

Re: [jQuery] jQuery history plugin - from making the back button work to a more elaborate Hijax solution

2006-10-19 Thread Klaus Hartl
Then I intercept all these links, change the href value to hashes and load on click the content from the URL of the initial href value via XHR. Links that already have a hash in their URL won't load via XHR but add to history (that is needed to stay compatible with tabs). That means you

Re: [jQuery] jQuery history plugin - from making the back button work to a more elaborate Hijax solution

2006-10-19 Thread Mike Alsup
Klaus, $('a.hijax').history(); jQuery.fn.history = function() { return this.each(function() { $(this).click(function(e) { jQuery.history.setHash('#' + this.href.split('#')[1]); }); }); }; This is looking very nice. I like this usage pattern.

Re: [jQuery] jQuery history plugin - from making the back button work to a more elaborate Hijax solution

2006-10-19 Thread Blair McKenzie
What about situations where you want to tie history to something other than a link click? e.g. changing the value in a select, or hitting enter in a search text boxBlairOn 10/19/06, Mike Alsup [EMAIL PROTECTED] wrote: Klaus, $('a.hijax').history(); jQuery.fn.history = function() {return

[jQuery] jQuery history plugin - from making the back button work to a more elaborate Hijax solution

2006-10-18 Thread Klaus Hartl
Hi jQuerians, people demanded, so I started to extract the history functionality from the tabs plugin to make a standalone plugin out of it. Worked out so far: http://stilbuero.de/jquery/history/ http://stilbuero.de/jquery/tabs/ It's still alpha, support for Firefox, Safari and Opera is there,