Engine Example

[ engine overview | whitefrost.com | Stephen W. Cote ]

This example demonstrates a basic declaration of an HTML DIV element as an engine. When the onengineload psuedo event is fired, the handle_engine_load function is invoked. The handle_engine_load function obtains a reference to the DIV, by way of the EngineService, and appends a text message. When the engine is started, any HTML within the DIV was erased.

If the EngineService successfully loaded the DIV as an engine, then the text message should read "Engine Loaded!".

Engine Not Loaded!