Class Index | File Index

Classes


Built-In Namespace _global_

Field Summary
Field Attributes Field Name and Description
 
Set or get attribute(s) from a node
 
$c
Create an Element
 
Set or get style(s) from a node
Method Summary
Method Attributes Method Name and Description
 
$(id)
Get element by id
 
$$(selectors, ref)
Query elements with CSS2 syntax
 
$t(str)
Create a text node
 
__init__(args)
This object fire an XMLHTTPRequest
 
getter(k)
 
setter(k, v)
 
sortOrder(a, b)
 
warn()
Field Detail
$attr
Set or get attribute(s) from a node
Defined in: globals.js.
See:
py.dom.attr

{Element} $c
Create an Element
Defined in: globals.js.
See:
py.dom.create

$style
Set or get style(s) from a node
Defined in: globals.js.
See:
py.dom.style
Method Detail
{Element|null} $(id)
Get element by id
Defined in: globals.js.
Parameters:
{String} id
The element id
Returns:
{Element|null} First element found, if exists or null

{Element[]} $$(selectors, ref)
Query elements with CSS2 syntax
Defined in: globals.js.
Parameters:
{String} selectors
CSS2 selectors
{String|String[]|Element|Element[]} ref Optional
reference(s) node(s) to search in
Returns:
{Element[]} Array of results
See:
py.dom.query

{Element} $t(str)
Create a text node
Defined in: globals.js.
Parameters:
{String} str
Text
Returns:
{Element} text node

__init__(args)
This object fire an XMLHTTPRequest
Defined in: xhr.js.
Parameters:
{Object} args
Arguments for the xhr
{String} args.url
Url
{String} args.method Optional
Method to use (GET, POST)
{Object} args.query Optional
Query objet to use (transformed to URL with GET method)
{Object} args.content Optional
Content to send (When POST)
{String} args.username Optional
User name when authentication is needed
{String} args.password Optional
Password when authentication is needed
{Array[]} args.headers Optional
Additionnal headers ([name, value])
{String} args.mime_type Optional
Mime type to use
{Boolean} args.prevent_cache Optional
set this to true to prevent browser caching
{Function} args.onLoad Optional
callback when data is available
{Function} args.onError Optional
callback when error happened

getter(k)

Defined in: element.js.
Parameters:
k

setter(k, v)

Defined in: element.js.
Parameters:
k
v

sortOrder(a, b)

Defined in: sizzle.js.
Parameters:
a
b

warn()

Defined in: core.js.

Documentation generated by JsDoc Toolkit 2.3.2 on Mon Jan 09 2012 11:46:54 GMT+0100 (CET)