syammohanmp/Jax
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
installation ( local server)
1 move jax folder to htdocs or your project folder
2 run the demo.html in browser( http://localhost/jax/demo.html)
Tutorial for beginnners
//////////////////////////////
jax('<folder>','<filename>,<function>'); //client side calling
eg: jax('test','test,alertCall');
this call goes to "/response/test/test.php"
in test.php must contain the class name as "ajaxText" and the function name as "alertCall"
eg:
<?php
class ajaxTest
{
function alertCall()
{
$response = new JAXResponse;
$response->addAlert('ya success');
return $response->sendResponse();
}
}
?>