Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

Firefox seems to prevent me from clicking on a link to execute a program named Simple Family Tree.exe

  • 8 uphendule
  • 2 zinale nkinga
  • 173 views
  • Igcine ukuphendulwa ngu GenealogyGuy

more options

The code in BOLD TYPE below is what I am trying to use to make it work – what errors do I have?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Family Tree Charts</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><style type="text/css">
<!--
body,td,th {
	color: #000;
}
-->
</style>
<script>
function RunExe(path) {
    try {            
        var ua = navigator.userAgent.toLowerCase();
        if (ua.indexOf("msie") != -1) {
            MyObject = new ActiveXObject("WScript.Shell")
            MyObject.Run(path);
        } else {
            netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
            var exe = window.Components.classes['@mozilla.org/file/local;1'].createInstance(Components.interfaces.nsILocalFile);
            exe.initWithPath(path);
            var run = window.Components.classes['@mozilla.org/process/util;1'].createInstance(Components.inteinterfaces.nsIProcess);
            run.init(exe);
            var parameters = ["/c start Simple Family Tree.exe"];
            run.run(false, parameters, parameters.length);
        }
    } catch (ex) {
        alert(ex.toString());
    }
}
</script>
</head>
<body link=blue vlink=blue>
<table width="100%" height="25" border="0" cellpadding="4" cellspacing="0">
  <tr> 
    <td width="93%" height="27" bgcolor="#EFEFEF"> <div align="center"><font color="#999999"> 
    <b>This Software Allows You To Review Neat Charts of Your Family Tree </b></font></div></td>
    <td width="7%" bgcolor="#CCFFFF"> <div align="center"><A href="Mementos_Menu.html"><font size="2">Back</font></a></div></td>
  </tr>
</table><BR><center>
<br>
<FONT color=#ff00ff><strong>Click the link below to download a special software program for your PC and your GED file.</strong></FONT><br>
<br>
<a href="http://jdmcox.com/"><strong>Cox Website</strong></a><br><br>
<strong>ITEM 1</strong> (AT HIS  WEBSITE) IS  HIS <strong>FAMILY TREE CHART</strong> PROGRAM.<br>
It is called <strong>Simple Family Tree</strong><br>
<table width="58%" border="2" cellspacing="2" cellpadding="2">
  <tr>
    <td width="49%" align="left" valign="top"><FONT color=#ff00ff><strong>Click the link below to look at my GEDCOM file contents.<br>Instructions are provided in the READ THIS menu option at the top of the window.</strong></FONT><br>
  <br>
  <a href="#" onclick="javascript:RunExe('C:\\Users\\Tom and Polly\\Documents\\Genealogy CD\\Simple Family Tree.exe');"><strong>Show Yarnall Chart</strong></a>
<br><br>
  <FONT color=#ff00ff><strong>Return to this webpage by clicking on the backarrow after looking at the chart.<br>
    You can update the family data in future years with this program too.</strong></FONT>
  <br></td>
    </tr>
</table>
<br></center>  

<table width="100%" border="0" cellpadding="2" cellspacing="0" bgcolor="#CCCCCC">
    <tr> 
      <td bgcolor="#EFEFEF"> <font size="2">&copy;2002 Sales and People</font></td>
    </tr>
</table></body>
</html>

Okulungisiwe ngu cor-el

All Replies (8)

more options

The wiki-based forum syntax doesn't translate HTML code very well, so your question is hard to follow.

I see you have some feedback here: Adobe Community: What html code will start an EXE (program) with a click on a webpage link?

Regarding your effort to break out of Firefox's security limitations, the enablePrivilege() method has been removed or deactivated. Please disregard any code examples from past years that used enablePrivilege() as those will no longer work.

more options

With respect to the problem you have with hover tooltips in IE 11, IE is increasingly standards compliant, so it should work more similarly to Firefox than ever before. If your code treats IE differently than Firefox, trying using the same technique in both and see whether that works.

more options

is the same code with both browsers (IE 11 and Firefox)

more options

What code is good to use currently?

more options

You can display tooltips on hover using either:

  • title attribute
  • mouseover script

The title attribute will appear in a box, unstyled, after hovering for a couple seconds. With a mouseover script, you have complete control over the appearance, which also means more work to do positioning the tooltip.

Regarding launching EXEs automatically or running ActiveX controls in the page, there is no code to do that in Firefox without an add-on.

more options

Thanks - I am trying to find out what add-on and how to make use of it with Firefox.

I need to learn how to make use of mouseover script!

Right now title attribute does it in Firefox, but not in IE 11.

more options

Note that enablePrivilege is no longer supported in current Firefox releases, so RunExe(path) won't work anymore.

  • Bug 546848 - Remove support for enablePrivilege
more options

Thanks - if you know what code I should use, please send it to me. I know what not to use now.