This has issues with visually disabled visitors. There's a great article on ALA[1] about this very thing, and the result is incredibly elegant in an all-singing, all-dancing browser and yet degrades gracefully.
Walter 1. http://www.alistapart.com/articles/makingcompactformsmoreaccessible/ On Oct 2, 2008, at 11:06 AM, Matt Foster wrote: > > I like to apply a background image to the input for such cases, that > way the input's value is untouched yet the UI can indicate the purpose > of the field. Also with an image your watermark can be a faded grey, > further indicating its transparent presence. > > On Oct 2, 9:40 am, Christophe Porteneuve <[EMAIL PROTECTED]> wrote: >> Key points to remember: >> >> • Add the watermark BY JS, as you'll be removing it by JS >> • Observe the focus event, not the click event >> • Only remove the contents in there IF it is the watermark >> (and make sure your watermark wouldn't make a valid input text >> for the field, too). >> • Make sure you remove the watermark pre-submit as well, otherwise >> you'll detect it as invalid (or even valid!) input, instead of >> lack of input. >> >> -- >> Christophe Porteneuve aka TDD >> [EMAIL PROTECTED] > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
