html - Cross domain ajax request -
i want html respond page cross domain url.
for using ajax request as,
$.ajax({ type: 'get', url: "http://wcidevapps.com/salescentral/idisk/0001000383/idisk", datatype: "jsonp", success: function (response) { $(response).find('li a').each(function () { listhref.push($(this).attr('href')); }); } });
but after requesting doesn't respond result back.
<script src="scripts/jquery-1.4.1.js" type="text/javascript"></script> <script type="text/javascript"> function nameafunctionname() { $.ajax({ url: 'http://wcidevapps.com/salescentral/idisk/0001000383/idisk', type: 'get', datatype: 'json', headers: { //write if have header request or data }, crossdomain: true, success: function (data, textstatus, xhr) { console.log(data); }, error: function (xhr, textstatus, errorthrown) { console.log(errorthrown); } }); } </script>
Comments
Post a Comment