Response title
This is preview!
I'm diving into writing a mobile app with jQuery Mobile/PhoneGap. I'm using this sample template to start from, which uses HTML/JS to create the pages. Rather than have all the Since I will have a separate file for each page, what's the best way to include the tempated header/footer? I've only seen it where you need to copy and paste the whole footer->navbar code into each HTML page. This doesn't seem like it should be. For example, if you want to change one menu item, you need to go into each page and change it. What's the solution that I'm missing? This is what I've got that doesn't seem right (and `$.live('pageinit')` isn't working). This HTML is what goes on each HTML page:
And the JS
|
© 2013 jQuery Foundation
Sponsored by and others.