markp99
asked on
Launch XLS file using javascript>
I have a google maps page I am playing with. I'd like to add a button to the form to launch an XLS file sitting in a remote location. Is this possible?
I have tried the following without success:
<script language="JavaScript">
function startExcel(strFile) {
alert ("startExcel");
var myApp = new ActiveXObject("Excel.Appli cation");
if (myApp != null) {
myApp.Visible = true;
myApp.Workbooks.Open(strFi le);
}
}
</script>
Called by:
<a href="javascript:startExce l('http://myserver.com/test.xls')">Test .xls</a>
Any suggestions to accomplish this task?
I have tried the following without success:
<script language="JavaScript">
function startExcel(strFile) {
alert ("startExcel");
var myApp = new ActiveXObject("Excel.Appli
if (myApp != null) {
myApp.Visible = true;
myApp.Workbooks.Open(strFi
}
}
</script>
Called by:
<a href="javascript:startExce
Any suggestions to accomplish this task?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER