I hope to convert the data returned by the ajax call and pass this to another plugin constructor. I thought that if the plugin parameters accepted an object for their data or a function that returned data, this would allow me to use the jQuery.ajax deferred object.
That I need to convert the data on the client side and cannot figure out how to do this with the jQuery.Deferred Object. There are many examples of varying complexity, but not so many that relate to passing and converting arguments.
This is the code that represents what I am trying to achieve.
function shapeResults( rawData ) { return $.Deferred(function ( dfd ) {
In its current form, using the TransformedData callback always seems to get rawData, not transformData.
Is what I'm trying to make possible, and if it could help someone help me in the right direction?
source share