OLBoris
10-31-2007, 06:29 AM
I am developing a Laszlo application that integrates into our existing CMS. The CMS includes a javascript based add deployment system. My HTML wrapper includes the javascript with the OAS_AD function. When I run the following code The ad appears but in the upper left hand corner "over" the other views. I need the ad to show up "in" the 'ad300' view.
<canvas width="740" height="300" >
<simplelayout axis="x" spacing="10" />
<view name="leftcol">
<simplelayout axis="y" spacing="10" />
<view width="430" height="250" bgcolor="#F8E496">
<text> Left Side here </text>
</view>
</view>
<view name="rightcol">
<view name="ad300" width="300" height="250" bgcolor="#EEEEEE">
<handler name="oninit">
var command = 'OAS_AD("300x250_1")';
LzBrowser.callJS(command);
</handler>
</view>
</view>
</canvas>
I have also tried several variations of LzBrowser.loadjs with no success. I'm sure I just need a syntax lesson here.
<canvas width="740" height="300" >
<simplelayout axis="x" spacing="10" />
<view name="leftcol">
<simplelayout axis="y" spacing="10" />
<view width="430" height="250" bgcolor="#F8E496">
<text> Left Side here </text>
</view>
</view>
<view name="rightcol">
<view name="ad300" width="300" height="250" bgcolor="#EEEEEE">
<handler name="oninit">
var command = 'OAS_AD("300x250_1")';
LzBrowser.callJS(command);
</handler>
</view>
</view>
</canvas>
I have also tried several variations of LzBrowser.loadjs with no success. I'm sure I just need a syntax lesson here.