Hi
I am currently using Ajax to post data to a web service in vb.net
My code runs all well up until the the success function(r)
I need to post data to the webservice and return another value
Please could you assist
here is my code for the ajax
var selectedFields = ($('#result').val());
var Qid = '<%=Session("Qid")%>';
var DrawnName= document.getElementById('<%=DrawnName.ClientID%>').value;
var Uid = document.getElementById('<%=HiddenField1.ClientID%>').value;
$.ajax({
url: 'Drawn.aspx/SelectedPoints',
data: "{ 'selectedFields': '" + selectedFields + "','Qid':'" + Qid + "','DrawnName':'" + DrawnName + "','Uid':'" + Uid + "'}",
dataType: "json",
type: 'POST',
contentType: 'application/json; charset=utf-8',
success: function (r) {
//debugger;
alert(r.d.val);
var RID = r.d.value
alert(RID)
{
// }
}
});
if i firebug in firefox i can see under the response the correct value
e.g"d: 68"
how do i get that variable into a var?