please try cacheLength=0 arg to autocomplete.

On Fri, Oct 2, 2009 at 03:45, Otniel Zebua <otn...@gmail.com> wrote:
Ok, I have got it with $_GET.

But now I have another problem, if I choose "England" for the country, then
I press "a" in autocomplete input box, then $_GET['country'] value will be
"GB" in the server-side code.
But when I choose Italy for the country, then I press "a" again in
autocomplete input box then $_GET['country'] value will be also "GB" in the
server-side code. But If I press "b" then $_GET['country'] value will be
"IT" in server-side code.

Am I doing something wrong, or there is a bug in the script? Looks like, the
cache was still there. How can I clear the cache.

Thanks again for your help.

Regards,

On Fri, Oct 2, 2009 at 8:24 AM, James <james.gp....@gmail.com> wrote:

Yep. In my experience, I think the only time I found it not to send
any extra param is if the value of the param is empty (or undefined, I
believe).
In the example, if:
  $("#country").val();
returns nothing.


pragard,
You might want to try to test it with a hard-coded value:
  extraParams: {
      country: function() { return 'USA'; }
  }





--
alex

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to