jquery - How to keep Multi page template PhoneGap? -
i new hybrid app, using phonegap, jquery mobile in hybrid app, have 10 separate pages like(login.html, index.html, search.html, etc..) in app. question "do need include js, css files in each page? or js , css files need included in 1st app's page"?
the reason of question have noticed inner pages got css , js first page. it?
if perform ajax load load separate page, don't need put js,css reference in multiple pages.
for example:
<a href="multipage.html" rel="external" data-ajax='true'>multi-page link</a>
or dynamically
$.mobile.changepage( "multipage.html", { transition: "slideup", changehash: false });
in case no need put references in files. multipage.html contain body content.
but if use complete page load, like
window.location='multipage.html';
in case, in multipage.html
file add js,css references once again.
Comments
Post a Comment