Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot access file

Status
Not open for further replies.

organicg

Programmer
Oct 21, 2002
151
US
On Windows Server and IIS6, when requesting Office doc, xls, and ppt with:
Code:
<input type=button onClick= "window.open('[URL unfurl="true"]http://domain.com/files/somefile.doc',[/URL] '_blank');">

the files do not open, but an Adobe pdf will open. I get error "cannot download [file]...IE was not able to access this website".
This same code works fine with Localhost on WinXP and IIS5. Could there be a setting in IIS6 that's refusing to serve Office files in NEW windows?
On the IIS6 box, I tested this HTML and it actually works and the file is served:
Code:
<a href='[URL unfurl="true"]http://domain.com/files/somefile.doc'[/URL] target = '_blank'>download file</a>

unfortunately I can't use that HTML in the real solution, I'm forced to call a script that uses window.open() because I'm using 3rd-party dhtml nav menus.
Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top