Hello, I am using Ajax.autocompleter on a text input search field. What I want to have it after a user hits a space character, my php script should return 30 most recent results. I have written the query on php side for this. I have set minchars=0 in autocompleter options.
I checked from firebug's responses that when I hit the space key, my page is not making the request to my server side page. My question is how do I trigger a request on space key? Following is my code: <script type="text/javascript"> new Ajax.Autocompleter("search","hint","server_class_nonew.php", { afterUpdateElement : getSelectedId, minChars:0 , frequency:0.4, paramName: "value" } ); function getSelectedId(text, li) { $('class_id').value=li.id; document.forms['searchcustomerform'].submit(); } </script> Thanks you. Sincerely, Yogesh --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---