Actually I doubt that it works in anything but Firefox, as that is the
only browser that ignores the trailing comma in object literals.
Remove the one after width: 270 and it should work fine across
browsers.
You can also enable strict warnings in Firefox to get a warning about those.
Jörn
On Fri, Aug 29, 2008 at 11:36 AM, gemeaux <[EMAIL PROTECTED]> wrote:
>
> I'm using jQuery autocomplete and here's my code:
>
> <script type="text/javascript" src="js/jquery-1.2.6.js"></script>
> <script type="text/javascript" src="js/jquery.autocomplete.js"></
> script>
> <script type="text/javascript">
> <!--
> $(document).ready(function(){
>
> $("#txtSearchBox").autocomplete("Autocomplete.aspx",
> {
> maxItemsToShow: 10,
> minChars: 3,
> delay: 40,
> width: 270,
> });
>
> });
> //-->
> </script>
> ...
> <input type="text" ID="txtSearchBox" value="" />
> ...
>
> This works fine actually but when I try to put this code in some other
> page and start typing, I get no response (no auto-completion, no
> suggestion layer).
>
> It's OK in Firefox, Opera and Safari. The problem is only in Internet
> Explorer.
>
> I trace it using Firebug. Everything is OK, there is no error.
>
> Do you have any idea?
>