ROLeso
2008-Feb-01 11:08 UTC
How to autocomlete MULTIPLE input type=text using script.aculo.us Ajax.Autocompleter ?
Hi,
Please help me.. eg. :
<input id="country" name="id="country"
type="text" />
<div id="target_country"
class="auto_complete"></div>
<script type="text/javascript">
//<![CDATA[
var country_auto_completer = new Ajax.Autocompleter("country",
"target_country", "/suggest_country_and_presidents.aspx",
{})
//]]>
</script>
<input id="actual_president"
name="id="actual_president" type="text"
/>
________________
I would like that, somehow when the suggestion_response from the
server_side arrive and I ckick one, automatically the binded
"president" input to be filled.
Somehow, into that <li>country1</><li>country2</li>.. I
have to
inoculate their corresponding actual_president
(That''s the easy part.. for eg. I can use a <span
class="secondParam">Bush</span> delimiter)
How to extract the second inoculated param and how to drop it
automatically into the "actual_president" input?
Thank you
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
ROLeso
2008-Feb-01 11:38 UTC
Re: How to autocomlete MULTIPLE input type=text using script.aculo.us Ajax.Autocompleter ?
I''m back... I found how to... Updating multiple fields with Script.aculo.us Autocomplete http://www.pagebakers.nl/2006/11/05/updating-multiple-fields-with-scriptaculous-autocomplete/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
ROLeso
2008-Feb-01 11:40 UTC
Re: How to autocomlete MULTIPLE input type=text using script.aculo.us Ajax.Autocompleter ?
I''m back..with a solution (someone''s) Updating multiple fields with Script.aculo.us Autocomplete http://www.pagebakers.nl/2006/11/05/updating-multiple-fields-with-scriptaculous-autocomplete/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---