Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

New Post: New to Casablanck SDKs

$
0
0
Ok, two immediate things that I've noticed:
  1. 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.
  2. 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"?
I'm still working on reproducing your issues, but please consider the above points.

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

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>