Page 1 of 1

autocomplete script not fired if cursor in input box

Posted: Sun Jan 17, 2010 10:09 am
by rocksolidhq
Hey All,

i have a page (http://www.rocksolidhq.com/cabease/ibs_source) with a couple of forms on it that also incorporates a jquery autocomplete script (Pickup Address and Dropoff Address). The autocomplete script works fine so long as the cursor does not start in that uses the autocomplete script. This becomes a problem in two ways for this page. First, when a completes the top form and submits it, the page reloads and i want the focus to be in the Pickup Address box. Second, just to complicate things IE doesn't use the focus() command properly so if a user has the cursor in the Pickup Address box and either completes the bottom form with an error or just reloads the page then the focus remains in the Pickup Address box and the autocomplete script doesn't fire.

Simply moving the cursor to another box and then back resolves the issue....hmmm...i guess i could just use to focus() commands to fix Firefox but this won't work in IE due to it's problem with the focus() command.

Any help here would be greatly appreciated.

thanks in advance,
dean