Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
10-05-2012, 05:06 PM #1
- Join Date
- Oct 2012
- Thanked 0 Times in 0 Posts
Html datalist does not work in old browser so i want to make a
10-05-2012, 05:46 PM #2
- Join Date
- Apr 2012
- St. Louis, MO
- Thanked 101 Times in 101 Posts
This is not the forum for questions. I'm sure a moderator will move this thread to the proper place, at some point. Just a heads-up.^_^
If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
* The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".
10-06-2012, 01:16 AM #3
Did you see this example that shows how to provide a "workaround" for older browsers?
The workaround needs some more done to it, but it does give one idea.
Creating a true replacement is a real pain, though it can be done.Be yourself. No one else is as qualified.
10-06-2012, 01:52 AM #4
but there are a million autocomplete scripts out there, if you care to google...
10-06-2012, 03:01 AM #5
Well, yeah, but what is the fun in using somebody else's code? If I can't write it, why should I use it? <grin/>Be yourself. No one else is as qualified.
10-06-2012, 03:54 AM #6
- Join Date
- Jun 2007
- Thanked 619 Times in 599 Posts
it's not so hard to get the textbox bound to a <select> instead of <datalist>, since they both use options, but that's where it stops being easy.
inside the textbox, you have to handle the arrow keys and selection/focus as expected without sacking accessibility. that must work on mac and windows, ie and chrome, which are all variations.
then you have to position the suggestion combo under the focused textbox, not always simple when float or position:fixed is in effect and don't forget about zooming/orientation changing the x/y offset between uses.
then you figure out that IOS doesn't do multi-line <select>s, and now you have to write a custom <div> replacement, and all the keyboard-accessible focus/navigation handlers. for all those browser variations.Create, Share, and Debug HTML pages and snippets with a cool new web app I helped create: pagedemos.com