Sash XB for Linux
Home |  Documentation  ... Contact

Using Extensions

The Core and Linux extensions are always loaded, which means that they don't have to be specified as dependencies for weblications that access them. In order to use other extensions, you must include them on the dependency list maintained in the WDF file (which can be viewed and edited under the 'Dependencies' tab of the sash-wdf-editor). If an extension depends on another extension, make sure to include all relevant extensions.

Before running the weblication make sure that all of the extensions and locations are installed (See the sash-install section).

Reading Documentation

Each extension object can have constants, properties, methods, constructors, and callbacks.

When viewing properties, function parameters, and return values, sometimes you will see multiple types enclosed in braces ({}). This means that the value type depends on the circumstances. For example, the FTP connection object's RemoveFromQueue() method removes a file from the transfer queue. This file to be removed can be specified by its index (a long value) in the queue or its name (a string value).

IMPORTANT: You may notice square brackets ([]) in our documentation. These are used for optional arguments. Unfortunately, Mozilla's JavaScript engine does not currently support optional arguments for functions, meaning that you must pass in the correct number of arguments. Pass in null for optional arguments:


// Pass in an FTP server location and the port number.
// If the port is unspecified, 21 is used.
// Ideally, the following line would read:
// ftpconnection.Connect("ftp.mozilla.org");
// Instead, we have to do the following:
ftpconnection.Connect("ftp.mozilla.org", null);

We hope that this will be resolved in the near future.


Wing Yung
Last modified: Thu Mar 21 16:17:24 EST 2002

  
© Copyright 2002, All Rights Reserved. Contact