Help
Help
Hello,
i need to open a new window and display few number off tables, for now,
i'm testing with only one table, i'm using this code...
[code]
var newWindow = window.open("", "");
newWindow.document.open();
var s = 'Preview Message';
s += '';
s += "<";
s += '/script>';
s += '';
s += "<";
s += '/script>';
s += '';
s += '';
s += "$(document).ready(function() { \
$('table').dataTable(); \
} );";
s += "<";
s += '/script>';
s += '';
newWindow.document.write(s);
$.get('table.html', function(data) {
newWindow.document.write(data);
});
newWindow.document.close();
newWindow.focus();
[/code]
the problem is that datatables Initialisation code doesn't work... can anyone help me with this?
Thanks
i need to open a new window and display few number off tables, for now,
i'm testing with only one table, i'm using this code...
[code]
var newWindow = window.open("", "");
newWindow.document.open();
var s = 'Preview Message';
s += '';
s += "<";
s += '/script>';
s += '';
s += "<";
s += '/script>';
s += '';
s += '';
s += "$(document).ready(function() { \
$('table').dataTable(); \
} );";
s += "<";
s += '/script>';
s += '';
newWindow.document.write(s);
$.get('table.html', function(data) {
newWindow.document.write(data);
});
newWindow.document.close();
newWindow.focus();
[/code]
the problem is that datatables Initialisation code doesn't work... can anyone help me with this?
Thanks
This discussion has been closed.
Replies