Guys -

Since we are discussing keyboards and input fields in general, here is a 
question:

Suppose you have an <input> field that does not have the focus.  The system 
keyboard is not visible.

Now you have some JavaScript that needs to give the focus to that <input> 
element so the user can make some changes.

How can the JavaScript force the input cursor (caret) to a particular location 
in the field?

I am sort-of trying to emulate the editing capability that iOS provides when 
the 
user drags the cursor around.  In my case, I just want to start the cursor in a 
logical location (instead of the end), and then hand control to the iOS editing.

A variant of this would be causing a word in the text field to be selected 
(with 
the user handles for moving the selection) when the field gets the focus and 
the 
keyboard pops up.  


Does anyone know how to achieve these things programmatically?

Thanks for any thoughts...

Brian


      

-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en.

Reply via email to