" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

Post data to the remote server using titanium.

Posted on November 23rd, 2015 by Raju Mahato

Suppose we need to post data to remote server using titanium. Let say we have to send user name and password. The following code describes the process. //Define the parameters that need to send var params = { ‘userName’ : “testUser”, ‘password’ : “testPassword” }; //Creates httpClient var xhr = Titanium.Network.createHTTPClient(); xhr.open(‘POST’, “URL of the […]