se99jmk
03-29-2004, 06:22 AM
Once an app has been posted to mylaszlo.com, how can I actually use it in my site?
What are the commands required to put it into an xhtml page?
(please add any instructions to perhaps a faq on mylaszlo.com because I'm sure I'm not the only one curious about this...
antun
03-29-2004, 10:37 AM
The easiest way is like this:
1) View the app on myLaszlo.com. e.g. go to:
http://www.mylaszlo.com/lps-2.0/inertia/microslash/microslash.lzx
2) Look at the source for the HTML wrapper page that contains the Laszlo app.
Click View>Source in your browser.
3) Copy the embed code for the app from the HTML source. This can be a smidge confusing because there are more than one versions of the LPS running on myLaszlo.com, and there are variations in the embed code. In LPS 2.0 and above, there's actually two different snippets of code - one that goes in the <head> of your HTML page, and one that goes in the <body>, so for the example above:
<script src="/lps-2.0/includes/embed.js"></script>
... and ...
<script>
lzEmbed({url: 'microslash.lzx?lzt=swf',
bgcolor: '#ffffff',
width: '400', height: '400'});
</script>
4) Now modify the src and url so that they are absolute and point to mylaszlo.com:
<script src="http://www.mylaszlo.com/lps-2.0/includes/embed.js"></script>
... and ...
<script>
lzEmbed({url: 'http://www.mylaszlo.com/lps-2.0/inertia/microslash/microslash.lzx?lzt=swf',
bgcolor: '#ffffff',
width: '400', height: '400'});
</script>
5) Finally, paste into your new HTML page.
-Antun
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.