[jQuery] conv. .get with history.Plugin
Hi jQueryans,
is a way given to use histroy.remote Plugin with normal .get func?
My way of doing :
$(document).ready(function(){
$("#navi a").click(function(){
$(this).parent().children("a").removeClass("selected");
$(this).addClass("selected");
$.get($(this)[0].href, function(data){
$("#content").fadeOut("slow",function(){
var div = data.replace( /([\s\S]+)<div id="content">/, ''
).replace(/<\/div>([\s\S]+)/, '' );
$(this).empty().append(div).fadeIn("slow");
});
});
return false;
});
});
this is to use unobtrosiv, handle data for use without the rest of the site.
@Jörn
du darfst auch auf deutsch antworten ;)
--
Viele Grüße, Olaf
-----------------------------------
olaf.bosch@t-online.de
http://olaf-bosch.de/
http://ohorn.info/
http://www.akitafreund.de/
-----------------------------------