Posted on: 3/4/2014 9:32:05 AM | Views : 507

<script type="text/javascript"> // jQuery.support.cors = true; $(document).ready( function () { $.ajax({
url: "http://localhost:49379/api/user", data: { skipRec: 1 }, type: "GET", dataType: "json", cache: true, success: function (response) { alert(response); $('#myDiv').html(response); }, headers: { "Access-Control-Allow-Origin": "*" }, error: function (XMLHttpRequest, textStatus, errorThrown) { console.log(errorThrown); } }); }); </script>

Go to the complete details ...