Is it possible to get cross domain ajax in mvc architectre? I am using jsonp and it works perfectly if both the sites are in localhost. My doubt is that, whether the mvc architecture blocks the jsonp call.??
<script src="www.example.com"></script>
$.ajax({
url: "www.example.com?id=abc&callback=?",
dataType: "jsonp"
});
function mycallback(data)
{`alert(data);`
}
Returning JSONP data does not come out of the box in ASP.NET MVC 3 and you need write wrapper for it.
What is JSONP ?