![]() |
CI + AJAX result Refresh message - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html) +--- Thread: CI + AJAX result Refresh message (/thread-57419.html) |
CI + AJAX result Refresh message - El Forum - 03-13-2013 [eluser]slyover3[/eluser] Hi guys, I have a big problem, are days that i trying to resolve this problem but I don't know as do. I want to refresh my message when I insert into database a message. For insert with ajax it work perfect. Controller: Code: function index(){ Model "user_model": Code: function reload_model($user_id) { View: Code: [removed] please help me CI + AJAX result Refresh message - El Forum - 03-13-2013 [eluser]InsiteFX[/eluser] Code: redirect('controller/method', 'refresh'); CI + AJAX result Refresh message - El Forum - 03-13-2013 [eluser]slyover3[/eluser] [quote author="InsiteFX" date="1363190788"] Code: redirect('controller/method', 'refresh'); thank you for reply but, redirect work with controller/view, no method and if I using redirect is not ajax, but a simple refresh of the page. CI + AJAX result Refresh message - El Forum - 03-14-2013 [eluser]TheFuzzy0ne[/eluser] I'm not sure I understand you, but to refresh the page using Javascript, you would do something like: Code: document.location.reload(true) CI + AJAX result Refresh message - El Forum - 03-14-2013 [eluser]slyover3[/eluser] I don't want refresh page, i would like using ajax for reload my message without refresh the page. Thank you ![]() |