Script.aculo.us Autocompleter problem in IE

autocomplete, internet-explorer, prototypejs, scriptaculous

Solution

I am indeed having the exact same problem. The problem only occurs in IE (also in 8.0 beta)

Both Firefox and Chrome I tried, have no issues what-so-ever.

According to others this is due to the DOCTYPE declaration in the HTML file. Check here: http://prototype.lighthouseapp.com/projects/8887/tickets/32-ajax-autocomplete-in-ie-with-doctype

The bug has also got a ticket at the ruby developer boards: http://dev.rubyonrails.org/ticket/11051

Both links have got solutions to fix the problem.

Hopefully the bug will be fixed in the next version of prototype/scriptaculous :)

Problem

I'm struggling with a problem with the Script.aculo.us Autocompleter control in IE (I've tried it in IE6 & 7). The suggestions fail to appear for the first character is entered into the text box after the page has been loaded. After that initial failure, the control works as it should. I've verified that the suggestions data is returned from the server correctly; the problem appears to have something to do with the positioning of the suggestions element, as other relatively positioned elements on the page move out of position at the moment that you'd expect the suggestions to appear. Has anyone heard of such a problem or have any suggestions on how to fix it? Edit: In response to Chris, I have set the partialChars parameter to 1 and the control works in all the other browsers I've tried, which are the latest versions of Firefox, Safari, Opera, and Chrome. I should probably have made that clear in the first place. Thanks.

Original source