|
Hello, Thanks for the reply. I tried doing that but it didn't work for me.If you point out the mistake in following code, it will be great.Thanks again. <script type="text/_javascript_">
new Ajax.Autocompleter("search","hint","server_class.php",
{afterUpdateElement : getSelectedId, minChars:1});
function getSelectedId(text, li) {
$('class_id').value=li.id;
document.forms['searchcustomerform'].submit();
}
</script>
Thanks,Yogesh Matt Foster wrote: http://wiki.github.com/madrobby/scriptaculous/ajax-autocompleterafterUpdateElement function... you receive an input object and some element that was representing the field. At this point you could execute form.submit.. -- http://positionabsolute.net On Oct 7, 11:19 am, Yogesh <[email protected]> wrote: --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~--- |
- [Proto-Scripty] Submit form on select for autosuggest Yogesh
- [Proto-Scripty] Re: Submit form on select for autosugge... Matt Foster
- [Proto-Scripty] Re: Submit form on select for autos... Yogesh Agashe
- [Proto-Scripty] Re: Submit form on select for a... Matt Foster
- [Proto-Scripty] Re: Submit form on select f... Yogesh Agashe
- [Proto-Scripty] Re: Submit form on sel... Yogesh Agashe
- [Proto-Scripty] Re: Submit form on... Matt Foster
- [Proto-Scripty] Re: Submit for... Yogesh Agashe
