0

I have a requirement where I have to post a xml data in form post method to a cross domain page using jquery where there is no web-service written its normal aspx page. I am using the following code also google a couple of hours but find no luck please help me out to overcome with this situation.

 $.ajax({ 
                        type: "POST",
                        url: "http://test-dev.test.net/default.aspx",
                        data: "{'a_sScoringType':'" + $("input[id$='hdnEvalSystem']").val() + "'}",
                        contentType: "application/json; charset=utf-8",
                        dataType: "json",
                        success: function (json) {

                        alert(json);

                        }});

1 Answers1

0

Take a look at using JSONP for cross-domain requests. There's more information on this answer. As long as your web page is written to handle incoming data, you should be able to send data to it from your current domain.

Community
  • 1
  • 1
Dan Lister
  • 2,543
  • 1
  • 21
  • 36