jsLib uses two kinds of files:
The list below shows the JavaScript files that make up jsLib. Their classes and objects appear in parentheses.
Messages can be added to the Log and later displayed as alerts.
The Loader is used by pages to retrieve their HTML or XHTML content.
Services that add, remove or replace children support logging.
This adds some methodology for dynamically adding methods to objects.
A visual is an object that sizes itself to fit into a pane.
A pane is an object that represents a portion of the browser display area.
Most presentations lay out at least two panes:
A url object represents an absolute url. It can be used to resolve relative urls.
Elements from external pages must be imported to work correctly in a presentation. The Importer ensures that their relative urls are resolved correctly.
A page represents an HTML or XHTML document and provides access to its elements. Pages are only accessed indrectly through the Repository singleton.
A load error indicator page represents a failure to load a page, possibly due to a url error on the part of the presentation author. It contains a single element that describes a page load error.
The Repository retains all pages from which elements have been loaded. Later element accesses from a loaded page will be made without using the network.
A section contains content to be displayed in a pane. It may contain a menu that is added to the menu cascade when the section or its descendents are displayed.
The start() method is assigned to
window.onload.
More methods may be added later to allow different
configurations of a presentation.
The list below shows the Cascading Style Sheet files used in jsLib.