Class GLOBALS

Object
   |
   +--GLOBALS

class GLOBALS

 
Method Summary
<static> string base64ToString(<string> encStr)
           decode a string of Base64 to normal text See this site for the method usede: http://www.faqts.com/knowledge_base/view.phtml/aid/1748
<static> int checkRemoteFileLength( url )
           Trys to determine the length of a remote file using an HTTP "HEAD" request.
<static> void downloadWithManager( <string> sourceUri, <File> targetFile, <boolean> suppress )
           Download a file using the "Download Manager" to allow the user to monitor progress.
<static> DOMElement geid( <string> id )
           does the equivelent of document.getElementById( id )
<static> string getFilepathFromURL( <string> url )
           Return a proper platform specific filepath from a "file://" url.
<static> Object getGemstonePref( <string> pref )
           Provides access to Gemstone's user and internal preferences
<static> File getTempDir( <string> name, <int> permissions )
           create a dir for temporary use
<static> File getTempFile( <string> name, <int> permissions )
           create a file for temporary use on a mac the file is created in Library/Cache/
<static> void openExternalURI(<string> aPath)
           last resort for opening an unknown file/directory on the system.
<static> Object paramErrorCheck( <string> mode, <string> paramName, <array> paramArray, msg, custom)
           Check whether various given parameters are NOT valid.
<static> array readByteArray( content, <string> mode )
           return file contents as an array of bytes
<static> void saveLocalFile( <string> path, <string> text, replace )
           Save text to a file
<static> void setGemstoneBoolPref( <string> pref, <boolean> value )
           Sets a boolean preference
<static> void setGemstoneIntPref( <string> pref, <int> value )
           Sets an integer preference
<static> void setGemstoneStringPref( <string> pref, <string> value )
           Sets a string preference
<static> Object showFilePicker( <string> aMode, <string> aTitle, <array> filters, <string> aDefaultName, <nsILocalFile> aDefaultDir )
           display a filepicker and return the selection does not catch exceptions, caller is responsible.
<static> string simplePrompt( <string> msg, <string> initial )
           Prompt the user for a simple string of info from the user
<static> string stringToBase64( <string> aString )
           convert a string of text to Base64
<static> void trace( <string> msg )
           logs an information-level message to the JavaScript/Error console.
<static> array xPathSearch(<DOM> aXmlDoc, <string> aXpath)
           do an xPath search on a document


Method Detail

base64ToString

<static> string base64ToString(<string> encStr)

checkRemoteFileLength

<static> int checkRemoteFileLength( url )

downloadWithManager

<static> void downloadWithManager( <string> sourceUri, <File> targetFile, <boolean> suppress )

geid

<static> DOMElement geid( <string> id )

getFilepathFromURL

<static> string getFilepathFromURL( <string> url )

getGemstonePref

<static> Object getGemstonePref( <string> pref )

getTempDir

<static> File getTempDir( <string> name, <int> permissions )

getTempFile

<static> File getTempFile( <string> name, <int> permissions )

openExternalURI

<static> void openExternalURI(<string> aPath)

paramErrorCheck

<static> Object paramErrorCheck( <string> mode, <string> paramName, <array> paramArray, msg, custom)

readByteArray

<static> array readByteArray( content, <string> mode )

saveLocalFile

<static> void saveLocalFile( <string> path, <string> text, replace )

setGemstoneBoolPref

<static> void setGemstoneBoolPref( <string> pref, <boolean> value )

setGemstoneIntPref

<static> void setGemstoneIntPref( <string> pref, <int> value )

setGemstoneStringPref

<static> void setGemstoneStringPref( <string> pref, <string> value )

showFilePicker

<static> Object showFilePicker( <string> aMode, <string> aTitle, <array> filters, <string> aDefaultName, <nsILocalFile> aDefaultDir )

simplePrompt

<static> string simplePrompt( <string> msg, <string> initial )

stringToBase64

<static> string stringToBase64( <string> aString )

trace

<static> void trace( <string> msg )

xPathSearch

<static> array xPathSearch(<DOM> aXmlDoc, <string> aXpath)


Documentation generated by JSDoc on Tue Jan 23 13:09:00 2007