473,548 Members | 2,716 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Autocomplete cuasing problems with client side validation controls

I have a form for entering a user's address and all fields have a required
validating control associated with them and the error msg for each field
displays right next to it. The normal behavior is that the error msg
doesn't show unit the use hits the submit button or the user enters data and
moves the focus to another control so the field becomes dirty. So far so
good. Now when the user goes back to that control and starts to input data
the auto complete feature kicks in and shows them a list of options. If the
user selects an item from the autocomplete list or keys in the exact same
text as an item in the list and then moves the focus away from the field the
error msg does NOT go away. However, it the user keys in new data not found
in the autocomplete list and then moves the focus away then the error msg
DOES go away. This behavior is inconsistent and if the error msg does not
go away when it should then it can be confusing or misleading to the user
where they may think the field is not valid. NOTE: even if the error msg
remains showing even when it should have disappeared because the field is
valid, the page IS valid and can be submitted.

I don't want to turn off autocomplete because filling out addresses is one
of those things that people have to do too often and a lot of time can be
save using this feature. I personally would be annoyed if I had to enter my
address in full all the time. However, the issue of this error msg not
disappearing when it should is also annoying and confusing.

Any good solutions?

--
mo*******@nospa m.com
Nov 18 '05 #1
8 3339
You will have to catch the onblur, and revalidate the input.
-- bruce (sqlwork.com)

"moondaddy" <mo*******@nosp am.com> wrote in message
news:Ox******** ******@TK2MSFTN GP12.phx.gbl...
I have a form for entering a user's address and all fields have a required
validating control associated with them and the error msg for each field
displays right next to it. The normal behavior is that the error msg
doesn't show unit the use hits the submit button or the user enters data and moves the focus to another control so the field becomes dirty. So far so
good. Now when the user goes back to that control and starts to input data the auto complete feature kicks in and shows them a list of options. If the user selects an item from the autocomplete list or keys in the exact same
text as an item in the list and then moves the focus away from the field the error msg does NOT go away. However, it the user keys in new data not found in the autocomplete list and then moves the focus away then the error msg
DOES go away. This behavior is inconsistent and if the error msg does not
go away when it should then it can be confusing or misleading to the user
where they may think the field is not valid. NOTE: even if the error msg
remains showing even when it should have disappeared because the field is
valid, the page IS valid and can be submitted.

I don't want to turn off autocomplete because filling out addresses is one
of those things that people have to do too often and a lot of time can be
save using this feature. I personally would be annoyed if I had to enter my address in full all the time. However, the issue of this error msg not
disappearing when it should is also annoying and confusing.

Any good solutions?

--
mo*******@nospa m.com

Nov 18 '05 #2
Thanks Bruce. Does this happen to lots to other developers as well? I
would think it happens a lot and if I start writing my own validation in the
onblur event then I'm loosing some of the benefit of using the validation
controls in the first place, and I'm also leaving myself more open to bugs
and problems with other browsers. MS, if you are listening, do you have any
further comments on this?

Thanks again.

--
mo*******@nospa m.com
"bruce barker" <no***********@ safeco.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
You will have to catch the onblur, and revalidate the input.
-- bruce (sqlwork.com)

"moondaddy" <mo*******@nosp am.com> wrote in message
news:Ox******** ******@TK2MSFTN GP12.phx.gbl...
I have a form for entering a user's address and all fields have a required validating control associated with them and the error msg for each field
displays right next to it. The normal behavior is that the error msg
doesn't show unit the use hits the submit button or the user enters data and
moves the focus to another control so the field becomes dirty. So far so good. Now when the user goes back to that control and starts to input

data
the auto complete feature kicks in and shows them a list of options. If

the
user selects an item from the autocomplete list or keys in the exact same text as an item in the list and then moves the focus away from the field

the
error msg does NOT go away. However, it the user keys in new data not

found
in the autocomplete list and then moves the focus away then the error msg DOES go away. This behavior is inconsistent and if the error msg does not go away when it should then it can be confusing or misleading to the user where they may think the field is not valid. NOTE: even if the error msg remains showing even when it should have disappeared because the field is valid, the page IS valid and can be submitted.

I don't want to turn off autocomplete because filling out addresses is one of those things that people have to do too often and a lot of time can be save using this feature. I personally would be annoyed if I had to

enter my
address in full all the time. However, the issue of this error msg not
disappearing when it should is also annoying and confusing.

Any good solutions?

--
mo*******@nospa m.com


Nov 18 '05 #3
Thanks Bruce. Does this happen to lots to other developers as well? I
would think it happens a lot and if I start writing my own validation in the
onblur event then I'm loosing some of the benefit of using the validation
controls in the first place, and I'm also leaving myself more open to bugs
and problems with other browsers. MS, if you are listening, do you have any
further comments on this?

Thanks again.

--
mo*******@nospa m.com
"bruce barker" <no***********@ safeco.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
You will have to catch the onblur, and revalidate the input.
-- bruce (sqlwork.com)

"moondaddy" <mo*******@nosp am.com> wrote in message
news:Ox******** ******@TK2MSFTN GP12.phx.gbl...
I have a form for entering a user's address and all fields have a required validating control associated with them and the error msg for each field
displays right next to it. The normal behavior is that the error msg
doesn't show unit the use hits the submit button or the user enters data and
moves the focus to another control so the field becomes dirty. So far so good. Now when the user goes back to that control and starts to input

data
the auto complete feature kicks in and shows them a list of options. If

the
user selects an item from the autocomplete list or keys in the exact same text as an item in the list and then moves the focus away from the field

