Welcome Guest, Not a member yet? Register   Sign In
Using jQuery with CI
#1

[eluser]blend107[/eluser]
I've read about it in the user guide but I have a hard time figuring out exactly what to do. From what I understand, once you load the Javascript class, jQuery should be loaded too, but when I add the line
Code:
$this->load->library('jquery');
to my controller's index function and refresh, all I get is
Quote:Unable to load the requested class: jquery
So naturally, I suppose I must place the jQuery file somewhere. Where would that be, and how can I access it?
#2

[eluser]Unknown[/eluser]
Try This
$this->load->library("js/jquery");
#3

[eluser]Aken[/eluser]
Read the user guide page. You're loading it wrong.

Or, better yet, don't use the silly jQuery library, and write it manually separately from your PHP logic.




Theme © iAndrew 2016 - Forum software by © MyBB