Go Back   CodingForums.com > :: Client side development > General web building > Building for mobile devices

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-15-2010, 02:10 AM   PM User | #1
fishnyc22
New Coder

 
Join Date: Apr 2006
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
fishnyc22 is an unknown quantity at this point
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..
fishnyc22 is offline   Reply With Quote
Reply

Bookmarks

Tags
jquery, mobile, xml

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:47 PM.


Advertisement
Log in to turn off these ads.