473,397 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Multiple Text Box After Update Change Font

2
Hi,
I have a form with multiple text boxes.
In the text boxes i have grey font with default values to show an example for users.

Is there a way to code the form to automatically change a textbox to black font once the user updates the textboxes without coding each textbox_afterupdate event.

Conditional formatting doesn't help me.

Any help would be much appreciated
Jun 18 '07 #1
2 2820
missinglinq
3,532 Expert 2GB
I think you're going to have to do this for each control, one way or the other. I have to say it sounds like a situation that's just begging for problems! If you have default values in each control "as examples" those values are still in the controls, which means you really can't easily validate any data. Instead of the usual validation strategy checking for null text boxes, you'd have to check each box to see if the data was different from the text that you'd entered as "examples." You also don't have the ability to make any field required, since they all have data in them! I would suggest that you devise another method of giving your users examples of correct input.
Jun 19 '07 #2
xntric
2
I think you're going to have to do this for each control, one way or the other. I have to say it sounds like a situation that's just begging for problems! If you have default values in each control "as examples" those values are still in the controls, which means you really can't easily validate any data. Instead of the usual validation strategy checking for null text boxes, you'd have to check each box to see if the data was different from the text that you'd entered as "examples." You also don't have the ability to make any field required, since they all have data in them! I would suggest that you devise another method of giving your users examples of correct input.
I figured as much.
Thanks for the prompt reply.
Jun 19 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Drew | last post by:
I have a db table like the following, UID, int auto-increment RegNo Person Relation YearsKnown Now here is some sample data from this table,
1
by: ComedyFarm | last post by:
I am using Photoslider II on the index page but when I add more than one all sorts of problems happen. Now I suspect it is a duplicate variable problem but I don't know enough to understand what do I...
2
by: MichaelAtCitiesDigital | last post by:
I am having multiple issues with a project I am working on. I keep discovering more problems as I get further and further into trying to fix it. First, sessions aren't working correctly. Now, some...
1
by: Memphis Steve | last post by:
Is it possible to combine multiple javascipts into one file and then call that file from a linked URL in the head section of an XHTML file? Here are the two scripts I want to use with the...
0
by: TechnoAtif | last post by:
<?php include "dbconnect.php"; include "commonFunc.php"; ?> <!----------------------------------> <table width="80%" border="1" cellpadding="2" cellspacing="0"> <tr > <td...
11
by: TechnoAtif | last post by:
INSERT AND UPDATE MULTIPLE CHECKBOX DATA USING PHPMYSQL OR JAVASCRIPT Hi All I want to check the multiple checkboxes update them after revisiting that page. I am taking the name as...
3
by: sejal17 | last post by:
hello Can any one tell me how to read multiple worksheets from a single excel file.I have stored that excel in xml file.so i want to read that xml that has multiple worksheet.And i want to store...
1
by: deepaks85 | last post by:
Dear All, I want to send some data through a form with Multiple attachment in an HTML Format. I have tried it but it is not working for me. I am able to send data without attachment but with the...
9
by: RayDube | last post by:
Hello Gents, I want to be able to reward my members with credits, banner advertisements, text advertisements and even cash, but on a partially manual basis. I created a page where I could...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.