Loading ...
Sorry, an error occurred while loading the content.

Re: Auto Complete Issue in Firefox - sample link included - please help

Expand Messages
  • assyriannation
    Thanks that did solve the problem and thanks for your little note. :) Cheers ... ( query , container2 , ... argument as ... looks ... or the ... attempt to
    Message 1 of 11 , Dec 18, 2006
    • 0 Attachment
      Thanks that did solve the problem
      and thanks for your little note. :)

      Cheers
      --- In ydn-javascript@yahoogroups.com, "Satyen Desai" <sdezzi@...>
      wrote:
      >
      > Hey Assyriannation,
      >
      > Try changing
      >
      > var myAutoComp = new YAHOO.widget.AutoComplete
      ("query","container2",
      > myDataSource3);
      >
      > to
      >
      > var myAutoComp = new
      > YAHOO.widget.AutoComplete("myInput","container2", myDataSource3);
      >
      > Your AutoComplete's INPUT markup is
      >
      > <input name="query" id="myInput" ....>
      >
      > And the AutoComplete constructor expects the ID as the first
      argument as
      > opposed to the NAME
      >
      >
      > It probably works in IE with the name, because eventually
      > document.getElementById is used to find the element, which in IE
      looks
      > up elements by NAME as well as ID
      >
      > Also, maybe a little more robust if you wait for the page to load
      or the
      > AutoComplete INPUT/DIV elements to be available before you
      attempt to
      > create the AutoComplete control instead of running the code inline,
      just
      > to make sure they are part of the DOM [ see
      > http://developer.yahoo.com/yui/event/#onavailable
      > <http://developer.yahoo.com/yui/event/#onavailable> for info on
      the
      > onAvailable event ].
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.