My design of a page forces me to refresh the whole page with html that I have loaded via ajax.
$('html').replaceWith(data);
Gives me errors. Any ideas?
My design of a page forces me to refresh the whole page with html that I have loaded via ajax.
$('html').replaceWith(data);
Gives me errors. Any ideas?
Won't the html tag contain the script that is doing the replacing? If you're using the body tag make sure your html fits.