File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes over write mode in html Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "over write mode in html" Watch "over write mode in html" New topic
Author

over write mode in html

venki janapati
Greenhorn

Joined: Dec 26, 2002
Posts: 19
Hi,
i would like make text fields in over write mode. when user type the text it should replace existing characters in the text field. You r help is highly appreciated. is there a way in javascript.

Thanks in advanced
venkat
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
There is no simple way to do it since all browsers handle the current cursor location in the string different. Some support it whiles others do not.
I do not have time to try it, but you need to play with strings and this
http://www.faqts.com/knowledge_base/view.phtml/aid/1052/fid/130
Eric
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 411
Is it fine with you to do it on ie only?
venki janapati
Greenhorn

Joined: Dec 26, 2002
Posts: 19
yes,its absolutely fine. iam looking only in IE
venki janapati
Greenhorn

Joined: Dec 26, 2002
Posts: 19
yes,its absolutely fine. iam looking only in IE
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 411
Than you might wanna look at this article:
Leveraging Scriptable Editing in Your Web Pages
also look at:
CONTENTEDITABLE Attribute | contentEditable Property
venki janapati
Greenhorn

Joined: Dec 26, 2002
Posts: 19
I tried earlier ones. Those seems to pretty complex to implement. Do you have any thing simpler. Users are complaining that they need to press insert key again once they refresh the page
 
 
subject: over write mode in html
 
Threads others viewed
How to Write Text over an existing image
To all cricket lovers out there
Help creating a .txt file using an applet
JUnit & JDBC problem
Jetspeed-2 and Cutom mode
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture