You are here: Pasting multiple lines into a single line text box « HTML « IT news, forums, messages
Pasting multiple lines into a single line text box

Posted by Adam Plocher on 06/13/07 17:07

Hello, I have an <input type="text" /> textbox that when the Enter key
is pressed, it's text gets processed by a javascript and it clears the
contents of the textbox. I was wondering if it's possible to have it
handle pasting multiple-lines of text into it, so that on every line
break it get's processed by javascript then clears the text field and
handles the next line.

I know IE has onpaste and onbeforepaste events, but I still can't see
how to do what I want with those. Any suggestions? I might be able
to use a textarea and have it mimic the behavior of a single line text
box...

Thanks
-Adam

 

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

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