PDA

View Full Version : Firefox Extension using OpenLaszlo


millejos
04-25-2007, 10:59 AM
Hi all,

This may not even be possible, but I've been trying to figure out how to use OpenLaszlo in a firefox extension. My idea was to build an interface in openlaszlo and insert the generated dhtml code into a firefox extension. (the extension would insert the interface into certain webpages)

So far I can't get past the Lz.dhtmlEmbedLFC() requirement for laszlo dhtml deployments. :confused: In the extension I'm injecting the required openlaszlo javascript files into the page.

<script src="http://somewhereelse/embed-compressed.js"></script>

doesn't work because some of the javascript runs security-limited commands like window.location. Because of this

Lz.dhtmlEmbedLFC("http://somewhereelse/LFCdhtml.js");

Will not work either. The code for dhtmlEmbedLFC is fairly obfuscated or I might be able to figure out what it is doing, inject LFCdhtml.js into the page using the firefox extension, and call whatever setup commands are being triggered.

Any ideas?