$(document).ready(function(){
$("a[href*='http://']:not([href*='"+location.hostname+"'])").attr("target","_blank");
$("a[target!='_blank'][target!='_top']").click(function(){
$("#actualcontent").load($(this).attr("href"));
window.location.hash=$(this).attr("href");
return false;
});
});
So I have this code so that my links load in the div actualcontent. But I'd rather use dynamicdrive's ajax load function to load the content, as it doesn't seem to freeze the page like jQuery's does. Would that be possible?
say my dynamicdrive ajaxload function is called ajaxpage() ?
Could I just do
var url=$(this).attr("href");
ajaxpage(url);
?