Trying to grab the class names from the loaded content's Body Class (so that I can replace the body class on the current page with what was loaded), I've come up with the following but cannot seem to get this to work:
classes = jQuery(dataa).find('body').attr ("class").split(' ');
for(var i=0; i<classes.length; i++){
console.log(classes[i]);
}
Anyone have a clue?
http://wordpress.org/extend/plugins/advanced-ajax-page-loader/