Methods |
public
|
init()
Advance function
|
#
|
public
|
getAJAX()
Enable ajax JS library.
|
#
|
public
|
getJSON(string $post_data_key): json
Read json data from browser post key
Read json data from browser post key
|
#
|
public
|
startJSONOutput()
Advance function to enable JSON response
Advance function to enable JSON response
|
#
|
public
|
sendData($data, $contenttype = "")
Advance function
|
#
|
public
|
addJSONHTMLBlock(string $tagid, string $dataar)
Send string to browser and display in html tag with an $tagid
Send string to browser and display in html tag with an $tagid
Parameters
$tagid |
HTML Tag ID where to set html
|
|
#
|
public
|
addJSONBlock(string $sact, type $evtp, mixed $dataar)
Advance Function
Send and Data type to browser
Advance Function
Send and Data type to browser
Parameters
$sact |
it may be and process order wise:- jss,js1,html,js,jsp,jsf
|
$evtp |
It is a key of value like in $sact=html then it is a tag id.
If $sact=jsf then it will be JS function name
|
$dataar |
data need to send browser
|
|
#
|
public
|
callJsFunction(string $jsfun, mixed $dataa)
Call JS Function from Server
Call JS Function from Server
|
#
|
public
|
addJSONComp(Control $obj, string $outid = "outid", boolean $innerHTML = false)
Send Control object inside a HTML Tag
Send Control object inside a HTML Tag
Parameters
$outid |
HTML Tag id where to display html of Control
|
$innerHTML |
Optional
Default = false:- Not send Inner Controls
true:- mean send all Inner Controls also
|
|
#
|
public
|
addJSONCompChildren(Control $obj, string $outid = "outid")
Send only Inner Controls of Object
Send only Inner Controls of Object
|
#
|
public
|
getJSONComp(Control $obj): string
Get Control HTML Output
|
#
|
public
|
addJSONTemp(TempFile $tempobj, string $outid = "outid")
Send TempFile Object to HTML Tag id
Send TempFile Object to HTML Tag id
Parameters
$outid |
HTML Tag ID where to display HTML of temfile object
|
|
#
|
public
|
addJSONTempFull(TempFile $tempobj, string $outid = "outid")
Send TempFile Object with all file links to HTML Tag id
Send TempFile Object with all file links to HTML Tag id
Parameters
$outid |
HTML Tag ID where to display HTML of temfile object
|
|
#
|
public
|
addJSONIpcBlock(string $aname, array $structure)
Send Data as inter process communication
Send Data as inter process communication
|
#
|
public
|
setBlockType(string $type = "jsonweb")
Advance Function *
Parameters
$type |
default is jsonweb. You can create your own custom type also.
|
|
#
|
public
|
addJSONJSBlock(string $jsdata = "", string $type = "jsp")
Send JS Code to browser
Parameters
$jsdata |
JS code as string, send to browser.
|
$type |
value may be order wise :- jss, jsfl, js, jsp or jsf
jss has highest priority
|
|
#
|
public
|
addJSONReturnBlock(array|string $data)
Send data to getAJAX callback function.
getAJAX('index-test.html',{},true,function(ret){
console.log('server return…
Send data to getAJAX callback function.
getAJAX('index-test.html',{},true,function(ret){
console.log('server return data' + ret);
});
|
#
|
public
|
getResponse(): string
Advance Function
Return all response of Server as JSON
Advance Function
Return all response of Server as JSON
|
#
|
public
|
flush()
Advance Function
Send all response of Server as JSON to browser.
if application run continiously then you can send…
Advance Function
Send all response of Server as JSON to browser.
if application run continiously then you can send intermediate data
|
#
|
public
|
callServer($jsfun, $url, $imgid = "''")
|
#
|
public
|
postServer($url, $data = "{}", $imgid = "''", $cache = false, $dataType = "'json'")
|
#
|