Refresh the same form after deleting from List view
Hi,
I have one file called index.html and added one page with data-role="page".I've listed some values in that page.After selecting some ids and if i hit the delete button the soap ajax(web service) will form a xml and it will submit to the server and the response will come.The deleted records will not be show in current list.So i need to refresh the same page after getting reply form server.How can i do this ?
Here my submit code,
$.ajax({
url: wsdlURL,
type: "POST",
dataType: "text",
data: xmlRequest,
contentType: "text/xml; charset=\"utf-8\"",
success: function(xmlResponse) {
var obj_response = parseResponse(xmlResponse);
if(obj_response.flag){
//Here i need to refresh the current page
}else{
$('#add-notification').text(obj_response.data);
}
},
});