Cross domain ajax request

ajax, asp.net-ajax, html, jquery

Solution

<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 THEIR HAVE SOME HEADER REQUEST OR DATA
          },
          crossDomain: true,
          success: function (data, textStatus, xhr) {
            console.log(data);
          },
          error: function (xhr, textStatus, errorThrown) {
            console.log(errorThrown);
          }
        });
    }   
</script>

Problem

I want to get the HTML response page from the cross-domain URL. for this I am using the ajax request as, ``` $.ajax({ type: 'GET', url: "http://wcidevapps.com/salescentral/idisk/0001000383/iDisk", dataType: "json", success: function (response) { $(response).find('li a').each(function () { listHref.push($(this).attr('href')); }); } }); ``` But after requesting it doesn't respond with any result back.

Original source

Related problems