Hello everybody!
I tried to use Scriptacolous Autocompleter in my Project! So i put the
necessary files in a javascripts/ Folder and include them in my Html header!
In Php i use the following Script to activate the autocompleter!
$ret .= ''<input type="text" id="journal"
name="journal"
value="''.htmlentities($this->data).''"
size="80">'';
$ret .= '''';
$ret .= ''<div id="AutocompleteChoices"
class="autocomplete"></div>'';
$ret .= ''<script type="text/javascript">'';
$ret .= ''<!--'';
$ret .= ''new Ajax.Autocompleter("journal",
"AutocompleteChoices",
"get_list.php", {method: "post",paramName:
"value",minChars: 2, indicator:
"indicator1"})'';
$ret .= ''-->'';
$ret .= ''</script>'';
The variable $ret will be called up later! Additionally i have the
get_list.php which should work fine!
When i try to enter text in the Textfield nothing happens! No list or
anything. The same like before without script! But there is no error or
something! In which directory should i put the get_list.php?
What could be the error?
Greets Muddy
--
View this message in context:
http://www.nabble.com/Scriptacolous-Autocompleter-Problem%21-tf4543064.html#a12964875
Sent from the RubyOnRails Spinoffs mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---