jQuery Dynamic Page Loading wont work, not sure why any ideas?
- by Luke
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?