PDA

View Full Version : Embedding a Laszlo App in an HTML Page


Anne
01-11-2003, 11:12 AM
Laszlo applications can be embedded within your own, larger HTML page.

You can write the application (with the canvas width and height attributes
set
appropriately), as you would normally. Also create the HTML page that will
contain the application, leaving the appropriate amount of space.

Next run the application in a browser window, and look at the source for the
wrapper page that the LPS generates. Copy and paste the entire <object>
tag into your new HTML page, into the space you created for it. Finally
you may have to change the address of the application. Have a look at the
pasted code:-

<param name="movie"
value=" http://localhost:8080/lps-b2/my-apps/myapp.lzx?lzt=swf"/ >
and
<embed src=" http://localhost:8080/lps-b2/my-apps/myapp.lzx?lzt=swf" ...

Notice that the lzx file is referencing localhost? This won't work for
deployment. If the HTML file is in the servlet container's web app, then you
can reference it locally i.e.

<param name="movie" value="./myapp.lzx?lzt=swf"/>
and
<embed src="./myapp.lzx?lzt=swf" ...

That's all there is to it!

Enjoy!

nkreddy
01-15-2007, 08:07 PM
Hi anne

can you tell how to see LPS generated wrapper page .

thanks in advance

Develance
02-13-2007, 11:57 AM
Hi Anne,
I'm embedding my Laszlo app in an HTML page, that works ok. Now, that HTML is included in a frameSet, which resides in another server (IIS). When I browse the HTML page directly, it works fine, but when I browse the frameSet page, I get the error: "Permission denied". After accepting the error twice, the HTML page is displayed correctly.
Any clue?

Thanks in advance

RoloDMonkey
02-13-2007, 12:12 PM
For security reasons both Javascript and Flash are restricted when tyring to access data on other servers. It is a miracle that your page loads at all.

ii_makubex_ii
02-13-2007, 11:11 PM
well, thats the case for iis, how about tomcat, we can use the server provided readily with jsp and servlets right? and besides, it is tomcat, so there will be no problem imbedding it in jsp?

Develance
02-21-2007, 06:36 PM
RoloDMonkey,
thanks for your reply. As you may have seen I'm quite new to web development. Anyway, my case is:
I have an ASP web app already on line, and I'd like to add new functionalities to it using Laszlo. So, under this scenario, how could I do to let the ASP app -IIS hosted- access the new developments under Laszlo?

thx in advance

RoloDMonkey
02-22-2007, 05:32 AM
Unfortunately, I am not much of a server person myself, and what I do know is all Apache. Hopefully someone else here can help you.

Anyone?

ylringwood
02-22-2007, 02:01 PM
The best way is to deploy your Laszlo to a solo swf file and just refer to it locally from your asp page.

If you would prefer to use the Laszlo server (ie. proxied mode), you can look at using mod_jk to take requests in IIS and pass them onto Tomcat.
See the following to set it up...
http://wiki.openlaszlo.org/LaszloWithIIS

Develance
03-08-2007, 11:36 AM
ylringwood : that link seems very useful, I'll try it right now.
Thank you very much.

Develance