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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -