Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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.

— asked May 29th 2010 by vincent youmans
  • drupal
  • jqtouch

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 the data field for Titanium.UI.createTableView.

    — answered May 29th 2010 by Jeff Haynie
    1 Comment
    • are there any samples anywhere? Ideally, can I also see the json coming in. I can make my json look like anything, but I would like to see a working demonstration.

      — commented May 30th 2010 by vincent youmans
  • 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!

    — answered May 30th 2010 by Sj Singh
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.