There are a few utilities which are not covered off under any other category.

Available Functions


bottomStamp()

Arguments

copyright
set to true to include copyright
date
set to true to include date
Return
Nothing is returned
Action

None, if both arguments are false. Otherwise a div of class bottomStamp is created and a copyright div and a dateStamp div are put into it. The copyright notice is taken from the constants.js script, the date is the last date the document was modified. Appearance of the divs is controlled from the stylesheets.


retrieveSource()

Arguments

No arguments are recognized.

Return
Nothing is returned
Action

All the HTML source in the BODY of the page is retreived and displayed in an alert.

Comment

This is useful for debugging dynamic HTML development as the HTML will be shown as generated. However, its usefulness is limited by the size of the alert that can be shown. If you are having trouble with a piece of dynamic HTML, isolate it and put it into it's own page so there is not too much stuff to fit comfortably in the alert box. Much better is to use FireFox and Jennifer Madden's wonderful render source plugin.


examine(object)

Arguments

object
The object to be examined.
Return
A string containing the object description is returned
Action

Every property in the object, together with its value, is dumped into a string.

Comment

Again, a function useful for debugging JavaScript development. This is most useful with an alert containing whatever prompt you want plus the returned string describing the object. For example—

alert("My object contains:" + examine(myObject));

getToContent()
getToImages()
getToConfigurations()
getToWebWriter()
getToVideos()

Arguments

None
Return
A string containing the relative URL from the current page to the directory containing the desired resource.
Action

returns the specified string.

Comment

A set of functions useful for navigating to a desired resource, such as an image or a video.