Here is the code.
$.ajax({
type: "post",
data: { id : 0 },
url: "getProfileDetails" ,
dataType: "html",
success: function (html)
{
alert (html);
}
error: function(XMLHttpRequest, textStatus, errorThrown)
{r
alert(XMLHttpRequest.responseText);
}
});
References:-
http://api.jquery.com/jQuery.ajax/

0 comments:
Post a Comment