FUNCTION:AJAXONLOAD

last edited byusericonmarkdrew on 05-Oct-2010

New in Railo 3.2

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>

 
Download in other Formats:
markup Markup | pdf PDF | html HTML | word Word