No value from input->post - 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: No value from input->post (/showthread.php?tid=49518) |
No value from input->post - El Forum - 02-22-2012 [eluser]Shiju S S[/eluser] I have the script as Code: $(function() The input is: Code: <div class="ui-widget"> I have the controller frontpage with autocomplete mehod Code: public function autocomplete() I am not getting any value in the $searchitem. Please help No value from input->post - El Forum - 02-22-2012 [eluser]capypara[/eluser] Just to make sure its not an error, is $searchterm supposed to be $searchitem (or the other way round)? No value from input->post - El Forum - 02-23-2012 [eluser]aquary[/eluser] Isn't the $.ajax data in a json format, with keys and values, or a query string? Code: $.ajax({ No value from input->post - El Forum - 02-23-2012 [eluser]InsiteFX[/eluser] Code: <head> No value from input->post - El Forum - 02-23-2012 [eluser]Shiju S S[/eluser] I got it corrected on your help: Thanks. Two corrections were needed. 1. The base url was wrongly used 2. var field was not getting value. Code: [b]<$cript type="text/javascript" charset="utf-8">[/b] Thanks Once again |