Welcome Guest, Not a member yet? Register   Sign In
Loading jquery library
#1

[eluser]Babulal Kumawat[/eluser]
hello all,
I am using codeigniter. I want to use jquery for my view setting.
so anyone can help me in loading jquery library in controller.
waiting....
#2

[eluser]Sudz[/eluser]
Have you created jquery class in library folder?

CI does not find jquery Class neither in system/library folder nor in application/library folder.
#3

[eluser]Babulal Kumawat[/eluser]
I am facing same problem.
#4

[eluser]Sudz[/eluser]
sorry actually i am asking you dear.

Have you created jquery class in library folder?

CI does not find jquery Class neither in system/library folder nor in application/library folder.
#5

[eluser]Babulal Kumawat[/eluser]
No i did not created any jquery class in library folder.
#6

[eluser]Sudz[/eluser]
So how can you load jquery library ? dude..

CI loads only existing class library.
#7

[eluser]Babulal Kumawat[/eluser]
You mean I have to create jquery class in library folder.
Then i can load it in my controller.
#8

[eluser]Sudz[/eluser]
ya dude,
If it is exist in library folder then no need to create it.
#9

[eluser]InsiteFX[/eluser]
application
assets
-- css
-- js - place jQuery in here
-- img
-- images
-- media
system
index.php

In your HTML header:
Code:
// remove $ in script tags and replace with s
    <$cript type="text/javascript" src="&lt;?php echo base_url();>assets/js/jquery.js"></$cript>

InsiteFX
#10

[eluser]Babulal Kumawat[/eluser]
thank you InsiteFX,
your answer is really good .
I have solved my problem by your answer.
thank you once again :-)




Theme © iAndrew 2016 - Forum software by © MyBB