Scriptacolous Autocompleter Problem!

0 views
Skip to first unread message

Muddy

unread,
Sep 30, 2007, 7:59:18 AM9/30/07
to rubyonrail...@googlegroups.com

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.

Reply all
Reply to author
Forward
0 new messages