- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am creating a 2 page app that has an index.html and app.html page. Each page has a corresponding index.js and app.js javascript file. When I load the cordova.js in index,html at the header level as <script type="text/javascript" src="cordova.js"></script> it doesn't allow the app.html page to be alled through index.js. I click the button which calls it and nothing happens. If I remove the line for calling cordova.js, I get the popup saying cordova.js could not be found. How do you set up an app to be allowed to have a second page under Intel XDK/Cordova? I saw write ups on hacking some of the files created, but there has to be a logical way to be able to have cordova and more than a 1 page app.
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
See this Cordova doc page > https://cordova.apache.org/docs/en/5.1.1/guide/next/index.html note the title of the first point "SPA Is Your Friend." You should built multiple "pages" by hiding and showing <div> elements that correspond to the pages. You lose your JavaScript context and have to reload cordova.js with each page, it also results in much slower transitions between pages to use multiple html files.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page