Patrick McHale wrote:
> I would like to know how best to implement autoloading of XPI file
> installing. Presently I have this arrangement - is this
> correct - seems to work but as I am not a Javascript Guru - would like to
> get confirmation of this or a better way.
>
> <BODY onLoad="Register()">
>
>
> function Register() {
> xpi={'webterm':'1.5.1.5_webterm.xpi'};
> InstallTrigger.install(xpi);
> }
That would work, but it's anti-social to pop things in people's faces when
they enter your site. It also assumes your .xpi file is in the same
directory as the web page since you're using a relative URL there.
If that's all you want your Register function to do you could simplify it to
onLoad="InstallTrigger.install({'webterm':'1.5.1.5_webterm.xpi'})"
-Dan Veditz