Created
March 21, 2019 14:56
-
-
Save exclusiveTanim/037ce73fbbaa12215ebd948a6bc875da to your computer and use it in GitHub Desktop.
Test code Intercom-21301183670
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var url = "http://www.google.com"; | |
| var client = Ti.Network.createHTTPClient({ | |
| onload : function(e) { | |
| Ti.API.info("Received text: " + this.responseText); | |
| alert('success'); | |
| }, | |
| onerror : function(e) { | |
| Ti.API.debug(e.error); | |
| alert('error'); | |
| }, | |
| timeout : 50000 | |
| }); | |
| client.open("GET", url); | |
| client.send(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment