A
alex
I am opening a new popup window, and i want to print the popup's window
contents.
The window is opened correctly, and the print dialog opens. But in
firefox (haven't tried IE yet), i get a message telling me that the page
has changed it's contents when i push the 'print' button and the page
doesn't get printed (i have to do it manually from the file->print menu).
It's like the document was not fully loaded when the print dialog showed
up, but the function should be called when the onLoad event triggers, so
it should not have changed!
This is my function:
function callPrint () {
dialogWin.url="print.php";
dialogWin.name="printWin";
dialogWin.win=window.open(dialogWin.url,dialogWin.name);
dialogWin.win.onload=new function() {
dialogWin.win.print();
};
}
BTW i tried 'onload' and 'onLoad' to test if the case mattered.
Thanks in advance
alex.
contents.
The window is opened correctly, and the print dialog opens. But in
firefox (haven't tried IE yet), i get a message telling me that the page
has changed it's contents when i push the 'print' button and the page
doesn't get printed (i have to do it manually from the file->print menu).
It's like the document was not fully loaded when the print dialog showed
up, but the function should be called when the onLoad event triggers, so
it should not have changed!
This is my function:
function callPrint () {
dialogWin.url="print.php";
dialogWin.name="printWin";
dialogWin.win=window.open(dialogWin.url,dialogWin.name);
dialogWin.win.onload=new function() {
dialogWin.win.print();
};
}
BTW i tried 'onload' and 'onLoad' to test if the case mattered.
Thanks in advance
alex.