Last active
August 29, 2015 14:05
-
-
Save fabiobruna/f1b3786b18c89b21a548 to your computer and use it in GitHub Desktop.
JS afvangen, varianten. Uitzoeken.
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
Ext.Ajax.request({ | |
url: 'bestandje.ofzo', | |
// method: 'POST', | |
params: { | |
a: a, | |
b: b | |
}, | |
success: function(xhr){ | |
var jResponse = Ext.decode(xhr.responseText); | |
if (jResponse.success === true) { | |
if (!Ext.isIE) console.log('success::successful'); | |
} else { | |
if (!Ext.isIE) console.log('success::failed'); | |
} | |
}, | |
failure: function(error) { | |
if (!Ext.isIE) console.log('failure'); // ajax error | |
}, | |
callback: function(o, r, n){ | |
// Nog iets? | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment