Hi,
I believe this is a simple problem however I am not the best at javascript.
First of all I started with the following:
however this opens the XLS file in a web browser.Code:<a href="\\SERVER-01\folder\file.xls" target="_blank">
So I then created a function called "RunFile"
so when I do the following it works fine:
However my problem is that the "G" drive is mapped. So when I try:Code:<a href="#" onclick="RunFile('G:/Server/folder/file.xls');">Click me</a>
it does not work. There is nothing wrong with the mapping so I am assuming I must have to use the "file://" prefix in some manner? I have tried various alternative to no avail.Code:<a href="#" onclick="RunFile('\\SERVER-01\folder\file.xls');">Click me</a>
Regards,
jmcall10


Reply With Quote
Bookmarks