Skip to main content
Inspiring
December 19, 2006
Question

cfselect and IE

  • December 19, 2006
  • 5 replies
  • 538 views
I have a large query that I am displaying in a cfselect listbox. The query is of a set of users and can be very long. The idea is to allow the users to begin typing letters and have the listbox go to the item based on the keys entered. This is standard on desktop applications. Using cfselect works in this fashion on Firefox, but not IE. In IE it recognizes the first key-stroke, then stops (just like the standard html select). Does anyone know why this works in Firefox, but not in IE?
    This topic has been closed for replies.

    5 replies

    Inspiring
    December 19, 2006
    google "javascript typeahead select"

    Use your cgi variables to figure out the broswer being used and if/else logic to figure out when you need to use js
    Inspiring
    December 19, 2006
    google "javascript typeahead select"

    Use your cgi variables to figure out the broswer being used and if/else logic to figure out when you need to use js
    fillaeAuthor
    Inspiring
    December 19, 2006
    Hey, how about that!? Thanks Kronin.

    If anyone knows of a js plugin to do this in IE, I would love to hear about it.
    fillaeAuthor
    Inspiring
    December 19, 2006
    CJ,

    CFSELECT has that behavior in FF, <select> does not. The behavior exists in FF, but not IE.
    Participating Frequently
    December 19, 2006
    Firefox does this for any <select> box, whether generated via <cfselect> or not.

    As to why Firefox does it this way and IE does not... ask Microsoft. This has nothing to do with Coldfusion. All Coldfusion does is generate HTML to send to the browser. The browser decides how to display that element and how the user interaction happens.

    The only exception to this is if you're using flash forms.
    December 19, 2006
    it shouldn't be working like that in FF. an HTML <select> is a different element than a "desktop app" combo box.

    without some significant JS (which does exist), a <select> is going to behave as a <select> whether it be FF, IE, Opera, etc.