This is one of those situations when I had to climb and work with new technology, not having time to learn the basics!
I have the following js function that calls PrintService, which returns me the HTML to enter in the div:
function showPrintDialog() { $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", data: "{}", dataType: "json", url: "http://localhost/PrintService/PrintService.asmx/RenderPrintDialog", success: function(data) { $("#printdialoginner").html(data.d);
I struggled with this FOR AN AGE before I noticed ".d" in another example
So it works - but why? What is this ".d"?
Sorry if this is a question about Nob, but Google is not my friend here.
thank
Edit: Magnar is right, this is a feature of .NET. Check out Rick Strall here - http://www.west-wind.com/weblog/posts/164419.aspx
What bothers me is that it SHOULD return JSON, as my client script code is quite happy with the return, but when I access the browser, I get XML ...?
Duncan Apr 11 '09 at 10:50 2009-04-11 10:50
source share