javascript - set back the focus in GWT -
i have 4 text boxes , 1 listbox placed in flextable. make request server list of data populate listbox. when response comes back, populate listbox. stealing focus textbox giving input.
what want after populating listbox, return focus exact location before.
how in gwt or in java script?
if need generic solution, create class, implements blurhandler or focushandler interface. assign object of class text boxes. in onfocus/onblur method remember last focused widget. after populating of listbox call restorefocus() call setfocus(true) on remebered object.
Comments
Post a Comment