jQuery Mobile - Document Ready(..) vs on('pagecreate',...)
1) Single Page HTML uses Document Ready function2) Multi Page HTML uses on('pagecreate',...)
WHY? Document ready() will only affect the first page. Therefore the codes will not render page when the second page is displayed on the screen. Refer: http://stackoverflow.com/questions/12051911/can-not-get-multiple-page-jquery-mobile-working-with-google-maps
No comments:
Post a Comment