$.ajax({
type:'POST',
url: 'function.php',
success: function(data){
win = window.open("", "Window", "width=620,height=320,scrollbars=yes,titlebar=no,resizable=no");
if(win && !win.closed)
{
win.document.clear();
win.document.writeln(data);
win.document.writeln("<a href='javascript:self.close()'>close window</a>");
win.focus();
}
}
});
function.php
returns a html table.
In the parent form contains several links, when press each time on the link i need to refresh the content with new values based on the link id.