Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in opening xml file in popup window through jsp  RSS feed

 
varun srivastv
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!