Skip to content

Instantly share code, notes, and snippets.

@oliyoung
Created December 31, 2010 05:28
Show Gist options
  • Save oliyoung/760753 to your computer and use it in GitHub Desktop.
Save oliyoung/760753 to your computer and use it in GitHub Desktop.
var xhr = Titanium.Network.createHTTPClient();
var url = 'http://greatsawineadventure.com.au/wineries/'+win.place.slug+'.json'
xhr.open('GET',url);
xhr.onload = function() {
var resp = eval('('+this.responseText+')');
}
xhr.send();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment