File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 15
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: problem in opening xml file in popup window through jsp
 
Similar Threads
window.showModalDialog in javascript
Simple Query
window.open doesn't work in IE
how to open pdf files in FireFox through jsp page?
Problem with window.print() in chrome.