Ive been struggling with this for hours now. I can't figure out why my .load() callback is not firing. Can anyone shed any light on this. Thanks for any help.
The load it's self works fine.
window.addEventListener('popstate', function(event) {
var linkplus = ((event.state) + ' #container'); //contents
if((event.state)==null){
$("#maincontainer").load("index.php #container", "null" , function(){
return false;
// why is this not working ??? //
alert("contents loaded");
});
}else{
$("#maincontainer").load(linkplus, function(){
return false;
$("#container").hide().delay(0).fadeIn(400);
project_nav();
});
}
});