Ok I found my problem that I spoke of earler. It was the version of jquery. I was using jquery 1.7.2 before with no problems. When I upgraded to web2py 2.0.6, it came with Jquery 1.8.0 and that was causing the problem. So I just copied the older version jquery and all is ok for now. JQuery UI 1.8.16.
These versions were compatible for me, so you might want to check if all versions are compatible. On Tue, Sep 4, 2012 at 2:27 AM, Annet <[email protected]> wrote: > The issue has something to do with web2py. > > In 1.99.7 > jQuery 1.7.1 > jQuery UI 1.8.20 > > ... the date and auto complete field do work: > > <input type="text" value="" name="birthday" id="no_table_birthday" > class="date hasDatepicker"> > > <input id="no_table_locality" class="string ui-autocomplete-input" > type="text" value="" name="locality" autocomplete="off" role="textbox" > aria-autocomplete="list" aria-haspopup="true"> > > > In 2.0.6 > jQuery 1.7.1 > jQuery UI 1.8.20 > > ... (same code, different web2py version) the date and autocomplete field > do not work when they are in the same form. > > <input type="text" value="" name="birthday" id="no_table_birthday" > class="date input-xlarge hasDatepicker"> > > > <input type="text" value="" name="locality" id="no_table_locality" > class="input-xlarge string"> > > > I have no idea why. > > > Kind regards, > > Annet > > > > > > > On Tuesday, 4 September 2012 06:43:28 UTC+2, Annet wrote: >> >> >> Version of jQuery bundled with web2py welcome app has changed between >>> 1.99.x and 2.0.x, so if you're upgrading your existing app in any way, this >>> might be a factor too. >>> >> >> Thanks for your reply, you're right I had to update jQuery UI form 1.8.20 >> to 1.8..23 to fix the issue. >> >> I am having another issue with jQuery UI. When a form contains both a >> date and an autocomplete field the calendar breaks the autocomplete, i.e. >> none of the autocomplete fields are rendered as autocomplete: >> >> <input type="text" value="" name="locality" id="no_table_locality" >> class="input-xlarge string"> >> >> ... where I expect: >> >> <input type="text" value="" name="locality" id="no_table_locality" >> class="input-xlarge string ui-autocomplete-input" autocomplete="off" >> role="textbox" aria-autocomplete="list" aria-haspopup="true"> >> >> >> I know this is not related to web2py, but maybe you know whether there's >> a fix for this issue. >> >> >> Kind regards, >> >> Annet >> >> > -- > > > > --

