Skip to content

Instantly share code, notes, and snippets.

@victor-homyakov
Created November 3, 2011 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save victor-homyakov/1337071 to your computer and use it in GitHub Desktop.
Save victor-homyakov/1337071 to your computer and use it in GitHub Desktop.
ajax: function(url) {
var req = this.createXMLHTTPObject();
if (req) {
try {
req.open('GET', url, false);
req.send('');
return req.responseText;
} catch (e) {
}
}
return '';
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment