⚠ 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

js error issues when crud buttons clicked



Noel Calonia

Noel Calonia
  • profile picture
  • Member

Posted 05 September 2015 - 11:21 AM

i just got a problem when i clicked crud buttons (add,edit,delete,view), it prompts a jquery errors like: 

Uncaught Error: Bootstrap's JavaScript requires jQuery

Uncaught ReferenceError: jQuery is not defined

Uncaught ReferenceError: $ is not defined

Uncaught TypeError: Cannot read property 'msie' of undefined

and when the page loads, the fancybox got an error : 

Uncaught TypeError: $(...).fancybox is not a function

how do i get rid of this? sometimes the fancybox error fades and the print and export buttons appears, but all the crud buttons didnt work... btw, the crud buttons performs a modal, the view of the crud operations (add,edit,view) are appear inside the modal content using iframe tag.

any help, suggestions and ideas will much appreciated! thanks in advance! :)


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 05 September 2015 - 13:29 PM

checkout the possibility of double jquery .... on the same page - it would have had caused a clash of titans and caused such problem.

Check even if the jquery is getting loaded or not. If not.. make sure it gets loaded.. 

 

do some debugging with firebug!!

Happy Gcing :)


Noel Calonia

Noel Calonia
  • profile picture
  • Member

Posted 05 September 2015 - 16:03 PM

i knew already that it could possibly the jquery have double its declaration, and i debug it with 

$crud->unset_jquery();

$crud->unset_jquery_ui();

cuz i have already declare it in my AppUI 2.1 bootstrap theme, but the error is in still.


Noel Calonia

Noel Calonia
  • profile picture
  • Member

Posted 05 September 2015 - 16:04 PM

checkout the possibility of double jquery .... on the same page - it would have had caused a clash of titans and caused such problem.

Check even if the jquery is getting loaded or not. If not.. make sure it gets loaded.. 

 

do some debugging with firebug!!

Happy Gcing :)

 

i knew already that it could possibly the jquery have double its declaration, and i debug it with 

$crud->unset_jquery();

$crud->unset_jquery_ui();

cuz i have already declare it in my AppUI 2.1 bootstrap theme, but the error is in still.

 

for more info @Amit Shah, you can look my repo at http://www.github.com/emonoel10/System