web controlled TABLES from BACKEND service..
I do DRUPAL and native iPHONE apps. But I wanted to come up with a way to download a menu structure and automagically create the TABLES in the mobile devices. I would also want to control the transition effect as well as destination.
Finally, I want this to be in something like a json or xml file, that can be maintained in DRUPAL or some other web type backend. A use case would be a concert hall that wanted to keep an updated list of events on their phone.
I can think of a couple ways to do this, including just creating custom webpages and just displaying them. I am also about to experiment with jqtouch. But before I do, I wanted to see if anyone else is doing this, and what web back end are they using.
2 Answers
-
This is probably one of the most common Titanium use cases.
Use the
Titanium.Network.createHTTPClient
to create a web service request. Fetch your data as JSON. Then, use that to pass into thedata
field forTitanium.UI.createTableView
. -
http://github.com/appcelerator/KitchenSink/blob/master/1.3.x/KitchenSink/Resources/examples/json.js
I suggest you download KitchenSink and play around with it, its the best way to learn it!