Ticket #1255 (closed bug: wontfix)
Plugins/autocompleter : Focus before the page load
| Reported by: | dytryh | Owned by: | stefan |
|---|---|---|---|
| Priority: | major | Milestone: | 1.1.3 |
| Component: | interface | Version: | 1.1.2 |
| Keywords: | autocompleter | Cc: | |
| Blocking: | Blocked by: |
Description
When an input bind to autocompleter script whith jquery.ready() have the focus before the page load was complete, the subject and lastvalue variable are undefined because there are defined with focus event.
jQuery(this) .attr('autocomplete', 'off') .focus(function(){
jQuery.iAuto.subject = this; jQuery.iAuto.lastValue = this.value;
}) .keypress(jQuery.iAuto.protect) .keyup(jQuery.iAuto.autocomplete)
And after the page load, if user input a text and jQuery.iAuto.autocomplete is trigger, autocompleter plugin trigger an error.
The error message is different according to the context.
In Firefox 2.0.0.3.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Interface is no longer supported; consider switching to jQuery UI.