Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New Coder
    Join Date
    Apr 2006
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Mobile Site: Best Practices for parsing XML and writing nested menus

    Hey all.. Looking for some advice. I'm building a mobile site primarily for webkit browsers (iPhone/Android). I have an XML file (about 270k) with about 20 items. Each item has about 5 or 6 child items and each one of those has about 10 children. I'm building a site with jQuery Mobile. I load the initial 20 items into a listview and can't decide whats the best to do:

    Should I:

    A) loop through each the 20 parent items and build out all the UL LI nested lists in one shot and let Jquery Mobile handle the paging and all.

    or

    B) Add an onclick action to each of the 20 parent items and onclick parse that particular items children in XML (xml in a global variable to be reused) and build that section on the fly as separate div (page) and animate to it?

    I can't decide which is better but i'd assume "B". Any feedback is appreciated.

    Thanks,

    Fish
    Last edited by fishnyc22; 12-15-2010 at 02:20 AM.


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •