wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes A bug in Autocompleter ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "A bug in Autocompleter ?" Watch "A bug in Autocompleter ?" New topic
Author

A bug in Autocompleter ?

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Hi.
I'm trying to employ Scriptaculous autocompleter control.
The control gets its data from Hibernate DAO.
The control works fine until I clicked on an item from the list, the text field is getten populated with the choosed <li> item but with extra 12 whitespaces at the beginning.

Is it a bug ?
(I'm using the same CSS for the text field and the div of Prototype and Scriptaculous In Action).
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60822
    
  65

Odd. Is the whitespace in the HTML, or a styling oddity?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

I think it is in HTML.
The menu items displayed correctly (without any whitespaces).
[ April 23, 2007: Message edited by: John Todd ]
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

This is the behaviour of FireFox2 and Opera
IE6 works as a devil !
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

I did the following test :
I removed all my CSS except for the autocompleter control, the same thing (IE works, FF & Opera failed)
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Sir, I solve it !
This wont work :

This works :

Odd, huh ?
[ April 24, 2007: Message edited by: John Todd ]
 
Consider Paul's rocket mass heater.
 
subject: A bug in Autocompleter ?
 
Similar Threads
Struts and AjaxTags autocompleter
autocompleter
Autocompleter - NoSuchMethodException
Misusing InPlaceEditor
Autocompleter