DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   JavaScript / DHTML / AJAX (http://www.daniweb.com/forums/forum117.html)
-   -   window.open - How to open a local file (xml) with Firefox (http://www.daniweb.com/forums/thread116935.html)

vedmack Apr 2nd, 2008 4:08 am
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

hacker9801 Apr 2nd, 2008 4:58 am
Re: window.open - How to open a local file (xml) with Firefox
 
file:///C:/AdminFiles.xml

vedmack Apr 2nd, 2008 5:54 am
Re: window.open - How to open a local file (xml) with Firefox
 
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


All times are GMT -4. The time now is 3:12 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC