Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Launch XLS file using javascript>

Posted on 2009-07-02
2
Medium Priority
?
378 Views
Last Modified: 2012-06-27
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.Application");
                  if (myApp != null) {
                        myApp.Visible = true;
                        myApp.Workbooks.Open(strFile);
                         }
               }
      </script>

Called by:

        <a href="javascript:startExcel('http://myserver.com/test.xls')">Test.xls</a>

Any suggestions to accomplish this task?
0
Comment
Question by:markp99
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
kevin_u earned 1500 total points
ID: 24768008
Browser security should prevent using ActiveXObject("Excel.Application") from any web site.

You could try:

<a href="javascript:window.open('http://myserver.com/test.xls','_blank')">Test.xls</a>

But I don't know if that gives you the functionality you need.

0
 

Author Closing Comment

by:markp99
ID: 31599370
?
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question