English Deutsch Français Italiano Particle Software Buy Now


Particle Software
 
Scripted Example
   ..::   About  •  Purchasing  •  Search  •  Contact  • Home   ::..
 
Screenshots
• Sample
Downloads
Resources
• FAQ
• Macros

 
   Below shows how IntraLaunch can be used via Javascript or VBScript. This method is more flexible & powerful allowing for forms, animated GIFs, text links, etc. can all be made to execute applications. The Height and Width values of the object specify how big it is in pixels. A size of 1x1 should be used if the object will be called via Javascript. Or add style="display : none" to visually remove the object from the page. This helps ensure the object doesn't interfere with any page rendering.

   You can also use ExecuteIt to dynamically pass variables from web page forms to IntraLaunch for execution.


 
 
<HTML>

<SCRIPT LANGUAGE="JavaScript">
  function RunExcel()
  {
    IntraLaunch_Excel.ExecuteIt('Null');
  }
</SCRIPT>

<BODY>

<a href="Javascript:RunExcel();">Run Excel</a>

</BODY>

<OBJECT ID="IntraLaunch_Excel" STYLE="display : none" WIDTH=1 HEIGHT=1    CODEBASE="http://intranet.net/menu/IntraLaunch.CAB#version=5,0,0,0"
   CLASSID="CLSID:0AE533FE-B805-4FD6-8AE1-A619FBEE7A23">
   <PARAM NAME="ImageLoc" VALUE="Null">
   <PARAM NAME="ImageSrc" VALUE="Null">
   <PARAM NAME="Run" VALUE="C:\Apps\Office\excel.exe">
   <PARAM NAME="RunParms" VALUE="">
   <PARAM NAME="DefDir" VALUE="">
   <PARAM NAME="Display" VALUE="MAX">
   <PARAM NAME="Sound" VALUE="G:\Data\Sounds\TrekAffirm.wav">
   <PARAM NAME="ProcessErr" VALUE="MessageBox">
   <PARAM NAME="ErrAction" VALUE="Error|App not found.">
</OBJECT>

</HTML>
 
 
       


  If passing a full path/program to ExecuteIt, you might need to use two backslashes because the first one is treated as the escape character within Javascript.

  For example IntraLaunch.ExecuteIt('C:\\fullpath\\program.exe').

  The Run param should be set to "Null" if doing this. Variables can also be passed to ExecuteIt and will be parsed for replacement.


Copyright © 1997-2008 Particle Software - All Rights Reserved
Web services provided by Extreme Hosting