Namespace window.py-py
Defined in: core.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| <inner> |
Global PyJS namespace
|
| Field Attributes | Field Name and Description |
|---|---|
| <static> |
window.py-py.body
alias of body
|
| <static> |
window.py-py.doc
alias of document
|
| Method Attributes | Method Name and Description |
|---|---|
| <private> <static> |
window.py-py._importModule(name)
Import module from dotted name
|
| <static> |
window.py-py.addOnLoad(f)
Add a function to be fired when dom is ready
|
| <static> |
window.py-py.getModuleUrl(name)
Get the URL of a Module name
|
| <static> |
window.py-py.globalEval(text)
Eval anything in the global scope
|
| <static> |
window.py-py.importModule(the)
Import module from a dotted name
|
| <static> |
window.py-py.isXhrOk(xhr)
Verify if an XHR status is OK
|
| <static> |
window.py-py.loadJs(url)
Load JavaScript from url
|
| <static> |
window.py-py.xhrObj()
Cross browser XMLHttpRequest
|
Field Detail
<static>
window.py-py.body
alias of body
<static>
window.py-py.doc
alias of document
Method Detail
<private> <static>
window.py-py._importModule(name)
Import module from dotted name
- Parameters:
- {String} name
- the module name
<static>
window.py-py.addOnLoad(f)
Add a function to be fired when dom is ready
- Parameters:
- {Function} f
- function to fire
<static>
{String}
window.py-py.getModuleUrl(name)
Get the URL of a Module name
- Parameters:
- {String} name
- dotted module name
- Returns:
- {String} Url of the module
<static>
window.py-py.globalEval(text)
Eval anything in the global scope
- Parameters:
- {String} text
- Source code to eval
<static>
window.py-py.importModule(the)
Import module from a dotted name
- Parameters:
- {String} the
- module name
<static>
{Boolean}
window.py-py.isXhrOk(xhr)
Verify if an XHR status is OK
- Parameters:
- xhr
- Returns:
- {Boolean} true if XHR has no error
<static>
{String}
window.py-py.loadJs(url)
Load JavaScript from url
- Parameters:
- {String} url
- url to load
- Returns:
- {String} source code
<static>
{XMLHttpRequest}
window.py-py.xhrObj()
Cross browser XMLHttpRequest
- Returns:
- {XMLHttpRequest} XmlHTTPRequest Object