![]() |
How to pass a record to different fields using JQUERY - 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: How to pass a record to different fields using JQUERY (/showthread.php?tid=40763) |
How to pass a record to different fields using JQUERY - El Forum - 04-18-2011 [eluser]afro[/eluser] I am trying to load a record from the db using AJAX to pick the value of the staffid field using the .blur() function pass to the controller and to the model to pick a record which has its StaffId equal to the staffid value passed from the view. am getting the following error. Code: A PHP Error was encountered The controller function as as follows Code: public function load_staff_data() And the model is as follows Code: public function get_staff_data($staffid) The AJAX function is here below Code: [removed] How to pass a record to different fields using JQUERY - El Forum - 04-18-2011 [eluser]danmontgomery[/eluser] Post where you call the view, and what's in the view |