Link to home
Start Free TrialLog in
Avatar of Wayne Barron
Wayne BarronFlag for United States of America

asked on

Jquery Check against database on select from auto fill not working in all browsers

Hello All;

I am using a Jquery script to check the form field against the database as the person either selects or types in their username or email address.
In this demo, when you double click inside of the email field, you SHOULD see your email address popup.
(USING Google Chrome)
If you select the email address, it should show. "is Available" (As your address is not in the database).
NOW
In the top Username area, it is not working.
If you double click it, it SHOULD show your username, and if you select it, it will not show "is Available" unless you type something.

The Email works (In most) Google Chrome that I have tested, but not in the others browsers.
I would love to have it so people can select from their (Autofill) selection, and have it activate the check against the database, as well as when they type it out. (The typing out the information works flawlessly, just not the select from autofill or autocomplete)

Any idea's on this one?

This is the demo page.
http://www.cffcs.com/stuff/a/checkOther.asp
Project files
http://www.cffcs.com/stuff/a/checkOther.zip


Also, if you type in the username or the email, and the autofill option comes up, to choose a username or email address.
If you select it, the database part is not triggered.

Carrzkiss
ASKER CERTIFIED SOLUTION
Avatar of Big Monty
Big Monty
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Wayne Barron

ASKER

I just tested it.
Let me know if this is the way you intended it to work.

You select the username, and then once you click out, it checks against the database.
That is what I am seeing right now.

It is strange, as in the project, with Chrome, the email address, I am able to choose from the autofill list, and once I select the item, it checks it against the database, but it will not work like that on all.
That is what I would love to have.
However, if this is just a fluke, and will not work this way with all, then I will use your method.
The problem is browsers handle autofill differently - some fire a change event some do not - varies across browser and for field types.

One option is to have a polling function that checks the input and does the check if it has changed - not my ideal solution but it is an option.
Hey Julian, and thanks for the reply.
What get me, that is, what is confusing me.
I have several user Chrome profiles.
One of them can select the autofill email, and it will challenge the database.
None of the other Chrome users are able to get this same type of response.
It kind of falls to the...
I saw it once, and now I want to see it in all browsers. Type of feeling.

I looked in on the polling function and found out that Gmail uses it, and most likely Facebook is using it now, with the
... a friend is typing a message
Hey, Big Monty.
I just tested out the script in a real world situation, and I do believe it is going to do the job.
It would be awesome to have it do the autofill, but once the user clicks on the other field, it is going to let them know if it is registered or not. So, this will do.

Thank you.
Carrzkiss