Simple alias to document.getElementById
pax.$ = function( id )
Returns string with first letter in uppercase, optionally converts the rest to lowercase.
pax.template.modifier._caps = function( value, restLower )
Returns defaultValue, if value is null or empty, otherwise value.
pax.template.modifier._def = function( value, defaultValue )
Returns string with spaces at the front, optionally set number, and what string to use as seperator.
pax.template.modifier._indent = function( value, number, string )
Returns the value rounded to the specifed number of places
pax.template.modifier._round = function( value, places )
Returns string with whitespace removed rom both the front and end of a string
pax.template.modifier._trim = function( value )
Returns the first length characters of value
pax.template.modifier._trunc = function( value, length )
Removes extra whitespace characters from a multi-line string
pax.template.modifier._undent = function( value, tabSpaces )
Wraps a line value of text at max, using newLine, optionally cutting through words (cutWords).
pax.template.modifier._wrap = function( value, max, newLine, cutWords )
Adds a window widget, and registeres it with the window manager
pax.window.add = function( target, id, title, content, x, y, args )
Adds a class name to an element
pax.util.addClassName = function( element, className )
Validates via an ajax call.
pax.validate.validators.ajaxValidate = function( field, mask )
Validates an alpha value
pax.validate.validators.alpha = function( field, mask )
Validates an alpha numeric value
pax.validate.validators.alphaNumeric = function( field, mask )
Shows a box at given element, appending it into the dom, rather than showing it at a specific position
pax.box.append = function( id, message, className, target, location )
Returns the index, if it finds a value in an array
pax.util.arrayHasValue = function( value, arr )
Add an event to an OBJ
pax.event.bind = function( obj, event, func )
Binds a key down event to an object
pax.event.bindKeyDown = function( obj, func )
Binds a key press event to an object.
pax.event.bindKeyPress = function( obj, action )
Binds a key up event to an object
pax.event.bindKeyUp = function( obj, func )
Binds the event once only, ie: clears any other bound functions on the event first.
pax.event.bindOne = function( obj, event, func )
Cancel the pax call, and destroy request object
pax.cancel = function( robj )
Cancels all ongoing effect on the given targets id
pax.fx.cancelAll = function( id )
This method runs any number of effects, one after the other.
pax.fx.chain = function( fxList )
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.form.checkboxDependents = function( formName, checkBoxMap, args )
To use this method, initialise via pax.fx.init.
pax.fx.colourFade = function ( val, ele, pct )
Returns a new object with the attribues of the given object, optionally removing duplicates
pax.util.copyObj = function( obj, allowDupes )
Validates a credit card number; optionally validates card type
pax.validate.validators.creditcard = function( field, mask )
Load CSS via ajax, and runs the callback when done.
pax.load.css = function( url, callBack )
Get co-ordinates of the mouse cursor
pax.fx.cursorPos = function( event )
Sets the expected format for a date object.
pax.date.dateFormat = function( date, format )
Overrides default arguments in the given object, and adds any other attributes in the argument
pax.defAddArgs = function( obj, args )
Overrides default arguments in the given object only if they exist in the given argument
pax.defaultArgs = function( obj, args )
Private method: Each window is removed from the manager, once it is hidden or destroyed
pax.window.deRegister = function( id )
This will destroy the given box
pax.box.destroy = function( box )
This is a private method to clean up the DOM, and any widgets that are used here
pax.widget.tabset.destroy = function( tabset )
Validates domain name
pax.validate.validators.domain = function( field, mask )
Sets an element as draggable
pax.fx.drag = function( element, args )
Sets an element as a drop target for a draggable element
pax.fx.drop = function( element, args )
Validate an email address
pax.validate.validators.email = function( field, mask )
Fades in an element in optional time miliseconds
pax.fx.fadeIn = function( ele, time, callBack )
Fades out an element in optional time miliseconds
pax.fx.fadeOut = function( ele, time, callBack )
Validates that the value of one field is the same as another
pax.validate.validators.fieldEqual = function( field, mask )