PhoneGap and rails 3: How to interact with a rails 3 app

前端 未结 2 717
轮回少年
轮回少年 2020-12-19 19:51

totally PhoneGap newbie here, but looking to learn the basics of how to interact with a Rails 3 web app using Phonegap.

I\'m looking to release a lightweight versio

相关标签:
2条回答
  • 2020-12-19 20:30

    Your production rails app will live at some domain. Specify a manifest of css, js and templates to be cached locally and distributed with your app. Point your XHRs at your production rails app to fetch data and render everything locally with something like mustache.

    A client-side MVC framework like Backbone is useful in this situation.

    Read PhoneGap's Get Started Guide.

    0 讨论(0)
  • 2020-12-19 20:36

    I'm currently working on a phonegap app integrating with .net. I do all of my interaction with my .net webservice by using xui's xhr call that return/submit either json or xml data.

    Refer to the following link to read more on xui and xhr http://xuijs.com/docs/xhr

    0 讨论(0)
提交回复
热议问题