[Laszlo-user] Help: Embedding in DHTML in SOLO mode
Donald Brady
dbrady010 at me.com
Fri Sep 19 16:36:57 PDT 2008
Hi
I can't seem to get the right invocation to embed a open laszlo app in
SOLO mode (this is inside a rails app).
I copied the embed-compressed.js into the public/javascripts directory
and include that on the page.
I then have a simple Hello.lzx
<canvas>
<window x="10" y="10"
width="150" height="150" >
<button>Hello World!</button>
</window>
</canvas>
which I just placed in the public directory for now.
I try and include the app in my html:
<body>
<div id="lzappdhtml">
</div>
<script type="text/javascript">
alert('Yup, executed');
lz.embed.dhtml({url: 'Hello.lzx?lzt=html&lzr=js', bgcolor:
'#000000', width: '100%', height: '50%', id: 'lzappdhtml'});
</script>
</body>
but I get nothing. No errors in the firebug console either.
Can anybody point me how to get this working. I'm lookforward to
actual development but can't seem to get the basic setup working at all.
Thanks
Donald
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20080919/5dfd9391/attachment.html
More information about the Laszlo-user
mailing list