How to use ajax text_field_with_auto_complete function |
[eluser]Unknown[/eluser]
Hello... I have ajax library (http://codeigniter.com/wiki/AJAX_for_CodeIgniter/) and I want to use text_field_with_auto_complete function to create an autocomplete input text field. The helper says: text_field_with_auto_complete(<var>object</var>, <var>$tag_options = null</var>, <var>$options = null</var>) I tryed with: <?=$this->ajax->text_field_with_auto_complete('searchtext',null,array('url' => 'test2'))?> And it generates: <style> div.auto_complete { width: 350px; background: #fff; } div.auto_complete ul { border:1px solid #888; margin:0; padding:0; width:100%; list-style-type:none; } div.auto_complete ul li { margin:0; padding:3px; } div.auto_complete ul li.selected { background-color: #ffb; } div.auto_complete ul strong.highlight { color: #800; margin:0; padding:0; } </style><input autocomplete="off" id="searchtext" name="searchtext" size="30" type="text" value="" /><div id="searchtext_auto_complete" class="auto_complete"></div>[removed]var searchtext_auto_completer = new Ajax.Autocompleter('searchtext', 'searchtext_auto_complete', 'test2', {} )[removed] Can someone provide a functional example to see exactly how to use it?
[eluser]Ephyzy[/eluser]
http://allover.worldattack.de/codeignite...th-jquery/ I found that website shortly before I saw this post. Though its 2 months late, I hope it helps someone there! |
Welcome Guest, Not a member yet? Register Sign In |