Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A bug in Autocompleter ?

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Odd. Is the whitespace in the HTML, or a styling oddity?
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the behaviour of FireFox2 and Opera
IE6 works as a devil !
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sir, I solve it !
This wont work :

This works :

Odd, huh ?
[ April 24, 2007: Message edited by: John Todd ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic