Close a fancybox or redirect to the parent page in the controller - 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: Close a fancybox or redirect to the parent page in the controller (/showthread.php?tid=59163) |
Close a fancybox or redirect to the parent page in the controller - El Forum - 08-31-2013 [eluser]Unknown[/eluser] Hi, I need help. I use fancybox to modify a form. After submission of the form and processing in the controller, I would like to close the fancybox or simply display the parent page. Someone has an idea how to do this. Thank you for your answers. Close a fancybox or redirect to the parent page in the controller - El Forum - 08-31-2013 [eluser]gummiforweb[/eluser] Did you put your form in a iframe or just a div? to close a fancybox, there's a fancybox function you can call. Code: $.fancybox.close(); if it's in a iframe, use Code: parent.$.fancybox.close(); Reference: Fancybox API Close a fancybox or redirect to the parent page in the controller - El Forum - 10-03-2013 [eluser]Unknown[/eluser] it works :-)! Thx |