That post basically tells you how to deal with it
onSuccess : function (result) {
// jsonResult becomes the var you would use
var jsonResult = if(result.d) ? result.d : result;
}
Looking at the jQuery example though....no there isnt a "dataFilter"
property for JSON responses. That said, the need for it in the first place
is a prime example as to why M$ and .NET sucks balls.
-----Original Message-----
From: Midhat [mailto:[email protected]]
Sent: Monday, 17 May 2010 12:59 AM
To: MooTools Users
Subject: [Moo] Mootools equivalent for jQuery dataFilter
Hi
I have some mootools ajax code that now needs to work with ASP.Net 2.0 and
3.5 framework web services. The framework 3.5 WSs wrap returned arrays in a
'd' object while 2.0 services dont. To counter this, jQuery has a dataFilter
parameter to its jQuery.ajax function (http://
encosia.com/2009/06/29/never-worry-about-asp-net-ajaxs-d-again/).
Is there any such feature in mootools. If there isnt and I have to roll my
own. Where should I start