Ok, two immediate things that I've noticed:
Documentation on JSONP and JQuery's
http://bob.pythonmac.org/archives/2005/12/05/remote-json-jsonp/
http://api.jquery.com/jQuery.ajax/
Sincerely,
roschuma
-
This tutorial (and therefore your code) is using an incredibly outdated version of the SDK. To get the latest version of Casablanca, use the NuGet package manager in Visual Studio as outlined here. However, I don't think this will solve the core issue.
-
In your ajax request, you're using JSONP. This is a mechanism to enable cross-domain javascript requests; as long as you're within the same domain you should not need it. In fact, JQuery should simply ignore it while you are in the same domain. Regardless, could you try changing the "dataType" to be "json" and removing the property "jsonpCallback"?
Documentation on JSONP and JQuery's
$.ajax()
:http://bob.pythonmac.org/archives/2005/12/05/remote-json-jsonp/
http://api.jquery.com/jQuery.ajax/
Sincerely,
roschuma