function sendRequest()
	   var xhr = Titanium.Network.createHTTPClient();
	   xhr.onload = function()
		    if(this.status == 200)
		    	// this becomes true if your request is completed.
xhr.send({ 'data':data});
xhr.onerror = function()
    Titanium.UI.createAlertDialog({title:'Error ', message:'Please check your internet connection'}).show();

Leave a Reply

Your email address will not be published. Required fields are marked *




Theme by HermesThemes

Copyright © 2018 CoderzHeaven. All Rights Reserved

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.