Page History
The following <Script> <> tag must be included in the body of the HTML
...
< src="/[path\]/[runtime\]/lansa.js"></
...
>
[path] will be the location of the LANSA runtime folder.
...
This is a simplest way to do this. You must specify a DIV tag with an ID:
<div id="LANSAFrame" style="top:0px;left:10%;width:80%;height:800px;position:absolute"></div>
Additional script can be added
Once the Script tag and DIV are in place, additional script can be added to initialize the LANSA runtime and to execute the reusable part:
var myPart = null;
...
// Initialize the LANSA runtime
LANSA.init({sys:"%{lansa_webalias}%",part:"%{lansa_partition}%",lang:{ def:"ENG",code: { "ENG":"en-US", "FRA":"fr-FR", "JPN":"ja-JP" } },splash:{ limg:"spin",txt:"Loading..." } } );
...
// Create the reusable part, it will fill up the nominated DIV LANSA.showPart( "[partname]", "[container]", function( newPart )
{
// This callback gets called when the LANSA runtime is loaded and the part is created, you can now interact with the part - or just remember it and interact with it later
...
myPart = newPart;
} );
[partname] will be the identifier of the reusable part
...