As I recall, the autocomplete doesn't work at all in IE (at least not < 9, 
not sure about 9). That's why I was thinking we should switch to a 
third-party client-side widget.

Anthony

On Wednesday, August 8, 2012 8:53:00 AM UTC-4, Johann Spies wrote:
>
> On Tuesday, 7 August 2012 17:23:34 UTC+2, Massimo Di Pierro wrote:
>>
>> Has anybody worked out a good CSS for this? I do not think web2py ever 
>> shipped with css for the autocomplete widget.
>>
>> On Tuesday, 7 August 2012 07:56:57 UTC-5, Johann Spies wrote:
>
>  
>
>> The autocomplete widget does look good in Firefox and Chrome on Linux.  
>>> See the attached screenshot. 
>>>
>>>
> I have now determined that my screenshot does not always apply.  A few 
> strange things happened ago.
>
> 1. Today's trunk code made all autocomplete widgets (suggest_widget 
> included) stop working at all.  It seems that no Ajax calls were working.  
> So I restored a backup of yesterday's code and  that restored the ajax 
> functionality.
>
> 2. The following form illustrates something that does not make sense at 
> all. 
>
> Two problems arise out of it:  
> *  The css does not work at all on the first field (see screenshots 1 and 
> 3).
> *   There are two tables (akb_journal, akb_articles) which both have a 
> 'title' field which is a normal string.  The first field's autocomplete 
> (and this is the case with both the suggest_widget and the autocomplete 
> widget) does the lookup in the wrong table. In both cases values from the 
> akb_journal.title field gets returned.  The firstand fourth screenshots 
> illustrate this.
>
> The second field was added as a debugging mechanism:  From the same table 
> (akb_articles) I use another field (authors) and in this case both the css 
> and the lookup values are fine as the second screenshot shows.
>
> The third does the lookup in the correct table, but the css is not 
> functioning in this when I use the Autocomplete widget.  See third 
> screenshot. 
>
> form=SQLFORM.factory(Field('artikel', label = T('Article'),
>                                widget = SQLFORM.widgets.autocomplete(
> request,
>                                                                      db.
> akb_articles.title,
>                                                                     
>  id_field = db.akb_articles.uuid,
>                                                                      
> orderby = db.akb_articles.title,
>                                                                     
>  limitby = (0, 20), min_length = 2)),
>                          Field('xxxxx', label = T('authors'),
>                                widget = SQLFORM.widgets.autocomplete(
> request,
>                                                                      db.
> akb_articles.authors,
>                                                                     
>  id_field = db.akb_articles.uuid,
>                                                                      
> orderby = db.akb_articles.authors,
>                                                                     
>  limitby = (0, 20), min_length = 2)),
>                          Field('skrywer', label = T('author'),
>                                widget= SQLFORM.widgets.autocomplete(
> request,db.akb_authors.name,
>                                                                   id_field 
> = db.akb_authors.uuid,
>                                                                   orderby 
> = db.akb_authors.name,
>                                                                   limitby 
> = (0, 20), min_length = 2)))
>
>
> I would appreciate it if someone can clear up my confusion about what is 
> going on here.
>
> Regards
> Johann
>                            
>

-- 



Reply via email to