I have a .NET webmethod that I have called from jQuery. The method returns some HTML markup that I display within a DIV element.
Once I have the response I use
$("#div").html(result.d);
My question is, what does the .d do? I don’t like using code I don’t fully understand? Could I get the same result using Eval?
Are you referring to the ADO.NET Data Services?
I remember hearing a presentation about the JSON returning this and I think its just a wrapper to ensure the payload is a JSON object as opposed to an array (which is the case of returning multiple entities).
Why ‘d’ specifically? I think I remember them saying something like ‘well it had to be something’.