![]() |
Help with adding a jquery alert box after form is correctly submitted - 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: Help with adding a jquery alert box after form is correctly submitted (/showthread.php?tid=30234) |
Help with adding a jquery alert box after form is correctly submitted - El Forum - 05-18-2010 [eluser]LuckyFella73[/eluser] As far as I know you have to load the database library in your callback function even if you allready loaded it in your controller constructor because only the callback function is called in your case and not the whole controller. Help with adding a jquery alert box after form is correctly submitted - El Forum - 05-18-2010 [eluser]iwillsoarlikeaneagle[/eluser] Understood! Ok! Thanks for all the help man! Really! Keep it up! :-) Help with adding a jquery alert box after form is correctly submitted - El Forum - 12-09-2010 [eluser]noobs[/eluser] heloo i use your source code to my application but did'nt work for me....to insert data in my table can you tell me how...insert data in table use your script...thx before...frend Help with adding a jquery alert box after form is correctly submitted - El Forum - 12-10-2010 [eluser]LuckyFella73[/eluser] So everything works besides saving the submitted data into your table? Please post your controller and model code then I can have a look into that. Help with adding a jquery alert box after form is correctly submitted - El Forum - 12-10-2010 [eluser]noobs[/eluser] yup...is working..besides insert data to my table...if i load my model in controller and i click data save...data still empty on my table... -- controller -- Code: function save_user() -- model -- Code: function add_user() Help with adding a jquery alert box after form is correctly submitted - El Forum - 12-10-2010 [eluser]LuckyFella73[/eluser] I have never seen this usage in models and can't find it in the user guide either: Code: $this->db->set('user_name',set_value('user_name')); // set_value Try the following code and see what you get. Note that you'll have to edit the lines around "$db_data = array(" according to the name attributes of your input fields! Code: # controller: Code: # model: Help with adding a jquery alert box after form is correctly submitted - El Forum - 12-10-2010 [eluser]noobs[/eluser] still not working my bro... i try to your script but same..nothing happen... Code: // Js in <head></head> Code: // Form thx your suggestion bro.... i am confuse use jquery in codeigniter ![]() Help with adding a jquery alert box after form is correctly submitted - El Forum - 12-10-2010 [eluser]LuckyFella73[/eluser] Can you explain more detailed where the code breaks? I mean, when submitting the form do you get the json response "Saving data success" while the data is not saved into DB or it's just that nothing happens? Or do you allways get the response "Saving Failed" ? Help with adding a jquery alert box after form is correctly submitted - El Forum - 12-10-2010 [eluser]noobs[/eluser] nothing happens bro....if i click submit button... |