⚠ In case you've missed it we are migrating 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 forum is read-only and soon will be archived. ⚠


js error issues when crud buttons clicked

javascript bugs

  • Please log in to reply
3 replies to this topic

#1 Noel Calonia

Noel Calonia

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

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! :)



#2 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts

Posted 05 September 2015 - 01: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 :)



#3 Noel Calonia

Noel Calonia

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 05 September 2015 - 04: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.



#4 Noel Calonia

Noel Calonia

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 05 September 2015 - 04: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







Also tagged with one or more of these keywords: javascript, bugs

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users