ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Two Questions about the Following Block of Code (https://www.excelbanter.com/excel-programming/279160-re-two-questions-about-following-block-code.html)

Greener

Two Questions about the Following Block of Code
 
Thanks, Lee.

I tried document.write("<a href='" + strFile + "' target='_top'"); //
OR using '_blank'

It still cannot open the Excel file. My question is,

1) Is the line "document.write( )" indeed the way in Netscape to open
an Excel file if you pass a http:/ link? Is so, why didn't it work?
Are there any other ways to open files in Netscape?

2) In Internet Explorer, I had to use a different way (creating
ActiveX instance shown in my earlier message) to open an Excel file.
How to force opening the file in NON-ReadOnly mode? I tried many
things, but none of them was working.

Thanks millions!

Helena



Lee wrote in message ...
Greener said:

2) Any problems with the lines with document.write (...), as indicated
below?


document.write("<a href='" + strFile + "' target="_top"");


Should be:

document.write("<a href='" + strFile + "' target='_top'");



All times are GMT +1. The time now is 08:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com