| Constructor Attributes | Constructor Name and Description |
|---|---|
|
fjajax()
Functional Javascript AJAX caller.
|
|
|
fjajaxh()
Functional Javascript AJAX handler.
|
| Field Attributes | Field Name and Description |
|---|---|
| const |
fjajax::JSON
|
| const |
fjajax::JXML
|
| const |
fjajax::JPHP
|
| Method Attributes | Method Name and Description |
|---|---|
| public |
fjajax::__construct()
fjajax constructor.
|
| public |
fjajax::addCall($f)
Add a new javascript function call.
|
| public |
fjajax::initCalls($print = false)
Constructs the Javascript content that needs to be put in the HTML page.
|
| public |
fjajax::initScript($print = false)
Creates the Javascript includers for the js files.
|
| public |
fjajax::setJsxRoot($string)
Sets the URL root for the js files.
|
| public |
fjajax::setSerializeMethod($string)
Defines the used serialize method.
|
| public |
fjajax::setURL($string)
Defines the URL which will handle all AJAX function calls.
|
Class Detail
fjajax()
Class used to create AJAX function calls.
<?php include PATH_TO . '/fjajax/php/fjajax.php'; $fjajax = new fjajax(); ?>
Field Detail
const fjajax::JSON
Constant specifying the use of JSON serializer.
const fjajax::JXML
(NOT AVAILABLE) Constant specifying the use of jsx’s own XML serializer.
const fjajax::JPHP
(NOT AVAILABLE) Constant specifying the user of php serialize function for serializing data.
Method Detail
public fjajaxh::__construct()
fjajaxh constructor. See fjajax().
public fjajax::addCall($f)
Add a new javascript function call.
<?php
$fjajax->addCall('dummy_function');
?>
- Parameters:
- string f
- Specifies the name of the function do add.
public fjajax::initCalls($print = false)
Specifies the name of the function do add.
- Parameters:
- boolean print
- If $print is set to true, it auto prints the information.
public fjajax::initScript($print = false)
Creates the Javascript includers for the js files.
- Parameters:
- boolean print
- If $print is set to true, it auto prints the information.
public fjajax::setJsxRoot($string)
Sets the URL root for the js files.
- Parameters:
- string string
- String specifying the root URL for the jsX script.
public fjajax::setSerializeMethod($string)
Defines the used serialize method.
<?php $fjajax->setSerializeMethod(fjajax::JSON); ?>
- Parameters:
- string string
- See fjajax::JSON, fjajax::JXML, fjajax::JPHP,
public fjajax::setURL($string)
Defines the URL which will handle all AJAX function calls.
<?php
$fjajax->setUrl('http://path/to/request');
?>
- Parameters:
- string string
- String defining the URL called by AJAX.




English