Giter Club home page Giter Club logo

Comments (8)

commadelimited avatar commadelimited commented on August 22, 2024

Neil...

Not sure why it's not working in IE8. Would you mind taking a look and seeing if there's any JavaScript errors being reported?

from autocomplete.js.

neilcoplin avatar neilcoplin commented on August 22, 2024

There are not. :( I set a breakpoint at the start of the page and started walking through the javascript executing, so at the very least it is getting executed. However breakpoints inside of the buildItems and handleInput functions never seemed to be reached when I was typing into the input field. I'll try investigating further, but anything you find that could help as well, let me know.

from autocomplete.js.

neilcoplin avatar neilcoplin commented on August 22, 2024

From what best I can tell, the input event isn't supported in IE prior to 9, which may be why the initial javascript gets run, but the event never gets triggered.

http://msdn.microsoft.com/en-us/library/ie/gg592978%28v=vs.85%29.aspx (if you hover over the IE logo, it says IE9)

In looking over the binding events for jQuery UI's autocomplete, it looks like they're primarily using the keydown event for the autocomplete. So that could be attempted, but my preliminary tests haven't resulted much promise...

from autocomplete.js.

neilcoplin avatar neilcoplin commented on August 22, 2024

It looks like changing the bind event from "input.autocomplete" to "keyup.autocomplete" fixes the issue in IE8, and it still resolves relatively well in other browsers. You can perform your own testing of course. Initial tests had failed due to a misconfiguration in my call of the script, but after I fixed those, it seems to perform fine with the one adjustment.

from autocomplete.js.

RichardDalton avatar RichardDalton commented on August 22, 2024

@neilcoplin Did you not find that the call to .filter() in the handleInput function threw an error in IE8? This function is not supported in any IE before IE9.

Easiest way to handle this would be to add a shim such as the one under compatibility here - https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/filter

from autocomplete.js.

neilcoplin avatar neilcoplin commented on August 22, 2024

I was using the widget with the ajax source option, so I never hit that section of the code. Though yes, I believe that is correct that the .filter() isn't supported in IE8.

from autocomplete.js.

RichardDalton avatar RichardDalton commented on August 22, 2024

Thought that might be the case.

from autocomplete.js.

commadelimited avatar commadelimited commented on August 22, 2024

This should be resolved in 1.4, out later today.

from autocomplete.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.