No success message on add / update / return to list in grocery ore
I am using Codeigniter and Grocery Crud for a project. It looks like crud is working fine, but the problem is that when I try to add values, I don't get a success message. Instead, I am getting below textbox
I tried reinstalling crud from scratch but still the same.
add
and update
no success message is displayed and when I click on refresh and go to the list nothing happens.
Can someone please help me on this?
source to share
It's actually good to ask, as this is a common mistake in product CRUD on JavaScript error. This is mostly a problem when there is a JavaScript error on the previous page.
For example, when you are in your add form. For example: http://www.grocerycrud.com/demo/offices/add check your firebug to see if there is any JavaScript error. This happens when you have jquery or jqueryUI already in your JavaScripts. If so, to prevent conflict, a simple line of code can free you from searching. You can simply do:
$crud->unset_jquery(); //This will unset the Jquery library to load
or
$crud->unset_jquery_ui(); //This will unset the Jquery UI library to load
If you still have problems, check your Java scripts and try uninstalling some plugins that might be causing this problem. This sometimes happens when Bootstrap Twitter is installed, but only the unset_jquery () way can do the job.
And something finally I'm not sure, but I think the latest grocery CRUD is incompatible with JQuery v.1.9.0. So if you are using JQuery 1.9.0 try downgrading, eg. 1.8.3, or you need to wait for a major release of the product CRUD v.1.4, which will support JQuery v.1.9.0.
source to share