Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

multiple HTML in Phonegap applications

Can we have multiple HTML files in Phonegap application?

like image 570
Newbee Avatar asked Sep 07 '10 05:09

Newbee


2 Answers

Yes, you can. Here's an example from their git repo: http://github.com/phonegap/phonegap-iphone/blob/master/PhoneGapTutorial/www/index.html

  <a href="geolocation.html">
    <div class="item">
      <h2>GeoLocation</h2>
     </div>
  </a>
like image 104
Tudor Avatar answered Sep 25 '22 17:09

Tudor


Definitely. Just link to it from your html (anchor tag), and the html file should be in your www folder. Don't forget to add "phonegap.js" in a script tag like your index.html file if you want to access Phonegap functions.

like image 31
Shazron Avatar answered Sep 24 '22 17:09

Shazron