Name

Lz — JavaScript library for embedding Laszlo applications

Synopsis

JavaScript: Lz
Type: Object
Access: public
Topic: Browser.Integration
Declared in: lps/includes/source/embednew.js

Description

In the <html><head> of an HTML document that embeds a Flash Laszlo application, add this line:

<script src="/embed-compressed.js" language="JavaScript" type="text/javascript"/>

At the location within the <html><body> where the application is to be embeded, add this line:

   <script language="JavaScript" type="text/javascript">
     lz.swfEmbed({url: '?lzt=swf', bgcolor: '#000000', width: '', height: ''});
   </script>

where the url matches the URI that the application is served from, and the other properties match the attributes of the application's canvas.

DHTML applications must in addition make the following call in the page head:

   <script language="JavaScript" type="text/javascript">
     Lz.dhtmlEmbedLFC('/lps/includes/lfc/LFCdhtml.js');
   <script>
And of course DHTML embedding uses the lz.dhtmlEmbed call instead of lz.swfEmbed.

Details

Static Methods (9)

_callMethodSWF()
static public function _callMethodSWF(js);
Calls a method with optional arguments in an embedded SWF application and returns the result.
dhtmlEmbed()
static public function dhtmlEmbed(properties, allowUnsupported);
Write <script/> tags into the document at the location where this function is called to load the LZX Application.
dhtmlEmbedLFC()
static public function dhtmlEmbedLFC(url, allowUnsupported);
Write <script/> tags into the document at the location where this function is called to load the LFC. Must be called before dhtmlEmbed().
__dhtmlLoadLibrary()
static public function __dhtmlLoadLibrary(url);
_getCanvasAttributeDHTML()
static public function _getCanvasAttributeDHTML(name);
Reads an attribute from the canvas of an embedded DHTML application and returns its value
_getCanvasAttributeSWF()
static public function _getCanvasAttributeSWF(name);
Reads an attribute from the canvas of an embedded SWF application and returns its value
_setCanvasAttributeDHTML()
static public function _setCanvasAttributeDHTML(name, value, hist);
Sets an attribute on the canvas of an embedded DHTML application
_setCanvasAttributeSWF()
static public function _setCanvasAttributeSWF(name, value, hist);
Sets an attribute on the canvas of an embedded SWF application
swfEmbed()
static public function swfEmbed(properties, minimumVersion);
Writes the necessary HTML to embed a swf file in the document where the function is called.

JavaScript Synopsis

public var Lz = { ... };