Cytat(tehaha @ 30.10.2010, 15:21:13 )

nie czytałem kodu ale od razu widzę, że coś namieszałeś, zaopatrz się w dodatek firebug dla firefoxa to zobaczysz, że po każdym kliknięciu wykonujesz 2 identycznie połączenia np.
GET
http://www.zbyszko.net15.pl/test1/loader.p...e=%23Podstrona2GET
http://www.zbyszko.net15.pl/test1/loader.p...e=%23Podstrona2powinno być tylko jedno, po drugie w parametsze page przekazujesz znak #, który jak widzisz jest przesyłany jako %23 i domyślam się, że to może sprawiać te kłopoty
Poprawiłem już pierwszy błąd.
Zastanawia mnie jednak ze w IE linki z lewego menu ładują się bez problemu, natomiast te wewnątrz podstrony już nie. Nie wydaje mi się żeby problem był ze znakiem #
jQuery(document).ready(function () {
getPage();
jQuery.history.init(pageload);
jQuery('a[href=' + window.location.hash + ']').addClass('selected');
jQuery('a[rel=ajax]').click(function () {
var hash = this.href;
hash = hash.replace(/^.*#/, '');
jQuery.history.load(hash);
jQuery('a[rel=ajax]').removeClass('selected');
jQuery(this).addClass('selected');
jQuery('div#content').hide();
//jQuery('.loading').show();
//getPage();
return false;
});
});
function pageload(hash) {
if (hash) getPage();
}
function getPage() {
if (document.location.hash=='') var data = 'page=' + encodeURIComponent('#Index');
else var data = 'page=' + encodeURIComponent(document.location.hash);
jQuery.ajax({
url: "loader.php",
type: "GET",
data: data,
cache: false,
success: function (html) {
//jQuery('.loading').hide();
jQuery('div#content').html(html);
jQuery('div#content').fadeIn('slow');
jQuery('div#content').show();
}
});
}