I want to search data in input field from database If not match then i will type.
I implement this the codeigniter(without GC). i attach this image name is search.png. Here i search the "Title" input field.
Now when I implement this grocery crud ,it show an error.
My code is below:
function supplier_setup ()
{
$this->grocery_crud->set_table('pos_supplier');
$this->grocery_crud->set_subject('Supplier Setup');
$this->grocery_crud->set_css('assets/grocery_crud/css/jquery_plugins/chosen/ci_functions.css');
$this->grocery_crud->set_js('assets/grocery_crud/js/jquery_plugins/search/prototype.js');
$this->grocery_crud->set_js('assets/grocery_crud/js/jquery_plugins/search/effects.js');
$this->grocery_crud->set_js('assets/grocery_crud/js/jquery_plugins/search/controls.js');
$this->grocery_crud->set_js('assets/grocery_crud/js/jquery_plugins/search/function_callback.js');
..................................................................
..................................................................
............................................
$this->grocery_crud->callback_add_field('first_name',array($this,'add_field_callback_1'));
.....................................
........................................
$this->poscrud_output($output);
}
function add_field_callback_1()
{
return '<input type="text" id="first_name" name="first_name"><div id="autocomplete_first_name" class="autocomplete"></div>';
}
I attach the error image.(search_gc.png).
Anybody help please.