Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
$#!
 $
 _caps
 _def
 _indent
 _round
 _trim
 _trunc
 _undent
 _wrap
A
 add, pax.window
 addClassName, pax.util
 ajaxValidate, pax.validate.validators
 alpha, pax.validate.validators
 alphaNumeric, pax.validate.validators
 append, pax.box
 arrayHasValue, pax.util
B
 bind, pax.event
 bindKeyDown, pax.event
 bindKeyPress, pax.event
 bindKeyUp, pax.event
 bindOne, pax.event
C
 cancel, pax
 chain, pax.fx
 checkboxDependents
 colourFade, pax.fx
 copyObj, pax.util
 creditcard, pax.validate.validators
 css, pax.load
 cursorPos, pax.fx
D
 dateFormat, date
 defAddArgs, pax
 defaultArgs, pax
 deRegister, pax.window
 destroy, tabset
 domain, pax.validate.validators
 drag, pax.fx
 drop, pax.fx
E
 email, pax.validate.validators
F
 fadeIn, pax.fx
 fadeOut, pax.fx
G
 get
 getAgent, pax.util
 getElementsByClassName, pax.util
 getId, pax
 getNextId, pax
 getPosition, pax.util
 getStyle, pax.util
 getTarget, pax.util
 getType, pax.util
 getWindowDimensions, pax.util
 guess, date
H
 hasBinding, pax.event
 hasClassName, pax.util
 hasKey, pax.util
 hasValue, pax.util
 hide, pax.box
 hideAll, pax.window
 hideStatus, pax
var _$ = $; var $ = function $(id)
Alias to document.getElementById, if $ is already defined: _$ becomes the old $.
pax.template.modifier._caps = function(value,
restLower)
Returns string with first letter in uppercase, optionally converts the rest to lowercase.
pax.template.modifier._def = function(value,
defaultValue)
Returns defaultValue, if value is null or empty, otherwise value.
pax.template.modifier._indent = function(value,
number,
string)
Returns string with spaces at the front, optionally set number, and what string to use as seperator.
pax.template.modifier._round = function(value,
places)
Returns the value rounded to the specifed number of places
pax.template.modifier._trim = function(value)
Returns string with whitespace removed rom both the front and end of a string
pax.template.modifier._trunc = function(value,
length)
Returns the first length characters of value
pax.template.modifier._undent = function(value,
tabSpaces)
Removes extra whitespace characters from a multi-line string
pax.template.modifier._wrap = function(value,
max,
newLine,
cutWords)
Wraps a line value of text at max, using newLine, optionally cutting through words (cutWords).
pax.window.add = function(target,
id,
title,
content,
x,
y,
args)
Adds a window widget, and registeres it with the window manager
pax.util.addClassName = function(element,
className)
Adds a class name to an element
pax.validate.validators.ajaxValidate = function(field,
mask)
Validates via an ajax call.
pax.validate.validators.alpha = function(field,
mask)
Validates an alpha value
pax.validate.validators.alphaNumeric = function(field,
mask)
Validates an alpha numeric value
pax.box.append = function(id,
message,
className,
target,
location)
Shows a box at given element, appending it into the dom, rather than showing it at a specific position
pax.util.arrayHasValue = function(value,
arr)
Returns the index, if it finds a value in an array
pax.event.bind = function(obj,
event,
func)
Add an event to an OBJ
pax.event.bindKeyDown = function(obj,
func)
Binds a key down event to an object
pax.event.bindKeyPress = function(obj,
action)
Binds a key press event to an object.
pax.event.bindKeyUp = function(obj,
func)
Binds a key up event to an object
pax.event.bindOne = function(obj,
event,
func)
Binds the event once only, ie: clears any other bound functions on the event first.
pax.cancel = function(robj)
Cancel the pax call, and destroy request object
pax.fx.chain = function(fxList)
This method runs any number of effects, one after the other.
pax.form.checkboxDependents = function(formName,
checkBoxMap,
args)
This function relates check boxes to eachother, and warns or forces checking, when a Dependency (parent) is being unchecked, and can optionally uncheck Dependents (child) if a parent is unchecked.
pax.fx.colourFade = function (val,
ele,
pct)
To use this method, initialise via pax.fx.init.
pax.util.copyObj = function(obj,
allowDupes)
Returns a new object with the attribues of the given object, optionally removing duplicates
pax.validate.validators.creditcard = function(field,
mask)
Validates a credit card number; optionally validates card type
pax.load.css = function(url,
callBack)
Load CSS via ajax, and runs the callback when done.
pax.fx.cursorPos = function(event)
Get co-ordinates of the mouse cursor
Sets the expected format for a date object.
pax.defAddArgs = function(obj,
args)
Overrides default arguments in the given object, and adds any other attributes in the argument
pax.defaultArgs = function(obj,
args)
Overrides default arguments in the given object only if they exist in the given argument
pax.window.deRegister = function(id)
Private method: Each window is removed from the manager, once it is hidden or destroyed
pax.widget.tabset.destroy = function(tabset)
This is a private method to clean up the DOM, and any widgets that are used here
pax.validate.validators.domain = function(field,
mask)
Validates domain name
pax.fx.drag = function(element,
args)
Sets an element as draggable
pax.fx.drop = function(element,
args)
Sets an element as a drop target for a draggable element
pax.validate.validators.email = function(field,
mask)
Validate an email address
pax.fx.fadeIn = function(ele,
time)
Fades in an element in optional time miliseconds
pax.fx.fadeOut = function(ele,
time)
Fades out an element in optional time miliseconds
pax.get = function(url,
callBack,
callDesc,
spinnerBox,
spinnerImage)
Send a GET request via the XMLHttpRequest object.
pax.cache.get = function(key)
Retreives an object from the cache, returns null if obj is not cached
pax.window.get = function(id)
Private method: Returns a window from the window manager
pax.util.getAgent = function()
Private method, detects browser string, you should detect browser capability instead, handy in some instances.
pax.util.getElementsByClassName = function(element,
elementType,
className)
Return all elements by a given tag name and class name.
pax.getId = function()
Returns the current unique ID
pax.getNextId = function()
Increments the unique ID counter, and returns the ID
pax.util.getPosition = function(element,
excludeParent)
Locates position and dimensions of an object
pax.util.getStyle = function(element,
property)
Returns a given property from an element.
pax.util.getTarget = function(e)
Returns the target of an event
pax.util.getType = function(obj)
Returns the type of object that matches the element passed in.
pax.util.getWindowDimensions = function(tWindow)
Returns a dictionary with width, height of the window.
Populates the date obj based on the string in the input
pax.event.hasBinding = function(obj,
event,
func)
Returns true if an object has a certain event bound to the given function.
pax.util.hasClassName = function(element,
className)
Checks for a class name in an element
pax.util.hasKey = function(key,
obj)
Returns the key, if it finds a key from a dict or array
pax.util.hasValue = function(value,
dict)
Returns the value, if it finds a value in an object or dictionary
pax.box.hide = function(box,
func)
This will hide the given box, using the (optional) given function
pax.window.hideAll = function()
Hides all windows.
pax.hideStatus = function()
Hides the status spinners.
Close