This is a migrated thread and some comments may be shown as answers.

Multi page vs single page

2 Answers 63 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tal
Top achievements
Rank 1
Tal asked on 21 May 2013, 02:59 PM
Hello all,
I am mostly finished with an app I built using JQM and phonegap build.  I am very disappointed that it is not running as expected on different android devices.  The difficulty chasing down the problems lead me to your product.  I am hopeful that I will have better luck here as I refactor into your system.  Now for the question.

My index.html page has @ 600 lines of code with @10 different "page" sections, and my Main.js another 1500 lines of code.  I would like to refactor that into 10 html pages and several js files.  Is this a problem?  Is it possible? How is it done?

Thanks in advance
Tal
 

2 Answers, 1 is accepted

Sort by
0
David Silveria
Top achievements
Rank 1
answered on 21 May 2013, 04:00 PM
It's not a problem, you can add as many html and js files as you need straight from the project navigator (right click -> add new). Have a look at this post as well: http://www.icenium.com/resources/forums/permalink/9kge_g5VdEOigapyCikTsQ

Cheers
0
Tal
Top achievements
Rank 1
answered on 21 May 2013, 05:16 PM
I saw that post and was unsure if it was what I wanted.  It looked like a way to include a file within the index page.  I was thinking they would be separate pages with their own references to jscript as needed.

Tags
General Discussion
Asked by
Tal
Top achievements
Rank 1
Answers by
David Silveria
Top achievements
Rank 1
Tal
Top achievements
Rank 1
Share this question
or