Friday, October 25, 2013

The Best PhoneGap Architecture - (3)

Enjoy the art of the coding...

3. Page And APP Navigation

First, JS part.
Here is a very good sample that demonstrats how to make a page and achieve page navigation.
Here is a page named “Menu” that inherits from nova.Page. It’s method onLoaded will be called when the HTML loaded into the #body div.
Please notice the bindClicks events. It demonstrates 4 kinds of page navigation.
  1. Simply go back. (android backbutton can also trigger this).
  2. Go to a simple page
  3. Go to a normal page.
  4. Go to a normal page with parameters.
If you are making a complex page, you can add many more methods to the page prototype object.
More examples:
Then, how is the HTML part?
Second, the HTML Part.
Take a look at the below HTML page.
It’s clean and easy to write. As the basic layout and JS are initialized when APP starts on index.html, the other pages just need to focus on the single page logic. You will love it!
More examples:

23 comments:

  1. It is safe to say that you are looking for the Largest Android Tablet in 2020? The correct method to buy tablets is through the online sites. There are various sites that include enormous measure of biggest screen tablets.

    ReplyDelete
  2. Next time I read a blog, Hopefully it does not fail me just as much as this one. After all, I know it was my choice to read, however I actually believed you would probably have something useful to talk about. All I hear is a bunch of complaining about something you could possibly fix if you weren't too busy searching for attention.disinfecting san antonio

    ReplyDelete
  3. Hi there! This blog post could not be written much better! Going through this post reminds me of my previous roommate! He constantly kept preaching about this. I am going to forward this article to him. Fairly certain he's going to have a great read. Thanks for sharing!
    Roofing companies near me

    ReplyDelete
  4. ISO 17100 zertifiziert, Fachübersetzungen inkl. Lektorat. Erfahrung und Präzision. High Qualität, Übersetzungsagentur:Fachübersetzung Englisch Deutsch Dortmund-Essen-Duisburg Fachübersetzungen für Dortmund-Essen-Duisburg, Lokalisierung,
    Übersetzung mit Beglaubigung und Apostille, Fachübersetzung für Bundesanzeiger, Dolmetscher, juristische und technische Übersetzung, Banken+Versicherung

    ReplyDelete
  5. I was more than happy to uncover this great site. I need to to thank you for your time due to this fantastic read!! I definitely enjoyed every bit of it and I have you bookmarked to see new information on your blog.
    E-Commerce in Lahore

    ReplyDelete
  6. Commercial Locksmith Services
    You’ve made some good points there. I looked on the internet for additional information about the issue and found most people will go along with your views on this website.
    Nice post. I learn something totally new and challenging on websites I stumbleupon every day. It’s always useful to read through articles from other authors and practice something from other sites.

    ReplyDelete
  7. Aw, this was a very nice post. Taking the time and actual effort to produce a superb article… but what can I say… I procrastinate a whole lot and never manage to get anything done.

    At BrokeScholar we work around the clock to update this page with active promo codes, coupons and discounts for Total Wine . Our editors monitor newsletters, social media posts, deal forums, and third party sellers to find the best Total Wine deals. For students, we also track totalwine student discounts for exclusive savings. We've done the research so you don't have to. Bookmark this page and never miss a Total Wine promotion again.

    ReplyDelete
  8. Stretch your dollar even further at harbor freight coupons with our 25% off coupons. These coupons will help you save 20% (or more!) on qualifying items throughout the store. We also have discounts just for members of our Inside Track Club.

    ReplyDelete
  9. This online journal site is really cool! How was it made !

    Kilts for Sale

    ReplyDelete
  10. Goodness, this is truly intriguing perusing. I am happy I discovered this and got the chance to peruse it. Awesome employment on this substance. I like it.

    utility kilts

    ReplyDelete
  11. Goodness, this is truly intriguing perusing. I am happy I discovered this and got the chance to peruse it. Awesome employment on this substance. I like it.

    Utility Kilts

    ReplyDelete
  12. Goodness, this is truly intriguing perusing. I am happy I discovered this and got the chance to peruse it. Awesome employment on this substance. I like it.

    How To Build Hybrid Kilt - Complete Helping Guide

    ReplyDelete
  13. Howdy! Pleasant stuff, do update me as often as possible when you post again something like
    Graphic designing services in Lahore

    ReplyDelete

  14. Professionelles Übersetzungsbüro ✓ Übersetzungen ✓ Dolmetschen ✓ mehr als 35 Jahre Erfahrung ✓ alle Sprachen ✓ Qualitätsstandard ISO 17100 ✓ Rechtssichere Übersetzung ✓ Juristische Fachübersetzung ✓ Übersetzungsbüro ✓ Übersetzungsdienst ✓Übersetzungsagentur ✓Übersetzungsservice ✓ Übersetzungen ✓ beglaubigte ✓ Übersetzung, Übersetzen ✓individuelle Beratung.✓✓ Alle Sprachen. Alle Fachrichtungen,✓ 35 Jahre Erfahrung ✓ Express Übersetzungsbüro ✓ juristische und technische Übersetzung ✓ Profi Fachübersetzungen ✓ Deutsch Englisch
    Fachübersetzung München Englisch Deutsch


    ReplyDelete
  15. On this website, You’ll get over 200+ real working dark web links and If you’re a regular dark web user so you can start using these dark web links and If you’re a new user or If you don’t know anything about the dark web So you can read the content below and you’ll understand everything about the dark web.

    ReplyDelete
  16. I was more than happy to uncover this great site. I need to thank you for your time due to this fantastic read!!
    I definitely enjoyed every bit of it and I have you bookmarked to see new information on your blog.
    Freelance Marketplace WordPress Theme

    ReplyDelete
  17. ΣΚΑΛΑ ΣΤΟ ΜΠΕΤΟ

    Η Nova Tecnica δραστηριοποιείται 20 και πλέον χρόνια στο χώρο των συστημάτων συνδεσμολογίας ξύλου με τα συστήματα σύνδεσης της ΚΝΑΡΡ ® προσφέροντας πρωτοποριακές λύσεις για τις δικές σας δημιουργικές εμπνεύσεις. Η παλέτα των προϊόντων μας περιλαμβάνει μη ορατά, αποσυναρμολογούμενα καθώς και αυτοτανυόμενα εξαρτήματα σύνδεσης για ευρύτατο φάσμα εφαρμογών, από τη επιπλοποιία και την κατασκευή υαλοστασίων και προσόψεων έως και την ξύλινη δόμηση.

    ReplyDelete
  18. digital marketing agency london
    Moving on to the best and most suitable campaign(s) for your business after spotting your position in the market along with your competitors. Creation of strategies as well as optimization process setup is an essential part of this phase including targets which could be ROAS, ROI or CPA.

    ReplyDelete
  19. Pleasant to be going to your online journal yet again, it has been months for me. Well this article ive been sat tight for thusly long. i need this article to complete my task inside of the staff, and it has same subject together with your article. Much appreciated, pleasant offer.

    freetress suzie

    ReplyDelete
  20. Thanks for uploading this article. Techno mobile is best mobile with best specifications. Now you can get new mobiles update with Realme mobile price in Bangladesh

    ReplyDelete
  21. Thank you for your post. This is excellent information. It is amazing and wonderful to visit your site. For more info:- Cordova App Development

    ReplyDelete