You are here: Advanced HTML DOM Issue « HTML « IT news, forums, messages
Advanced HTML DOM Issue

Posted by Whit on 11/27/14 11:57

I am trying to write a script which automatically capitalizes all the
words in a text field as the user types. (Called on onkeyup) I am
having 2 problems:

1. When I replace the users text in the field with the formatted text,
it forgets where the cursor was, and places it at the end.

2. Also at this point, if the user has exhausted the available area and
the text has started scrolling to the left, the replacing action will
cause it to forget it's position of the scroll, moving it so that the
begining of the text is flush with left side of the field.

Can the cursor be managed? Can viewable area of a text field with text
overflow be managed?

I have searched and searched for the solution to this problem.

Could I perhaps build my own custom text field? Is there one out there
already built that I could use? Thanks in advance everybody!

-- whit nelson

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация