Opened 16 years ago
Closed 15 years ago
#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: | |
Blocked by: | Blocking: |
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.
Interface is no longer supported; consider switching to jQuery UI.