function showRTF() {
Quote:
var newWin = window.open("",
"newWin","width=900,height=800%,scrollbars=yes,men ubar=yes,resizable=yes,too
lbar=yes,location=no");
window.document.formShowRTF.target="newWin";
window.document.formShowRTF.submit();
}
>
You might want to change that in window.open("about
:blank" ...). Though
as I recently learend, Opera does handle this correctly, firefox and
internet explorer will not clear the document.
Other than that the target seems to be static, so you might want to put
that in the HTML.
Quote:
Whats happening surprisingly is, instead of calling the doPost() method
of
the Servlet, the doGet() method
is invoked the second time when you request an export operation, with
the
popup window open.
The window.open("" ...) _might_ cause a refresh with a GET.
Quote:
>
I have also tried opening different windows for every request.
The problem with this approach is that the first window hangs or
becomes blank.
Have you used different window names?
Well, it is rather strange, but it looks like what you did should work.
I would atleast try opening with "about
:blank". You might also want to
implement a small delay between the submit and the opening of the window
(using "window.setTimeout('window.document.formShowRTF.su bmit();',
20)"). If possible, keep a reference to the window, so you don't need to
open it twice:
var docWin;
function showRTF() {
if (!docWin) {
docWin = window.open("about
:blank",
"newWin", .. parameters... );
} else {
docWin.focus();
}
window.document.formShowRTF.target="newWin";
window.setTimeout('window.document.formShowRTF.sub mit();', 20);
}
Something like that.
Hope it helps,
Vincent