I definitely make a very lame mistake but can not find that ...
Here's my web method and calling it through AJAX like this The problem is that I can not display the returned data in Fideller in Edit My web service and my web application is where From the web service so I think it requests a cross domain? Try the following function: Still no results? This is the sample you are trying to get: [WebMethod] [ScriptMethod (UseHttpGet = true, ResponseFormat = ResponseFormat.Json)] Add public int (int x, int y) {return x + y; }
$ .ajax ({type: "GET", datatype: 'Jason', Content type: "Application / Jason; Character symbol = UTF-8", Data: {x: 4, y: 5}, URL: 'http: // localhost: 14436 / service 1. command / add', success: function ( Data) {warning ('success'); var d = $ (data); console.log (d);}});
success ,
{"d" : 9} but I'm dropping
data ... what I'm doing wrong here ... TIA
function Ajax succeeded (result ) {Warning (Results D); }
Update:
You You can read more about the D cover:
Comments
Post a Comment