Possibly send back a page which opens up the pop-up, then forces the current page
back using history.go(-1)
Like this:
<HTML>
<HEAD>
<SCRIPT Language="Javascript">
function popBack(url) {
popup = window.open(url, "popupWindow",
"scrollbars=yes,width=250,height=400,menubar=yes");
history.go(-1);
popup.focus();
}
</SCRIPT>
</HEAD>
<BODY onload="popBack('popup.html')">
Error Page
</BODY>
</HTML>
- simon
Patty Case wrote:
> I have seen the general problem of an error popup window addressed before but
> not my specific problem.
>
> When I get an error, my servlet displays an error jsp page in my browser window.
> I want an error popup instead,
> so I wrote some JavaScript to do that and included that in my error jsp file. I
> would like the error popup to display
> over the page where the error occurred. My problem is that a new, blank browser
> window is opened and then the
> error popup displays. When I close the popup, I'm faced with the blank window,
> and I have to use the back button to
> return to the previous window. This will be very confusing to the user. Is
> there a way to retain the original window and
> display the error popup over it? Reloading the original page every time there's
> an error is probably too costly
> performance-wise.
>
> Thanks,
> Patty
>
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html