$('#btnSubmit').click(function (e) { $("#getResult").val(""); debugger; var lon = getControlValue('txt_Lon'); var lat = getControlValue('txt_Lat'); var server_ = 'http://myServer/'; server_ = server_ + "api/myController/GetLatlon?lon=" + lon + "&lat=" + lat; $.ajax({ contentType: 'application/json', type: "GET", url: server_, success: function (result, textStatus, jqXHR) { debugger; setTextBoxValue('getResult', result.eligible); }, error: function (jqXHR, textStatus, errorThrown) { $("#getResult").val(jqXHR.statusText); } }); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)