Forum Moderators: open

Message Too Old, No Replies

window.open() cannot open local file

         

fuzzyericlim

2:40 am on Oct 18, 2005 (gmt 0)

10+ Year Member



hi, i have used window.open() to open local file successfully using IE. It used to be working fine until i upgraded to IE 6 SP1.

The syntax that i used is something like :
window.open("C:\MyFiles\1234.pdf","ViewPDF");

Is this a new security restrcition from IE6?

Can someone help?

tks & rgd

muneepenee

11:35 am on Oct 18, 2005 (gmt 0)



1. just did a test run...first time got errer messaej bout it kant find file.
2. tu get rid av errer...file name had tu be
"c:/web/filename.htm" insted av "c:\web\filename.htm"
must be nu rule.
if yu run a lokal file on pc, the name yu tipe intu the address feeld on yer skreen is "c:\web\filename.htm"
3. wen it opened the nu windo, it put up the quesshuns bout activx...yu gotta sae yes if yu yuze javaskripts.

fuzzyericlim

2:16 am on Oct 19, 2005 (gmt 0)

10+ Year Member



it doesn't work...

basically, i am trying to open a PDF by using javscript within a window.

My javascript is like:
<!-- Get the file locaiton in PC. I am using -->
<!-- <INPUT type=FILE name=filename>, -->
<!-- so i dont have to take care of the file -->
<!-- name format -->
theURL=document.theForm.filename.value;

<!-- open the PDF file within a NEW window-->
window.open(theURL,"ViewPDF");

It used to work, but after upgrade to IE 6 SP1,
everything just failed ..:-(

rgd.