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
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
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
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.
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
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,