Firefox Plug-in
[Section 2: Loading Your Plug-Ins]

Loading the Flix Publisher plug-in in Firefox, Flock, and Netscape. More...

Functions

function get_ns_plugin ()

Variables

var xpi_source
 Plug-in URL.
var xpi_name
 Plug-in Name.
var xpi_version
 Plug-in Version Number.
var np_mime_type
 Plug-in MIME-Type.

Detailed Description

The settings in this section tell the reference application where to download your XPI installer, and how to load your plug-in.

Function Documentation

function get_ns_plugin (  ) 

Loading Function

Find this value in the file `plugin-info.txt`.

Change REPLACE_ME_WITH_INTERFACE_NAME to the 'netscape plug-in interface' string.

Example

    // nsIOn2Publisher is On2 Flix Publisher's interface name
    function get_ns_plugin() { return document.flixe.nsIOn2Publisher; }


Variable Documentation

var xpi_source

Location (URL) of the On2-provided binary plug-in for Mozilla-based browsers (e.g. Firefox). Note that your server's filesystem is probably case-sensitive, so capitalization matters.

Examples

    var xpi_source = fp_scheme + fp_hostname + "/plugins/npon2publish.xpi";

If your web host requires you to host the plug-ins and images on seperate servers, set xpi_source to a complete URL.

    var xpi_source = "http://example.com/plugins/npon2publish.xpi";

var xpi_name

The value of the xpi_name variable is displayed in the confirmation dialog box when a user is prompted to allow plug-in installation.

xpi_name is for display purposes only. It is used only in the installation confirmation dialog, and should be set to the name you wish users to use when referring to your flix publisher plug-ins.

Example

    var xpi_name = "XYZ Widget";

var xpi_version

Find this value in the file `plugin-info.txt`.

Note that Mozilla-compatible plug-in version numbers include periods.

    var xpi_version = "3.0.5.0";

var np_mime_type

Find this value in the file `plugin-info.txt`.

Example

    // On2 Flix Publisher's mime-type
    var np_mime_type = "application/x-on2publisher-plugin";


On2 Flix Publisher documentation, generated on Mon Jan 7 18:13:01 2008 by doxygen 1.5.4 On2 Technologies, Inc