Matthias Reuter schrieb:
> Well,
>
> this is not what I wanted. As you said, changeValue is only fired when
> the textfield looses focus. What I want is an event that is fired when I
> hit the return key.
>
> And, yes, I have had a look at the demos before, and yes, I know how to
> do this with t
OK, so it's not standardized, it's just common behaviour of several
browsers. I give up and start listening to input events.
Sigh!
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and
First point: the html onchange event only fires if the textfield loses
the focus and its value has been modified. Please have a look at the
standards:
http://www.w3.org/TR/html401/interact/scripts.html#adef-onchange
This is exactly what the "changeValue" event listener does for you. So I
don't
Well,
this is not what I wanted. As you said, changeValue is only fired when
the textfield looses focus. What I want is an event that is fired when I
hit the return key.
And, yes, I have had a look at the demos before, and yes, I know how to
do this with the "input" event. I just wonder why qooxd
If you just want to track the change of the textfield value you have to
add the eventlistener for
"changeValue".
"changeValue" just fires if the textfield looses focus.
And as David said: please have a look at the demos e.g.:
http://demo.qooxdoo.org/sample/html/example/Fields_1.html
shows the
I thought there might be an easier way to do this. With html, I'd do
something like
The natural way to handle this with qooxdoo I thought, was
myTextField.addEventListener("change", doSomething, this);
Thus, I'd only need one function doSomething. Now I need
doSomethingWhenButt
Hi,
Clearly, you must attach a key event to the textfield, and when the enter
key is pressed, you must dispatch an execute event to the button.
You have many examples of keyboard processing in the qooxdoo source code.
The doc explains also this.
Matthias Reuter wrote:
>
> In my application,
In my application, I have a TextField and a Button. When either the
TextField is focused and enter/return is pressed or the Button is
clicked, I want some action to happen, so I added an eventlistener. What
exactly is the event for the TextField I have to listen to? It's not
"input", I don't want t