CodeIgniter Forums
Jquery library not loading - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Jquery library not loading (/showthread.php?tid=38873)



Jquery library not loading - El Forum - 02-22-2011

[eluser]Pedro Luz[/eluser]
hi,

Code:
$this->load->library('jquery');

gives:

An Error Was Encountered
Unable to load the requested class: jquery

any ideas?


Jquery library not loading - El Forum - 02-22-2011

[eluser]LuckyFella73[/eluser]
The userguide says you only have to load the javascript library.
The jquery library is loaded automatically unless you define an
other library. Until now jquery is the only one available in the
CI reactor package.


Jquery library not loading - El Forum - 05-07-2012

[eluser]Unknown[/eluser]
Hi, you can try :
Code:
$this->load->library('javascript/jquery');
(Becasue JQuery.php in location : YourCIProject/system/libraries/javascript , that worked !)
Note : the first you much load javascript library before load jquery library.
Example :
Code:
<?php $this->load->library('javascript'); ?>
<?php $this->load->library('javascript/jquery'); ?>
Good luck ! :-)




Jquery library not loading - El Forum - 04-03-2014

[eluser]Katsune[/eluser]
Does this mean that I can now use AJAX after initializing this? or ajax has different library?


Jquery library not loading - El Forum - 04-04-2014

[eluser]InsiteFX[/eluser]
Ajax is part of jQuery.