Hi
This is one of those situations where I've had to pick up and run with a new tech without having time to learn the foundations!
I have the following js function which calls out to PrintService, which returns me the HTML to inject into a 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 the ".d" in another example
So, it works - but why? What is this ".d" ?
Apologies if this is a noob question, but google is not being my friend here.
Thanks
Edit: Magnar is right, it is a .NET specific thing. Check out Rick Strahl here - http://www.west-wind.com/weblog/posts/164419.aspx
What confuses me is that it MUST return JSON as my client script code is quite happy about the return, but when I access the browser I get XML... ?