[Laszlo-dev] For Review: Change 20070717-maxcarlson-2 Summary: Fix ontext events for inputtext in swf and dhtml

Max Carlson max at openlaszlo.org
Tue Jul 17 16:04:35 PDT 2007


Change 20070717-maxcarlson-2 by maxcarlson at plastik on 2007-07-17  
15:56:40 PDT
     in /Users/maxcarlson/openlaszlo/legals-clean
     for http://svn.openlaszlo.org/openlaszlo/branches/legals

Summary: Fix ontext events for inputtext in swf and dhtml

New Features:

Bugs Fixed: LPP-4279 - constraints to inputtext.getText() do not fire  
when text input changes

Technical Reviewer: promanik
QA Reviewer: jcrowley
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details: swf/LzInputTextSprite.as - send events to __lzview instead  
of __lzview.owner.  Send new text for onchange event.

dhtml/LzInputTextSprite.js - Send onchange events when inputtext  
contents change.

LzInputText.lzs - ontext event uses value passed with onchange  
event.  Add getText() dependency for ontext event.

Tests: Typing in the input text causes the text below to change in  
swf and dhtml for this testcase:

<canvas debug="true" height="100%" width="100%">
<simplelayout/>
<inputtext id="intext" text="change me" />
<text text="${intext.getText()}" />
</canvas>



Files:
M      WEB-INF/lps/lfc/kernel/swf/LzInputTextSprite.as
M      WEB-INF/lps/lfc/kernel/dhtml/LzInputTextSprite.js
M      WEB-INF/lps/lfc/views/LzInputText.lzs

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20070717- 
maxcarlson-2.tar


More information about the Laszlo-dev mailing list