load the div containing datatable via pop up window from another jsp page
load the div containing datatable via pop up window from another jsp page

In my home.jsp I've datatable inside the:
[code]
/*DATATABLE*/ [/code]
I've to update the datatable from another popup window when the tasks of the popup window is completed. the code I've used is:
[code]
$(function(){
$("#submit").click(function(){
var a=$("#ID").val();
var b=$("#NAME").val();
var c=$("#EMAIL").val();
//var datastring="mode=1&id=" + id + "&title=" + a + "&status=" + b;
var datastring="ID=" + a + "&NAME=" + b+ "&EMAIL=" +c ;
$.ajax
({
type: "post",
url: "edit.jsp",
data: datastring,
success: function(){
$('#demo_jui').load('home.jsp');
}
});
});
});
[/code]
but the code is not working; the datatable is not updating.
[code]
/*DATATABLE*/ [/code]
I've to update the datatable from another popup window when the tasks of the popup window is completed. the code I've used is:
[code]
$(function(){
$("#submit").click(function(){
var a=$("#ID").val();
var b=$("#NAME").val();
var c=$("#EMAIL").val();
//var datastring="mode=1&id=" + id + "&title=" + a + "&status=" + b;
var datastring="ID=" + a + "&NAME=" + b+ "&EMAIL=" +c ;
$.ajax
({
type: "post",
url: "edit.jsp",
data: datastring,
success: function(){
$('#demo_jui').load('home.jsp');
}
});
});
});
[/code]
but the code is not working; the datatable is not updating.
This discussion has been closed.