R
Rob Videtta
Hi,
Please Help!
I have developed a custom JSP tag that produces Javascript to create a
window and write HTML and Javascript to that window. This window
displays an error message.
The problem is this. When the page with the custom tag is refreshed
without closing the (error) window the content written to the window
in the first place is written again. Thus, the error message appears
twice. The window source will then basically contain a replica of the
code, appended to the end of the first section of code. What I want
to do is clear the contents of the window before writing the HTML and
Javascript to that window. I have found a method document.clear()
which does not seem to be supported by IE. Does anyone know how I
achieve the same functinality?! Alternatively, I want to be able to
close the window and create a new window (with an error message) but I
don't know how I can check if the window is open. Remember that all
the functionality must be contained within the Javascript output by
the tag (the HTML page where the tag resides cannot be modified).
Any help would be much appreciated. Thanks,
Rob.
Please Help!
I have developed a custom JSP tag that produces Javascript to create a
window and write HTML and Javascript to that window. This window
displays an error message.
The problem is this. When the page with the custom tag is refreshed
without closing the (error) window the content written to the window
in the first place is written again. Thus, the error message appears
twice. The window source will then basically contain a replica of the
code, appended to the end of the first section of code. What I want
to do is clear the contents of the window before writing the HTML and
Javascript to that window. I have found a method document.clear()
which does not seem to be supported by IE. Does anyone know how I
achieve the same functinality?! Alternatively, I want to be able to
close the window and create a new window (with an error message) but I
don't know how I can check if the window is open. Remember that all
the functionality must be contained within the Javascript output by
the tag (the HTML page where the tag resides cannot be modified).
Any help would be much appreciated. Thanks,
Rob.