Re: WOTextField question
Chuck Hill <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Jeff, On Apr 4, 2008, at 12:05 PM, Jeff Dunnett wrote: > Hello, > > I have a WOTextField which will have a starting value. For example > a Name field with the value "Jeff". I was wondering if there is > anyway that I can make it so that if the cursor is before the J all > the user has to do is type and the characters will be overwritten. > I have looked online at various reference both for WebObjects and > HTML but haven't found an answer to the problem. JavaScript is what you want to look at. Probably the onFocus event. http://www.java2s.com/Code/JavaScript/Form-Control/SelectingTextUponFocus.htm Chuck -- Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects