954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

window.open - How to open a local file (xml) with Firefox

Hi

my file is located at c:\AdminFiles.xml

i tried the following ways

window.open("c:/AdminFiles.xml",'HeavyXml');

window.open("c:\AdminFiles.xml",'HeavyXml');

window.open("c:\\AdminFiles.xml",'HeavyXml');

in the above i'm getting the following error:
"Firefox doesn't know how to open this address, because the protocol (c) isnt associated with any program"


window.open("file:///c:\\AdminFiles.xml",'HeavyXml');

the last attempt give to respond at all...

any suggestions???


thanks ahead.

Daniel

vedmack
Junior Poster in Training
59 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

file:///C:/AdminFiles.xml

hacker9801
Junior Poster
130 posts since Aug 2007
Reputation Points: 59
Solved Threads: 16
 

i found out that the problem is something else...
all this mambo jumbo about opening the xml is inside a jsp file....
I did the following test, i did "view source" and copy/paste into an .html file and opened inside Firefox , and it works just fine!!!!!
What could be the problem??? :/

gonna post a thread in JSP forum....

thx 4 the help

vedmack
Junior Poster in Training
59 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

Hi ,
IAm trying to open a file from JSP And getting a same problem as you had.

It says Firefox does not know how to ope this program.

I have my file on c:\pay\out\paystatement.pdf I have to open it from a JSP.

Can you help me how did you resolve the problem??

Thank you for help

Chetan

CHETAN26
Newbie Poster
1 post since Dec 2010
Reputation Points: 10
Solved Threads: 0
 

I really don't remember... Sorry

vedmack
Junior Poster in Training
59 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

Hi

my file is located at c:\AdminFiles.xml

i tried the following ways

window.open("c:/AdminFiles.xml",'HeavyXml');

window.open("c:\AdminFiles.xml",'HeavyXml');

.....

Daniel


Install LocalLink extension for firefox.

delomos
Newbie Poster
1 post since Dec 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You