|
I’m not sure what u mean exactly…not
browser related though. This is within an application. a) User selects item in a tree control b) Based on selection a datagrid is populated c) The first item in the grid is auto selected d) This in turn toggles a viewstack to show the appropriate container.
(viewhelper) e) Viewhelper then calls an initialization function on the container
which firsts sets the value of a textinput field, then sets the focus f)
Cursor
is placed in the field but text is not selected g) If user switches to another item in the grid (causing the viewstack
to change) and comes back a second time, the text is now selected Cheers, Stace From: Stacy, is this the browser/Player focus
issue? Or is the problem control not on the first view? From: Tried that too, no dice. :( From: maybe add
creationComplete = "this.setFocus()" on the field itself From: p.s. only occurs when displayed for the
first time. (textinput sits in a viewstack). Tried changing the creationPolicy
to all, no effect. When the viewstack is flipped back to show the field again
later, the setFocus works as intended. Ack! From: Minor annoyance here but I can’t
seem to get the text of a textinput field to highlight properly. It’s as
if the setFocus occurs before the textinput value is set so the cursor is just
placed at index 0 of the field. Also tried explicitly selection the text in the
field using setSelection but alas, no effect. Myfield.text = “blah”; Myfield.setFocus(); (or Selection.setFocus(Myfield)) Appreciate any insight, Gracias, Stace
SPONSORED
LINKS
-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com ---- LSpots keywords ?> ---- HM ADS ?> YAHOO! GROUPS LINKS
------------------------------------------------------------------ This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus. |
- RE: [flexcoders] onFocus, setSelection not highlighting... Tracy Spratt
- RE: [flexcoders] onFocus, setSelection not highlig... Philippe Maegerman
- RE: [flexcoders] onFocus, setSelection not highlig... Philippe Maegerman
- RE: [flexcoders] onFocus, setSelection not highlig... Stacy Young
- RE: [flexcoders] onFocus, setSelection not highlig... Stacy Young
- RE: [flexcoders] onFocus, setSelection not highlig... Robert Brueckmann
- RE: [flexcoders] onFocus, setSelection not highlig... Stacy Young
- RE: [flexcoders] onFocus, setSelection not highlig... Robert Brueckmann
- RE: [flexcoders] onFocus, setSelection not highlig... Stacy Young

