The display:none style is removed as soon as you enter something into the input field or change something there. It becomes hidden again when the input field loses focus for example because you activated the DOM inspector which explains why you always see display:none when you inspect it. As for your different behaviour in different browsers: I've got IE6 and FF2 here and with both it works.

Uli

Andy Pahne schrieb:
Ulrich Stärk schrieb:
Correct - everything. And it works here... I don't get it.

It might be possible that your browser can't find ../css/demo.css depending on your path layout but that would make it just look different. The suggest list should still be rendered if you enter something into the input field. I can't see why it works for me but not for you.
Do you have any entries in your info log? Mine is full of entries like
listSource was called
List contains 3 items, filter is 'de'



The CSS is found, because the page looks just like the TimeTracker demo.

For each request there are those entries in the log:

2008-02-21 16:05:35,937 INFO [http-8080-Processor25] (AjaxTest.java:170) - Suggest Listener was called. Filter is 'e' 2008-02-21 16:05:35,953 INFO [http-8080-Processor25] (AjaxTest.java:133) - listSource was called 2008-02-21 16:05:35,968 INFO [http-8080-Processor25] (AjaxTest.java:158) - List contains 36 items, filter is 'e' 2008-02-21 16:05:35,984 INFO [http-8080-Processor25] (AjaxTest.java:133) - listSource was called 2008-02-21 16:05:36,000 INFO [http-8080-Processor25] (AjaxTest.java:158) - List contains 36 items, filter is 'e' 2008-02-21 16:05:36,000 INFO [http-8080-Processor25] (AjaxTest.java:133) - listSource was called 2008-02-21 16:05:36,015 INFO [http-8080-Processor25] (AjaxTest.java:158) - List contains 36 items, filter is 'e'

I don't have any idea why the "List contains 36 items, filter is 'e'" entry appears three times.

As I wrote in my fist post, after the asynchronous page update the div with the suggestions looks like that:

<div style="display: none;" id="suggestchoices" class="autocomplete">...</div>

So, the div is there, it contains all the expected entries, but it is hidden (display: none;). My first thought was that the AJAX request does not work but a quick DOM inspection and a look into the logfile revealed that the AJAX part works perfectly.

I have no idea...

Andy



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to