So I believe I have finally gotten to the bottom of my initial html class woes.
The most important thing I discovered is the relationship between the
embed-compressed.js and html class. I couldn't find any documentation
outlining this relationship and there probably should be since it is absolutely
essential since that is where the Lz.iframemanager object is declared. What
this means is that you have to use the html-swf.jsp page, or similar wrapper,
in the lps/components/extensions/test folder otherwise embed-compressed.js file
isn't included and the Lz.iframemanager doesn't get initialized. For those who
don't know the Lz.iframemanager is the key object in javascript that the html
class in Laszlo controls, at least that's what I think I turned up.
In the end one of the bugs that I have found is that if you define the src on
construct, the html class doesn't like it and gives the a reference to
undefined property 'iframeid' error. If you don't set src on construct and
later go setAttribute('src', 'http://www.google.com') it will work just fine.
The other bug I found was getting the html class to show up in the right place
with Internet Explorer, Firefox worked. In the example it worked fine but it
was inside a window class and when you take it out of the window class, for
some reason it shows up below the canvas. I don't know if this is a simple
change to the embed-compress.js file or what.
My last problem was my concern that you couldn't use this with a SOLO Laszlo
application and I ended up getting that working just fine. I had to stare at
how the embed-compressed.js translates the url for the Lz.swfEmbed function but
after a couple of minutes I got it working.
I hope this helps someone.
David
-----Original Message-----
From: Raju Bitter [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 20, 2007 4:31 PM
To: David Buckler; Laszlo; Max Carlson
Subject: Re: [Laszlo-user] HTML Tag and SOLO
I tested with Wafflecone (4.0.5) on OS X with Firefox 2.0.0.7. The file I
used was
openlaszlo-4.0.5/lps/components/extensions/test/html.lzx
DHTML
Worked, OpenLaszlo.org loaded
SWF7
browser didn't freeze, but heavy processor load. Couldn't click the SWF8
radio button in the devconsole any more. Debugger showed a warning:
WARNING @../html.lzx#83: reference to undefined property 'iframeid'
onsrc http://openlaszlo.org/
lzx> Debug.inspect(«LzWarning| WARNING @../html.lzx#83: refe...»)
«LzWarning#0| WARNING @../html.lzx#83: reference to undefined property
'iframeid'» {
file: '../html.lzx'
line: 83
message: "reference to undefined property 'iframeid'"
}«LzWarning#0| WARNING @../html.lzx#83: reference to undefined property
'iframeid'»
SWF8
Worked, OpenLaszlo.org loaded, but due to the debugger window areas of the
OpenLaszlo.org page disappeared and re-appeared, somehow connect my mouse
movements.
I attached two screenshots for SWF7 and SWF8.
Raju
> Von: David Buckler <[EMAIL PROTECTED]>
> Datum: Thu, 20 Sep 2007 16:05:53 -0700
> An: Raju Bitter <[EMAIL PROTECTED]>, Laszlo
> <[email protected]>
> Unterhaltung: [Laszlo-user] HTML Tag and SOLO
> Betreff: RE: [Laszlo-user] HTML Tag and SOLO
>
> I have tried IE and Firefox.
>
> David
>
> -----Original Message-----
> From: Raju Bitter [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 20, 2007 3:59 PM
> To: David Buckler; Laszlo
> Subject: Re: [Laszlo-user] HTML Tag and SOLO
>
> David,
>
> Which browser was that? IE, Firefox, Safari?
>
> Best,
> Raju
>
>>
>>
>> Von: David Buckler <[EMAIL PROTECTED]>
>> Datum: Thu, 20 Sep 2007 15:38:25 -0700
>> An: Laszlo <[email protected]>
>> Unterhaltung: HTML Tag and SOLO
>> Betreff: [Laszlo-user] HTML Tag and SOLO
>>
>> Can anyone confirm or deny that the HTML tag works with a SOLO SWF Laszlo
>> application? For testing I just SOLO¹d the html example in the test
>> directory
>> and it seems to freeze after I hit the Load button.
>>
>> Thanks,
>> David
>
>
>