Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in opening xml file in popup window through jsp

 
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic