|Hi i''m New First Question: to use a script.aculo.us it needs to include prototype.js and scriptaculous.js.... but doesn''t work!!; instead ||using ||scriptaculous.shrunk of Alister Cameron, work; what are the expedient to use to include the ||scriptaculous.js ? Second question: in script.aculo.us |Ajax.Autocompleter <http://wiki.script.aculo.us/scriptaculous/show/Ajax.Autocompleter> : |new Ajax.Autocompleter("autocomplete", "autocomplete_choices", "/url/on/server", {}); what is | |/url/on/server ? Bye |
Hi Gianni,> Second question: > in script.aculo.us |Ajax.Autocompleter > <http://wiki.script.aculo.us/scriptaculous/show/Ajax.Autocompleter> : > > > |new Ajax.Autocompleter("autocomplete", "autocomplete_choices", > "/url/on/server", {}); > > what is | |/url/on/server ?URL on server is the address of your script/application on the server which will be handling the AJAX call made by the autocompleter, and returning ''I think'' a List/Array of some kind, with suggestions. -Chris _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Hi Chris The sintax for the autocompleter is this (http://wiki.script.aculo.us/scriptaculous/show/Ajax.Autocompleter): <input type="text" id="autocomplete"/><div id="autocomplete_choices"></div> <script>new Ajax.Autocompleter("autocomplete", "autocomplete_choices", "/autocomplete.htm", {paramName: "value", minChars: 2});</script> this part of code needs insert in other page? <ul> <li>your mom</li> <li>yodel</li> </ul> Gianni
When I downloaded the entire scripaclous package and uploaded the js to my server I had this problem too. But I noticed the examples where working, so I copies the js files that from src/ and lib/ into my js folder and it worked. Not sure why, as all files came from the same zip. But you might want to try that. -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Gianni Sent: Friday, January 06, 2006 10:44 AM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails-spinoffs] Gianni |Hi i''m New First Question: to use a script.aculo.us it needs to include prototype.js and scriptaculous.js.... but doesn''t work!!; instead ||using ||scriptaculous.shrunk of Alister Cameron, work; what are the expedient to use to include the ||scriptaculous.js ? Second question: in script.aculo.us |Ajax.Autocompleter <http://wiki.script.aculo.us/scriptaculous/show/Ajax.Autocompleter> : |new Ajax.Autocompleter("autocomplete", "autocomplete_choices", "/url/on/server", {}); what is | |/url/on/server ? Bye | _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs