[Laszlo-dev] Are there any tricks I should know about lz.embed?
P T Withington
ptw at pobox.com
Fri Jun 5 12:19:16 PDT 2009
Yeah, I see that I can broadcast a call to all the swf apps in a page,
but it seems that there can only (currently) be one DHTML app in a page?
I will just write separate methods for swf and dhtml for now. I think
I am close to having it working.
On 2009-06-05, at 14:47EDT, Max Carlson wrote:
> I never implemented callMethod() for DHTML - since it's already
> running as native JS, you should be able to call the method
> directly... Perhaps we should add a callMethod() for DHTML - there
> is a setCanvasAttribute() implementation that works across both.
>
> P T Withington wrote:
>> I'd like to add a handler to the browser window focus event that
>> will call into (all) the laszlo apps on the page to a keyboard
>> kernel routine that I am calling allKeysUp. The idea is that when
>> a browser window (re) gains focus, we need to clear out any keys
>> that might appear to be "stuck" (this is for LPP-8056). AFAICT,
>> keystrokes that take focus away from the browser window, such as
>> Alt-tab, or a command-key sequence that opens another window, don't
>> see the key up event (because the browser window no longer has
>> focus).
>> It looks to me like I can use the existing broadcast mechanism and
>> the callMethod mechanism to implement this. I'm just wondering if
>> there are any 'gotchas' I need to watch for when fiddling with
>> embednew.js. Are there any tricks to getting the browser to load
>> the new version? Do I have to do anything special to deal with
>> DHTML vs. SWF apps?
>> Thanks for any guidance you can give!
>
> --
> Regards,
> Max Carlson
> OpenLaszlo.org
More information about the Laszlo-dev
mailing list