| 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(Component $obj, string $outid = "outid", boolean $innerHTML = false)
Send Component object inside a HTML Tag
Send Component object inside a HTML Tag
Parameters
| $outid |
HTML Tag id where to display html of Component
|
| $innerHTML |
Optional
Default = false:- Not send Inner Components
true:- mean send all Inner Components also
|
|
#
|
public
|
addJSONCompChildren(Component $obj, string $outid = "outid")
Send only Inner Components of Object
Send only Inner Components of Object
|
#
|
public
|
getJSONComp(Component $obj): string
Get Component HTML Output
Get Component HTML Output
|
#
|
public
|
addJSONFront(FrontFile $frontobj, string $outid = "outid")
Send FrontFile Object to HTML Tag id
Send FrontFile Object to HTML Tag id
Parameters
| $outid |
HTML Tag ID where to display HTML of temfile object
|
|
#
|
public
|
addJSONFrontFull(FrontFile $frontobj, string $outid = "outid")
Send FrontFile Object with all file links to HTML Tag id
Send FrontFile 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 Gate run continiously then you can send…
Advance Function
Send all response of Server as JSON to browser.
if Gate run continiously then you can send intermediate data
|
#
|
public
|
callServer($jsfun, $url, $imgid = "''")
|
#
|
public
|
postServer($url, $data = "{}", $imgid = "''", $cache = false, $dataType = "'json'")
|
#
|