aspose 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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in opening xml file in popup window through jsp