[SOLVED] AJAX jquery getting data from php function - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: [SOLVED] AJAX jquery getting data from php function (/showthread.php?tid=29983) |
[SOLVED] AJAX jquery getting data from php function - El Forum - 04-28-2010 [eluser]SPeed_FANat1c[/eluser] Hi, probably this is simple, but I can't find how to do it, I think this will be faster if I post it here. So there is my view file: Code: <sc+ript src="/plotai/js/jquery-1.3.2.min.js" ></sc+ript> And there is controller: Code: <?php So, how can I get the data for $('.test').live('click',function() ? Actually in real project the retrieve function updates database and redirects to other function depending on what the filter is. But I want use AJAX, so redirecting misfits here. Javasrictp must get the filter and depending on it load the appropriate function in the controller. [SOLVED] AJAX jquery getting data from php function - El Forum - 04-28-2010 [eluser]danmontgomery[/eluser] Code: success: function(data){ [SOLVED] AJAX jquery getting data from php function - El Forum - 04-28-2010 [eluser]SPeed_FANat1c[/eluser] thanks |