Amol

Amol

  • NA
  • 208
  • 193.4k

How to call webservice using jquery on remote server??

Sep 27 2011 8:34 AM
I have created one html page,in that using jquery i have call webservice .
It will work locally ,but on remote server it can not works.
This is the code using in javascript
  $.ajax({
 
  type: "POST",
  url: "http://example.com/test.asmx/helloworld",
  data: "{'bannerid':'" + id + "'}",
  contentType: "application/json; charset=utf-8",
  dataType: "json",
 
  success: function(msg) {
 
  //$(divid1).removeClass('loading');
  $(divid1).html(msg)
 
  }
  });


Answers (1)