Search code examples
jsoncordovajquery-mobilecross-domain

How to render a dynamic form with Phonegap + jQuery Mobile?


I am developing an iPhone & Android app with Phonegap + jQueryMobile, which receives a JSON with a form previously generated by my ruby on rails web application.

The problem is, the form is too big. It has many fields (with many types of them) and at the moment to load (render) this form in my Phonegap app it takes too much time, even worse sometimes the app breaks.

Do you know how can I solve this problem?


Solution

  • I found a good way to do that. I am storing the html form parts in a database table and then I am loading each part via AJAX. It's working for my Phonegap app.