| $#! | |
| $, pax | |
| _caps | |
| _def | |
| _indent | |
| _round | |
| _trim | |
| _trunc | |
| _undent | |
| _wrap | |
| A | |
| add, pax. | |
| addClassName, pax.util | |
| ajaxValidate, pax. | |
| alpha, pax. | |
| alphaNumeric, pax. | |
| append, pax.box | |
| arrayHasValue, pax.util | |
| B | |
| bind, pax. | |
| bindKeyDown, pax. | |
| bindKeyPress, pax. | |
| bindKeyUp, pax. | |
| bindOne, pax. | |
| C | |
| cancel, pax | |
| cancelAll, pax.fx | |
| chain, pax.fx | |
| checkboxDependents | |
| classNames, bindElements | |
| colourFade, pax.fx | |
| copyObj, pax.util | |
| creditcard, pax. | |
| css, pax.load | |
| cursorPos, pax.fx | |
| D | |
| dateFormat, pax.date | |
| defAddArgs, pax | |
| defaultArgs, pax | |
| deRegister, pax. | |
| destroy | |
| domain, pax. | |
| drag, pax.fx | |
| drop, pax.fx | |
| E | |
| email, pax. | |
| excludeSelect, pax. | |
| F | |
| fadeIn, pax.fx | |
| fadeOut, pax.fx | |
| fieldEqual, pax. | |
| G | |
| get | |
| getAgent, pax.util | |
| getElementsByClassName, pax.util | |
| getId, pax | |
| getNextId, pax | |
| getPosition, pax.util | |
| getSelectedOptions | |
| getStyle, pax.util | |
| getTarget, pax.util | |
| getType, pax.util | |
| getWindowDimensions, pax.util | |
| guess, pax.date |
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 )
Send a GET request via the XMLHttpRequest object.
pax.get = function( url, callBack, callDesc, spinnerBox, spinnerClass )
Retreives an object from the cache, returns null if obj is not cached
pax.cache.get = function( key )
Private method: Returns a window from the window manager
pax.window.get = function( id )
Private method, detects browser string, you should detect browser capability instead, handy in some instances.
pax.util.getAgent = function()
Return all elements by a given tag name and class name.
pax.util.getElementsByClassName = function( element, elementType, className )
Returns the current unique ID
pax.getId = function()
Increments the unique ID counter, and returns the ID
pax.getNextId = function()
Locates position and dimensions of an object
pax.util.getPosition = function( element, excludeParent )
Gets the selected option(s) from a select box
pax.form.getSelectedOptions = function( selectBox )
Returns a given property from an element.
pax.util.getStyle = function( element, property )
Returns the target of an event
pax.util.getTarget = function( e )
Returns the type of object that matches the element passed in.
pax.util.getType = function( obj )
Returns a dictionary with width, height of the window.
pax.util.getWindowDimensions = function( tWindow )
Populates the date obj based on the string in the input
pax.date.guess = function( input, extraDateFormats )