I have just started with phonegap, I have two pages index.html and pages.html,
Index.html page contains owlslider and pages.html has mobile swipeLeft and swiprRight functions.
It works proper in desktop browsers, but when I test it on Android emulator or mobile than only first page jquery is working.
i.e if I put slider page as index than slider is working but when I navigate to swipe Functions page than swipe functionality not working, and if I put swipe page as the index page than swipe works but if I navigate to slider page than It doesnt work.
I am including js files as per html standards
<script src="js/jquery.mobile.min.js"></script>
and including this js in both the pages (i.e index.html and page.html)
Is there any specific way to include js files in phonegap projects? Am I missing something?
I am also using desktop version of phonegap to test, but still the same result.
EDIT
i found something from this answer that states Can't use more then one data-role="page" inside any subsequent HTML page, only initial one can have more then one page., thats why my swipe functions are not working in second page. But how to solve this? How to put swipe in a single page using data-role="page"?? Because I want to change the page header as well.