Wednesday, June 11, 2014

setting value in current field based on button press

Hello,
     I am hoping someone can point me in the right direction, or give me a better question to ask.  Let's say I have multiple input fields.  If my cursor is currently in field 1 and I click a button, I want a value put into field 1.  But if I am currently in field 2, I want the value put into field 2.  It is easy to always put the value in, say, field 1, but this is a little more complex, largely because the button handler may not know what field you are in.

    I posted this in the MGWT group as well ( see here ), but I think this is more a GWT question, thus posting it here as well.

Thanks.

Tony

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment