Welcome Guest, Not a member yet? Register   Sign In
how to install Jquery in CodeIgniter "Ajax"
#1

[eluser]Mr.CodeIgniter[/eluser]
i want use jquery in my CodeIgniter .

and ajax ,

please i want Explane to it ( how to use ajax )
#2

[eluser]tkyy[/eluser]
really general question, but you need to download jquery.js (from jquery.com) and include it into the header of your views. then, in either a seperate file that you include after jquery.js, like ready.js or something like that respectively named for the viewfile or at the bottom of the view itself..

Code:
$().ready(function(){
alert('jquery is loaded');
})

if its on the page you need to put it in [removed] tags. if you want to make ajax calls i suggest you look at

[code]
$.post
[code]

and

[code]
$.ajax
[code]

$.get has cacheing problems generally with internet explorer, i avoid it generally.




Theme © iAndrew 2016 - Forum software by © MyBB