View Single Post
  #1   Report Post  
Posted to comp.lang.javascript,comp.lang.java.javascript,microsoft.public.excel.programming
Greener Greener is offline
external usenet poster
 
Posts: 4
Default 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'");