I have the following JavaScript inside of a .JSP file:

<a href="javascript:window.open
('../Glossary/G_Sequence.htm', 'glossary', 'width=300,height=200,scrollbars')">

When the file is served by the Tomcat server to my Win98 machine running IE5.0,
and I click the link, the JavaScript does open the window with the file in it,
but a File Download window opens, with the the following error over it:

"Internet Explorer cannot download P_Adding_appointments.jsp from
window.open('...

Internet Explorer was not able to open this Internet site. The requested site
is either unavailable or cannot be found. Please try again later."

The JavaScript is just loading a standard HTML page into the secondary window.
Why is it trying to reload the originating page (the .JSP file)?

Is there a different way I can do the JavaScript that won't cause this problem?
I originally had this done as <a href="#" onClick="window.open...., but that
causes the parent window to pop back up to the top of the page, which is also
undesirable.

Any advice is greatly appreciated.

-David Castro
 [EMAIL PROTECTED]


__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to