Welcome Guest, Not a member yet? Register   Sign In
Open Jquery Popup from CI Controller?
#1

[eluser]ShawnMA[/eluser]
Could someone point me to an example of how to open a jquery (modal dialog) from a CI controller? In other words, page A passes data to my controller, controller does some processing, then passes the results to page B, but on top of page B I need to open a Jquery dialog box once page B has finished loading. The dialog box may/may not contain some data passed to it from the controller.

Thanks.
#2

[eluser]NeoArc[/eluser]
Use ajax instead in the first page.

Code:
jQuery.post(yourBasepath+'/controller/ajax_method', jQuery('#form_id').serialize(), function(html_data){
   //Modal plugin that shows response. Colorbox?

} );
#3

[eluser]skunkbad[/eluser]
Are you understanding that the modal is not a new window? The modal is actually just hidden html that displays when you want it to, using show().




Theme © iAndrew 2016 - Forum software by © MyBB