FUNCTION:AJAXONLOAD
last edited by
markdrew
on 05-Oct-2010
Contents |
AjaxOnLoad
Description
The AjaxOnLoad function allows you to programatically call a JavaScript function from Railo.
Category
Ajax
Implemented
Railo 3.2
Usage Syntax
AjaxOnLoad(functionName)
Return Information
| Return Type | Return Description |
| void |
Arguments
| Name | Type | Required | Position | Default | Description |
| functionName | String | Yes | 1 |
Example Usage
The example below shows how you can call the "sayHello" function when the document has loaded from Railo
<!DOCTYPE html> <html lang="en"> <head> <title>Ajax Demos</title> <script type="text/javascript" charset="utf-8"> function sayHello(){ alert("Hello World!"); } </script> </head> <body> <cfset ajaxonload('sayHello')> </body> </html>
SideBar
User Login