HOWTO: Use jQuery To Install Firefox Extensions (InstallTrigger.install)

| No TrackBacks
Happy Friday the 13th.

You can install a Mozilla Firefox extension two ways.  First, if you have a .xpi file (a zip'ed, pre-packaged Firefox extension file), you can simply launch Firefox then select "File->Open File".  Select the XPI, and click Open.  This will kick off the extension installation in the browser.  This is neat, but it isn't as exciting as letting a user install your Firefox extension with a single "click here to install" link, like the Mozilla Firefox Add-ons portal.  So, a second option is to write up some slick JavaScript to call InstallTrigger.install() which triggers the Firefox extension installation.  Of course, there's no better way to do this than with jQuery.

Using jQuery to trigger the Mozilla Firefox extension installer is a snap.  You can find a demo, the JavaScript code, and other details here.  Enjoy.

Did You Find this Helpful?

Did you find this post helpful, or at least, interesting?

  

Send Mark a Direct Message

If you'd like to send me a direct message, please do so below. However, I do not publicly post comments or messages submitted directly to me. So, if you're going to try to SPAM me, or my blog, you're pretty much wasting your time.

400 characters remaining

Error

About Mark

A Silicon Valley native, Mark Kolich is a full-time Software Engineer, a casual entrepreneur, and a consultant for hire. A web technologies expert, his current focus is on building powerful and robust cloud-driven web-applications using Java, PHP, Perl, AJAX, DHTML, CSS, and JavaScript. His favorite programming languages are PHP, Java and JavaScript. He uses Linux, enjoys biking to work, loves building great software, and always writes elegant, readable, and maintainable code.

No TrackBacks

No trackbacks attached to this entry.

Twitter (@markkolich)

Translate

About this Entry

This page contains a single entry by Mark Kolich published on March 13, 2009 7:00 AM.

Max Size of a MySQL UNSIGNED BIGINT(20) Relating to Hibernate was the previous entry in this blog.

Added A Google Translate Widget to my Movable Type Blog is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.