This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes problem in opening xml file in popup window through jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "problem in opening xml file in popup window through jsp" Watch "problem in opening xml file in popup window through jsp" New topic
Author

problem in opening xml file in popup window through jsp

varun srivastv
Greenhorn

Joined: Oct 15, 2009
Posts: 16
Hi,

<div>
<a href="#" onClick="window.open(file:///C:/ABC.xml);">Test</a>
</div>

I have this piece of code in my JSP. This is working fine in IE but not in firefox.
Nothing is happening in firefox.(no error message)

When i put the same piece of code in a html file, its working fine in firefox.
Also if i put onClick="window.open('http://www.google.com');" its working fine.

Problem is only when opening a XML file through jsp.

Can nyone help.

Thanks,
Varun
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Most browsers will not open up a file form the C drive unless you are running this html page off the c drive.

Eric
 
wood burning stoves
 
subject: problem in opening xml file in popup window through jsp