Welcome Guest, Not a member yet? Register   Sign In
Jquery library not loading
#1

[eluser]Pedro Luz[/eluser]
hi,

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

gives:

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

any ideas?
#2

[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.
#3

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

#4

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

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




Theme © iAndrew 2016 - Forum software by © MyBB