I’m going to write my first phonegap app (for tablets) and i’m not sure in what way I should organize its structure:
- one .html file with many divs, that I change with js.
- many .html files
What is the best practice in PhoneGap development?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, Both method is good but i would suggest 2nd option because its easy to manage separate files rather then one file.
You can get your html files contain using
jquery function and you can innerHtml to any DIV or Document Body