How to use http post from Titanium is that i can use jquery
we are working on native iphone app with out using the webview. we have some post URL that will return the Json response. what will be the best way to call the http post from the titanium. Is that jquery will help me in that case….
3 Answers
-
Search in documentation for httpclient
https://developer.appcelerator.com/apidoc/mobile/1.3/Titanium.Network.HTTPClient-object
-
I had just posted this piece of code a few days ago that feels more "jQuery-like" in making a request:
https://developer.appcelerator.com/question/28521/thought-i-would-share-some-code-remote-ajax-call-thats-more-jquery-like
-
You can't easily use jQuery directly in the Titanium JS files without using a WebView, but you can use a custom wrapper method that is designed to have similar syntax to jQuery's $.ajax method:
http://www.vancelucas.com/blog/easier-titanium-xhr-and-ajax-requests/