Created
June 19, 2017 20:36
-
-
Save yaplex/c07fc816935421d6f4ae8f6fee0e82f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cityClickJQuery() | |
{ | |
$.ajax({ | |
type: "POST", | |
url: "http://localhost:65424/CityService.svc/DoWork", | |
data: '{"userName":"'+$get("txtName").value+'"}', | |
processData:false, | |
contentType: "application/json; charset=utf-8", | |
dataType: "json", | |
success: function(data) | |
{ | |
alert(data.d); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment