Welcome Guest, Not a member yet? Register   Sign In
How to use jQuery with Code Igniter
#2

[eluser]jhayghost[/eluser]
Hello,

I am using jquery and you only need to place the jquery to your public folder then if your using template embed the jquery to your template ex.
Code:
script type="text/javascript" src="<?=site_url('/public/js/jquery.js')?>"
same with your other js. to us the ajax method of jquery
Code:
$.ajax({
   type: "POST",
   url: "/model/function",
   data: "var1/John/var2/Boston",
   success: function(msg){
     alert( "Data Saved: " + msg );
   }
});


Messages In This Thread
How to use jQuery with Code Igniter - by El Forum - 11-05-2009, 12:54 AM
How to use jQuery with Code Igniter - by El Forum - 11-05-2009, 01:43 AM
How to use jQuery with Code Igniter - by El Forum - 11-05-2009, 03:11 AM
How to use jQuery with Code Igniter - by El Forum - 11-05-2009, 08:42 AM
How to use jQuery with Code Igniter - by El Forum - 11-06-2009, 09:17 AM
How to use jQuery with Code Igniter - by El Forum - 11-06-2009, 11:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB