Open LSP file from VBA generated HTML

Discussion in 'AutoCAD' started by BVH-CAD, Jul 18, 2003.

  1. BVH-CAD

    BVH-CAD Guest

    Hey Gurus....
    I've got a VBA app that lists all of my LSPs (try saying *that* 10 times) in a web page. The question I have is: How can I get a LSP file to load when I click on the link created by the VBA app. Currently, when I click on the link, it asks me if I want to open or save the file. I want it display on the web page without having to create a separate text file of the LSP.

    Any help will be greatly appreciated.

    Thanks in advance!
      ~ Matt
     
    BVH-CAD, Jul 18, 2003
    #1
  2. Search Google for the following thread:

    "Loading a Lisp File in AutoCad from an Intranet Web Page"

    --
    http://www.acadxtabs.com


    can I get a LSP file to load when I click on the link created by the VBA app. Currently, when I click on the link, it
    asks me if I want to open or save the file. I want it display on the web page without having to create a separate text
    file of the LSP.
     
    Tony Tanzillo, Jul 19, 2003
    #2
  3. Try this:

    <html>
    <head>
    <title>Open Lisp From HTML Document Example</title>
    <SCRIPT LANGUAGE=javascript>
    <!--
    function openLisp(theElement)
    {
    var Shell = new ActiveXObject("Shell.Application");
    return Shell.ShellExecute(theElement.innerText);
    }

    //-->
    </SCRIPT>
    </head>
    <body>
    <a href=# onclick="return openLisp(this);">c:\myfile.lsp</a>
    <a href=# onclick="return openLisp(this);">c:\myotherfile.lsp</a>
    </body>
    </html>

    --
    http://www.acadxtabs.com


    a TXT file on a web page. By default, when I click on a LSP file in Windows Explorer, it opens in Notepad, but when I
    click on the link in Internet Explorer, it prompts me to either download or open the file.
     
    Tony Tanzillo, Jul 22, 2003
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.