[Laszlo-user] DHTML

Benjamin Shine ben at laszlosystems.com
Thu Dec 13 14:41:07 PST 2007


The DHTML runtime is pretty reliable, yes -- but video won't work in  
DHTML, because video uses Flash APIs, which just aren't available in  
DHTML. The way to support this is to use the <html> tag to embed  
arbitrary html, including a video player, but I don't think we've  
figured out exactly how to make inter-application communication work  
in that setup.

DHTML support is better in the nightly builds of trunk than in 4.0.7.  
You're at the evaluation stage, so I recommend you use a recent  
nightly of trunk:
http://download.openlaszlo.org/nightly/trunk/7530

For working with SOLO, I recommend downloading the zip file, then  
unzipping it onto your server. The lps directory is definitely  
necessary -- it contains all the laszlo framework code. Without the  
lps directory, you've just got your source compiled to object code,  
but no support libraries to link to (if I can use an old-school  
compiler analogy).

You are figuring stuff out well, and making good progress. You are  
also asking good questions. Keep going!

-ben

On Dec 13, 2007, at 7:06 AM, santiago.aranda at telvent.abengoa.com wrote:

>
> My LPS is 4.0.7. I think it's the most new.
>
> There are two errors with the same message "Lz is not defined"
>
>          Lz.dhtmlEmbedLFC('lps/includes/lfc/LFCdhtml.js');
>          Lz.dhtmlEmbed({url: 'copy-of-hello.lzx.js', bgcolor:  
> '#eaeaea', width: '200', height: '200', id: 'lzapp'});
>
> I have copied and pasted the wrapper in a new file and it doesn't  
> work.
>
> But if I use "Click here to download zip-archived file  
> solo_deploy_jue_dic_13_2007_15_58_08.zip." it is generated all  
> necessary content. For example a directory is called lps . I guess  
> this is absolutely necessary.
>
> Other question. Is it  generated DHTML  reliable?  I have proved to  
> compile a normal videoview (OpenLaszlo) and it doesn't work. But  
> for example, it works with a simple tag like "text"
>
>
>
> "Henry Minsky" <henry.minsky at gmail.com>
> "Henry Minsky"
> 12/12/2007 18:18
> Para:	santiago.aranda at telvent.abengoa.com
> cc:	Laszlo-user at openlaszlo.org
> Asunto:	Re: [Laszlo-user] DHTML
>
>
>
>
> What version of the LPS are you using?
>
> The SOLO dhtml wrapper should work. If not, we need to figure out
> where the error is.
>
> If you are using Firefox, please install Firebug, and send a copy of
> whatever errors are printed in the debug console.
>
>
>
> On Dec 12, 2007 11:14 AM,  <santiago.aranda at telvent.abengoa.com>  
> wrote:
> >
> > I have got a very simple sample. It is developed using  
> Openlaszlo. If I use
> > button"SOLO" with swf7 or swf8 checked,  two files will be  
> generated i.e.
> > sample.lzx.lzr=swf7.swf and  sample.lzx.lzr=swf8.swf. It is Ok.
> >
> > But if I use button"SOLO" with DHTML checked, a js file is  
> generated. How
> > can I encapsulate this js file in a html file?. I need to show  
> the final
> > result in a normal browser i.e Explorer or mozilla.
> >
> > A wrapper html is given automatically but it doesn't work.  
> Browser shows
> > fails like "Lz is not defined". So I need a good html to  
> encapsulate my js
> > file. Can you give me a simple sample html?
>
>
>
> -- 
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20071213/46915539/attachment.html


More information about the Laszlo-user mailing list