Opera autocompleting issues // jsFiddle is win
Tuesday, May 18th, 2010 12:16 amHave been fighting Opera, trying to make it understand that I need the tab and enter keys for autocomplete. Lots of googling later, finally realized that I could ignore all the talk of trying to bind to the keypress event or whatever, and instead use the existing hooks to set a "just completed" flag, after an item has been selected. Then, if the form gets submitted by the enter key, or if we leave the text box, check whether we'd just completed something.
It sounds horribly complicated, but it's only three tiny chunks of code (or it was, after I got rid of all the other more complicated, but unnecessary, approaches \o/)
Really useful article about jquery ui widgets:
* Understanding jQuery UI widgets: A tutorial was crucial to my understanding of events in jQuery.
Also, jsFiddle is awesome. It's a combination of pastebin and an active dev environment. I talk about it a bit in the
javascript community, but really it's much better than I can make it sound *g*
(A couple of weeks ago, I posted a link to Google Playground. This is like that, but even niftier if you just want to play with JS and JS frameworks, not Google's APIs).
It sounds horribly complicated, but it's only three tiny chunks of code (or it was, after I got rid of all the other more complicated, but unnecessary, approaches \o/)
Really useful article about jquery ui widgets:
* Understanding jQuery UI widgets: A tutorial was crucial to my understanding of events in jQuery.
Also, jsFiddle is awesome. It's a combination of pastebin and an active dev environment. I talk about it a bit in the
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
(A couple of weeks ago, I posted a link to Google Playground. This is like that, but even niftier if you just want to play with JS and JS frameworks, not Google's APIs).