CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Pre-written text in a text box as a hint

Print topic Send  topic

Author Message
Farooq Ahmed
Posted: 09/30/2005, 11:12 AM

I want to show pre-written text in a text box so that user can understand that what should he write in text box. When user wants to write the input text, this hint should disapear. The best example can be seen at the left side of following link as "Your Email". :

http://www.yessoftware.com/purchase/product.php?product_id=1

How will I perfom this in CCS, ASP & Access.
Benjamin Krajmalnik
Posted: 09/30/2005, 1:17 PM

In the BeforeShow event for the control:

If EventCaller.Value = "" then
EventCaller.Value = "your hint"
end if


Note: By using EventCaller in the actual object's event, if you happen to
change the name of the object you do not have to alter any code.

DonB
Posted: 09/30/2005, 5:40 PM

Easy enough - just take a look at the page source in your browser. You will
see how it's done, with just a line of javascript.

--
DonB

http://www.gotodon.com/ccbth


<FarooqAhmed@forum.codecharge (Farooq Ahmed)> wrote in message
news:6433d801169d60@news.codecharge.com...
> I want to show pre-written text in a text box so that user can understand
that
> what should he write in text box. When user wants to write the input text,
this
> hint should disapear. The best example can be seen at the left side of
following
> link as "Your Email". :
>
> http://www.yessoftware.com/purchase/product.php?product_id=1
>
> How will I perfom this in CCS, ASP & Access.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

Farooq Ahmed
Posted: 10/01/2005, 6:50 AM

Text is written at specified text box but when I click on the text box, text does not finish from there. It should wipe out on single click. How will we do that? Thanks for your reply.

DonB ! sorry, but which page's source are you talking about?

Regards
mrachow


Posts: 509
Posted: 10/01/2005, 12:23 PM

Don was talking about the page you gave as an example for the functionality you are searching for, e.g. you should have a look at the source of that very page.
_________________
Best regards,
Michael
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.