Created
December 26, 2012 22:41
-
-
Save stlsmiths/4383687 to your computer and use it in GitHub Desktop.
This file contains 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
// if you're using DataSource.IO see http://yuilibrary.com/yui/docs/api/classes/DataSource.IO.html#event_response | |
// if you're using DataSource.Get see http://yuilibrary.com/yui/docs/api/classes/DataSource.Get.html#event_response | |
// listen for the DS response as .... | |
myYUI3DataSource.after('response', function(o) { | |
/* the response object contains the following; | |
o.response.meta, = meta fields parsed from the DataSchema "metaFields" | |
o.response.results, = results parsed from dataSchema and "resultsListLocator" | |
o.response.error = any error | |
*/ | |
// BEST approach, set a breakpoint in Firebug on first line in this listener and inspect o ... | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment