⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Bootstrap and Edit Success Message



Ward Welch
  • profile picture
  • Member

Posted 19 May 2012 - 08:39 AM

I am using Bootstrap and Grocery Crud. When inserting or editing a record, then clicking Update Changes, the only thing that appears on the screen is a textarea with the following ...

{"success":true,"insert_primary_key":true,"success_message":"<p>Your data has been successfully updated. <a href='http:\/\/localhost\/dbpm\/index.php\/main\/building'>Go back to list<\/a><\/p>"}

Others on this forum have reported this behavior too.

Any idea what to do to fix?

Thanks

[attachment=177:Screen Shot 2012-05-19 at 4.34.24 AM.png]

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 19 May 2012 - 09:11 AM

You have an error at the Javascript at the edit form. Can you please check your firebug and see what is the problem? Perhaps if you just unset the jquery from grocery CRUD it will work:


$crud->unset_jquery();

xxaxxo
  • profile picture
  • Member

Posted 19 May 2012 - 11:38 AM

I'm using bootstrap with boilerplate too i don't remmember which one was it but one of the js's was bugging the CRUD - just shuffle them ... and you don't need the modernizer one ... and put them all before the CRUD ones

fastturtle
  • profile picture
  • Member

Posted 08 June 2012 - 02:22 AM

Ward,

I have this same problem. Did you ever figure this out?

xxaxxo
  • profile picture
  • Member

Posted 08 June 2012 - 07:03 AM

I told you - I had the same problem and it's becouse 1 of the js's mess with all the js's after it - if you place it "last" there is no problem ....

Elminson De Oleo Baez
  • profile picture
  • Member

Posted 23 August 2012 - 16:08 PM

Hi, mi problem was with the add function,

im using the theme datatables

$crud->set_theme('datatables');

and the problem was in the file /var/www/html/assets/grocery_crud/themes/datatables/js/datatables-add.js

have in line 23

alert(data.success);

i commnet it and the problem was solved

//alert(data.success);

i hope this help some one

Kaabi
  • profile picture
  • Member

Posted 17 September 2012 - 13:20 PM

Hello

i got same issue but is only exist with Chrome, as in firefox is works fine this issue wasn't exist in previous version is only exist in version 1.3.1 I think is Browser incompatibility issue