Welcome Guest, Not a member yet? Register   Sign In
closing popup and refreshing popup parent window after form submit
#2

[eluser]slowgary[/eluser]
That's JavaScript, so there's no 'CodeIgniter' way, since CodeIgniter is a PHP framework. The anchor_popup() function, while I'm not familiar with it, probably justs adds "target='_blank'" to the link so that it forces a new window.

I wouldn't recommend putting any sort of JavaScript in your controller, do it in your view. There's not really a "standard" way to do that other than the way you are doing it.

I assume you want to close a window and refresh the window that opened that window. First, you should know that you can only use JavaScript to close windows that were opened with JavaScript. So if you're opening a popup from a main window, this will work. Then in your popup, you'd probably want to do those things in response to an event, so you'd add something like this to your popup window:
Code:
<a >close this window</a>

You'll need to do the reload FIRST, otherwise the window will already be closed and the reload will probably not get executed.


Messages In This Thread
closing popup and refreshing popup parent window after form submit - by El Forum - 07-20-2009, 03:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB