Skip to content

Instantly share code, notes, and snippets.

@netikular
Created December 2, 2012 12:24
Show Gist options
  • Save netikular/4188411 to your computer and use it in GitHub Desktop.
Save netikular/4188411 to your computer and use it in GitHub Desktop.
using the fetch options hash
this.fetch(
{
data: { queryString: query },
success: function () {
debugger;
res = 'success';
console.log('success');
},
error: function () {
debugger;
res = 'failed';
console.log('failed');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment