Jump to content


Problem in input field search

search

  • Please log in to reply
No replies to this topic

#1 tofayelahmed

tofayelahmed

    Advanced Member

  • Members
  • PipPipPip
  • 63 posts

Posted 02 May 2012 - 06:42 AM

Hello everybody.
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.

Attached Thumbnails

  • search.png
  • search_gc.png






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users