[Laszlo-dev] For Review: Change 20061211-Philip-6 Summary: Modify l-in-10 scripting->event application
Philip Romanik
promanik at laszlosystems.com
Wed Dec 13 12:58:19 PST 2006
Hi Tucker,
I modified your version slightly so it does not use layouts which have not
been introduced yet. Are you ok with this change?
Thanks!
Phil
<canvas>
<button onclick="vw.setWidth(200)">Expand Width</button>
<button x="120" onclick="vw.setWidth(100)">Reset</button>
<view id="vw" y="30" width="100" height="100" >
<!-- onwidth is sent anytime width is changed -->
<handler name="onwidth" >
this.setAttribute('bgcolor', (this.width > 100 ? red : blue));
</handler>
</view>
</canvas>
<!-- Copyright 2006 Laszlo Systems, Inc. All rights reserved. Use subject
to license terms. -->
>Well, I confess I was going from the description of the app rather
>than from having looked at it recently, and the description in this
>thread suggested merely that the color should not switch from one to
>the other during initialization. I still think having a test like
>that in the onwidth handler is not ideal, but I'm even more eager to
>move on to some other (any other!) topic, so please just do whatever
>Tucker thinks is best.
>
>jim
More information about the Laszlo-dev
mailing list