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

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -