javascript - Jquery load(): body class not retrieved -


when use jquery's .load() function load next pages body not retrieve class of body of page. there way achieve this?

thank :)

here code:

$(document).ready(function () {     if(navigator.standalone){         $('a').live("click", function (e) {             var link = $(this).attr('href');             if ($(this).hasclass('noeffect')){             }         else {             e.preventdefault();             $("body").load(link);             };         });     }     else {         window.scrollto(0, 0.9);     } }); 

so putting body inside body? not sure that'll work expected!

some html helpful, i'm guessing problem is.

in pages loading body, put them inside div instead of body tag. should avoid body inside body problem.


edit:

what do regular ajax call new html. remove current body, , append stuff ajax call html. i've never tried that, if can't change html getting back, it's best thing try.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -