FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
These are common functions for performing active HTTP requests. (Used in place of AJAX or ActiveX.) More...
Go to the source code of this file.
Functions | |
js_url () | |
Load a new url. More... | |
displayMessage ($Message, $keep=null) | |
Display a message. More... | |
ActiveHTTPscript ($RequestName, $IncludeScriptTags=1) | |
Given a function name, create the JavaScript needed for doing the request. More... | |
These are common functions for performing active HTTP requests. (Used in place of AJAX or ActiveX.)
Definition in file common-active.php.
ActiveHTTPscript | ( | $RequestName, | |
$IncludeScriptTags = 1 |
|||
) |
Given a function name, create the JavaScript needed for doing the request.
The JavaScript takes a URL and returns the data. The JavaScript is Asynchronous (no wait while the request goes on).
string | $RequestName | The JavaScript variable name to use. The javascript function is named "${RequestName}_Get" The javascript variable "${RequestName}.status" contains the reply's HTTP return code (200 means "OK") and "${RequestName}.readyState" is the handle's state (4 = "loaded"). |
boolean | $IncludeScriptTags | If will append the javascript tag. Default value is 1. empty on no, other on yes |
Definition at line 89 of file common-active.php.
displayMessage | ( | $Message, | |
$keep = null |
|||
) |
Display a message.
This is used to convey the results of button push like upload, submit, analyze, create, etc.
string | $Message | The message to display |
string | $keep | A safe text string NOT run through htmlentities |
Definition at line 43 of file common-active.php.
js_url | ( | ) |
Load a new url.
The new url is url+val e.g. js_url(this.value, "http:me?val=")
Definition at line 19 of file common-active.php.