PDA

View Full Version : Change cursor Focus based on Customer's input



Sloger
4 May 2010, 10:30 AM
Hello,
I have a question:
I have to accomplish the following task:

The cursor focus should change form one field to another depending on customer's input.
When customer entered information into the field and pressed enter, the cursor should change to the different field with a particular field name (not necessary the next one).
How can I solve it?

Thank you.

4 May 2010, 10:40 AM
attach a key handler, to the fields, which does a focus() call.

Sloger
4 May 2010, 11:51 AM
Could you please be more specific.
I am new in Ext... I'm still learning it...

Shall I attach a key handler to the field from which the cursor should leave, or to the one where it should arrive?
Could you also give some code examples?

Thank you