{“d”:{"__type":“Customer:#Microsoft.Samples.Jsonp”,“Address”:“1 Example Way”,“Name”:“Bob”}}
When I try to call the service from my webpage, though something doesn’t work. The call in my webpage looks like this inside an HTML widget:
Old Text
Click Me!
When I click the button I do see the text change to “ready to get json”, but I am expecting the text to then change to
{“d”:{"__type":“Customer:#Microsoft.Samples.Jsonp”,“Address”:“1 Example Way”,“Name”:“Bob”}}
or something like that.
Is res a string? Do I need to parse it?
I even tried to just put a different text message in ( $("#response").html(“this worked”); ) but that didn’t work either. So I think I’m not getting into the function.
How can I get the web service response so that I can process it?
OK. I figured it out. I needed to add callback=? to the getjson call, and parse the result. And I see that my original HTML didn’t make it into the previous post.