API:webAlert
From MODx Wiki
API Function Definition:
webAlert
- Versions
- > 0.9.0 ?
- Return Values
- Success: null
- Fail: null
- Data Type
- void
- Object Hierarchy
- DocumentParser
void webAlert(string $msg[, $url]);
Displays a javascript alert alert message in the web browser
[edit]
Examples
[edit]
Related Functions
[edit]
Function Source
| File: | manager/includes/document.parser.class.inc.php |
|---|---|
| Line: | 1259 |
function webAlert($msg, $url= "") { $act= "__WebAlert();"; } else { } $html= "<script>$fnc window.setTimeout(\"alert('$msg');$act\",100);</script>"; if ($this->isFrontend($html)) $this->regClientScript($html); else { echo $html; } }
[edit]
