Hey, this ones driving me insane! I hope someone can help, ive
downloaded the script.aculo.us version 1.7.0. I put all the javascript
files in a file called javascripts in my asp.net site. I am trying to
get my autocomplete to get values out of a database based on the
letters i have typed into a textbox. I have a textbox input :
<input type="text" id="autocomplete" name="autocomplete_parameter"/>
and a div for the autocomplete choices.
<div id="autocomplete_choices" class="autocomplete"></div>
The javascript behind this is causing me problems. I am not very good
with javascript. i know to call a new ajax autocompletion extender and
tell it to look for the values in the input and display the found
values in the div :
<script language="javascript" type="text/javascript">
new Ajax.Autocompleter("autocomplete", "autocomplete_choices", "/url/
on/server", {afterUpdateElement : getSelectionId});
function getSelectionId(text, li) {
alert (li.id);
}</script>
Just a lil bit confused out how :
1) the results work.
2) the SQL statment would work, is it written in javascript or in a
sql statment?
If anyone has made a autocomplete script.aculo.us from database if
they could help me / give me a simple example code that would be
amazing, this has been driving me mad for about a week now! lol thanks
in advance for all help / advice / links / code etc. si!
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---