[Laszlo-dev] R5388 window onx handler triggers before global ids available
Qrowd Support
support at qrowd.com
Tue Jun 12 16:42:53 PDT 2007
In nightly build 5388, this code causes a DHTML exception in both IE7
and FF:
<canvas id="maincanvas" width="100%" height="100%" validate="false"
debug="false" proxied="false" bgcolor="0x00aaaa">
<debug x="650" y="200" width="800" height="400" fontsize="12"/>
<window id="win1" x="100" y="100" width="200" height="200">
<handler name="onx">
win2.setX(this.x+200);
win2.setY(this.y+200);
</handler>
</window>
<window id="win2" x="300" y="300" width="200" height="200"/>
</canvas>
The exception states that "win2" is not defined...meaning that the onx
handler is being invoked before win2 is instantiated and its global
identifier is set. Dunno if other handlers are affected, or possibly
other handlers on other views.
--
Robert Yeager
Founder, Qrowd
http://www.qrowd.com/blog
http://www.qrowd.com <http://www.qrowd.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20070612/95364b54/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qrowd_logo.gif
Type: image/gif
Size: 4976 bytes
Desc: not available
Url : http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20070612/95364b54/qrowd_logo.gif
More information about the Laszlo-dev
mailing list