Approved.

On 2006-12-13, at 15:58 EST, Philip Romanik wrote:

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


Reply via email to