How to listen for data change event in a readonly doublebox?

asked 2009-10-08 12:48:57 +0800

baskaraninfo gravatar image baskaraninfo
526 2 2 9

updated 2009-10-08 12:50:05 +0800

I need to do some processing, whenever data in a readonly doublebox changes.

This is the zul code to test:

<?page title="onchange event demo" contentType="text/html;charset=UTF-8"?>
<window title="onchange event demo" border="normal">
	<grid width="100%" fixedLayout="true">
				First doublebox
				<doublebox id="one"
					onChanging='two.text = event.value' />
				Second doublebox
				<doublebox id="two" readonly="true" onChanging='three.text = two.text'/>
				Third doublebox
				<doublebox id="three" readonly="true" />

Whenever I type in first box, the value is properly updated in the second field. But, I can't capture the data change event in second field, to update in the third field.


delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-10-12 01:22:17 +0800

PeterKuo gravatar image PeterKuo
481 2

I think the onChanging event is triggered by user interaction with ui.
Therefore, if you change its value by zscript, no event will be triggered.

link publish delete flag offensive edit

answered 2009-10-12 05:40:58 +0800

baskaraninfo gravatar image baskaraninfo
526 2 2 9

Thank you, Peterkuo :)

Any other way(events) to know when the data changed in a disabled field by zscript/java functions?


link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2009-10-08 12:48:57 +0800

Seen: 179 times

Last updated: Oct 12 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More