<cfcomponent output="false" hint="I define the application settings and application-level events."> <!--- Define application settings. ---> <cfset THIS.Name = "AJAXDemo" /> <cfset THIS.ApplicationTimeout = CreateTimeSpan( 0, 0, 10, 0 ) /> <!--- Define application events. ---> <cffunction name="OnApplicationStart" access="public" returntype="boolean" output="false" hint="I run when the application needs to be initialized."> <!--- Clear the application scope. ---> <cfset StructClear( APPLICATION ) /> <!--- Create the array to store contacts. We are going to keep this demo as simple as possible and so, the contacts will be just an array or structs. ---> <cfset APPLICATION.Contacts = [] /> <!--- Return true so the page will keep loading. ---> <cfreturn true /> </cffunction> </cfcomponent>