Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / November 2007

Tip: Looking for answers? Try searching our database.

Text prefilled but cleared as soon as somebody enters it.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mufasa - 30 Nov 2007 14:54 GMT
I want to have a box filled in with text that when the person clicks in to
it for the first time it will clear. I'd also like to have it ( like to
google search box ) so that it's greyed text when they first see it but as
soon as they go in to it it's normal text.

I assume that what I need to do is check for when the object get's focus and
change it there and put the object in an Ajax Update Panel so it happens
automatically.

Is this correct?

TIA - Jeff.
bruce barker (sqlwork.com) - 30 Nov 2007 17:44 GMT
not sure what the update panel is for. this is pretty simple javascript. if
you are using ajax, then look at the watermark control in the optional
control toolkit.

-- bruce (sqlwork.com)

> I want to have a box filled in with text that when the person clicks in to
> it for the first time it will clear. I'd also like to have it ( like to
[quoted text clipped - 8 lines]
>
> TIA - Jeff.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.