[jQuery] Re: result accompanied with blur cause non-deterministic behavior

2009-09-11 Thread Joel D'Souza
, 10:40 pm, Joel D'Souza joeldso...@gmail.com wrote: I have the blur event hooked in to reset hidden field values. The autocomplete plugin is set up as below and produces the behavior described in the comments: $(#test).autocomplete(data, {   formatItem: function(item) {     return item.text

[jQuery] [autocomplete] Autocomplete selection with mouse causes blur while with keyboard doesn't

2009-09-11 Thread Joel D'Souza
I intend to use the blur function when a selection is not made to clear some hidden field values. And the result function to set/update those hidden fields when a selection is made. With the mouse selection, as both blur and result are triggered simultaneously, a race condition occurs. This

[jQuery] [Autocomplete] result accompanied with blur cause non-deterministic behavior

2009-09-10 Thread Joel D'Souza
I have the blur event hooked in to reset hidden field values. The autocomplete plugin is set up as below and produces the behavior described in the comments: $(#test).autocomplete(data, { formatItem: function(item) { return item.text; } }).result(function(event, item) { // This