Clive Moore wrote:
Hi Erwin,
This is my Code.
var resultsWindow = window.open('resultsViewer.jsp', 'Results',
'location=no, directories=no, status=no, menubar=no, scrollbars=yes,
resizable=yes, copyhistory=yes, width=780, height=550');
resultsWindow.location.reload();
my problem is that i get a javascript error when the user opens the
child
window the first time. I think its due to the fact that
im doing a reload on a window that is only opening.
Any ideas
Clive
Hi Clive,
If you think the problem has to do with the fact the window is not loaded
(very possible) try this maybe:
var resultsWindow;
function openResultWindow(){
// can open or re-load.
if (resultsWindow) {
resultsWindow.location.reload();
} else {
resultsWindow = window.open('resultsViewer.jsp', 'Results',
'location=no, directories=no, status=no, menubar=no, scrollbars=yes,
resizable=yes, copyhistory=yes, width=780, height=550');
resultsWindow.location.reload();
}
In that way you test if it is open already and do the right thing depending
on the existance of resultsWindow.
I didn't check this code, so maybe it has some typo.
Good luck,
Erwin Moller