jQuery Dynamic Page Loading wont work, not sure why any ideas?
Posted
by Luke
on Stack Overflow
See other posts from Stack Overflow
or by Luke
Published on 2010-05-16T16:38:12Z
Indexed on
2010/05/16
16:40 UTC
Read the original article
Hit count: 219
Live demo here <- http://webcallonline.exoflux.co.uk/html/
$(function() {
var url = $(this).attr("href");
$("nav").delegate("a", "click", function(event) {
event.preventDefault();
window.location.hash = $(this).attr('href');
$("#main").slideUp('slow', function(){
$("#main").load(url + " #main", function()
{
$("#main").slideDown('slow');
});
});
});
$(window).bind('hashchange', function(){
newHash = window.location.hash.substring(1);
});
$(window).trigger('hashchange');
});
Does anyone have any ideas?
© Stack Overflow or respective owner