the
error msg does NOT go away. However, it the user keys in new data not

found
in the autocomplete list and then moves the focus away then the error msg DOES go away. This behavior is inconsistent and if the error msg does not go away when it should then it can be confusing or misleading to the user where they may think the field is not valid. NOTE: even if the error msg remains showing even when it should have disappeared because the field is valid, the page IS valid and can be submitted.

I don't want to turn off autocomplete because filling out addresses is one of those things that people have to do too often and a lot of time can be save using this feature. I personally would be annoyed if I had to

enter my
address in full all the time. However, the issue of this error msg not
disappearing when it should is also annoying and confusing.

Any good solutions?

--
mo*******@nospa m.com


Nov 18 '05 #4
Hi moondaddy,

Thanks for your feedback.

I can reproduce out your problem. I will spend some time to do some
research on this issue. Maybe I can find a better workaround for you.

Thanks for your understanding.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 18 '05 #5
Hi moondaddy,

Sorry for letting you wait for so long time.

After doing some research, I find that this is a known issue of IE
autocomplete function.

For Validation control, to do the client validation for certain html
element, it will use some client script function to "hook up" this html
element's change event, so that when the textbox's content is changed, it
can be notified.

But when the autocomplete is opened, if you select a different value
through autocomplete list, although the textbox content is changed, change
event will not fire for you.

The below javascript code proves this:

<INPUT type="text" name="abc" size="33" onchange="test( )" id="abc">

<script language="javas cript">
function test()
{
alert("abc");
}
</script>

So this issue is due to the IE issue, not the Validation control.

Actually, if you search in http://groups.google.com/ , you will find that
this is a frequently asked question, and many developers have met. From
these threads, you can see there are 2 ways to handle this issue, close
autocomplete or leverage onblur client event. Also, I have seen that you do
not want to close autocomplete function for your textbox, which will be
convinient for the customer. So I recommanded you leverage onblur event to
workaround this issue, I think it will not affect much to you.

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 18 '05 #6
Hi moondaddy,

Do you still have any concern on this issue? Does my reply makes sense to
you?

Please feel free to feedback, I will help you. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 18 '05 #7
Thanks for all of the work on this issue. I have completely redesigned the
page and am only using the summary validation control to show the error
msgs. However, this is only a quick fix for this page and I'll be crossing
this issue again soon, so I've saved your posting for future reference. I'm
very sure I'll be making use of it, so another big thanks for all of your
work!

--
mo*******@nospa m.com
""Jeffrey Tan[MSFT]"" <v-*****@online.mi crosoft.com> wrote in message
news:X$******** *****@cpmsftngx a06.phx.gbl...
Hi moondaddy,

Do you still have any concern on this issue? Does my reply makes sense to
you?

Please feel free to feedback, I will help you. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 18 '05 #8
Hi moondaddy,

Thanks for your feedback.

I am glad I can help you. Ok, if you need further help, please feel free to
feedback, I will help you.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 18 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2759
by: Rick | last post by:
I have an interesting problem when I run the following code in Netscape (7.02) vs. IE. This page works great in IE and all my controls bring up the validation summary dialog box if the required field is not filled out. However in Netscape NONE of the required field validations occurs at all in Netscape. The form is posting correctly because...
3
1261
by: Gareth | last post by:
Hi, I've just published a test web site on the internet with a simple form and some client side validation controls. On my development PC if I click submit without entering any data the validation controls work and prompt me as expected. On the live web server I do exactly the same thing but no validation is performed and the form is...
4
2356
by: | last post by:
Hello Guys, I am using the validation controls to validate my data. But the problem is "The page is still being posted to server". I want to get rid of the round trips to server. Are there any get arounds for this problem apart from the traditional JavaScript?
14
6275
by: Matt | last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or Client-Side form validation? Since I think each validator control can select either 1) JavaScript based error dialog or 2) show the error message next to the control. For example, if the text field is empty with RequiredField Validator control, it can show the value in...
3
13118
by: Earl Teigrob | last post by:
I wanted my "Terms and Conditions" Checkbox control to participate in my ASP.NET validation just like all the the other controls on the page. After some time of searching the web for an example of how to do this, I created the script to do it and thought I would share it. Its a littel messy but does the job. If anyone has a better solution,...
7
304
by: moondaddy | last post by:
I have a form for entering a user's address and all fields have a required validating control associated with them and the error msg for each field displays right next to it. The normal behavior is that the error msg doesn't show unit the use hits the submit button or the user enters data and moves the focus to another control so the field...
5
1915
by: Sun Jian | last post by:
Hi, I am trying to customize the asp.net validation to achieve the following: Upon submitting the form, client side validation will run, and it will stop at the first error detected. For example if both UserID and Password text fields are required but neither is filled in, I'd like to display the error message (a dialogbox) "Please enter...
1
3927
by: Hong Hao | last post by:
Recently, I was trying to modify an existing aspx page when client-side validation on that page stopped working. I searched this group and the web in general and found that other people have had the same issue. However, none of the suggested fixes solved my particular problem. I tracked down the cause of the problem, which is related to aspx...
0
1055
by: parvaz.mahdabi | last post by:
I have some custom client side validation in an asp.net form, when autocomplete is enabled, the isvalid property of validation controls in javascript works incorrect.I use isValid property in order to chang the background color of some controls based on their validity.Is thare any way to escape this problem ???This application is developed...
0
7444
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7711
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7954
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7467
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5085
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3497
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3478
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1932
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1054
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.