Welcome Guest, Not a member yet? Register   Sign In
Opening views in new window
#1

[eluser]Kirtan[/eluser]
Hi,

How can i open a view in a new windows, say pop-up. I know, there is a html helper anchor_popup. But i want to open it when i submit a form after processing it in controller.
#2

[eluser]Matthew Pennell[/eluser]
You can't decide to open a new window from the server-side code (i.e. the controller) - it has to be done in the HTML. I'm not sure if you can use the target attribute in forms, though - can't say I've ever tried.
#3

[eluser]Kirtan[/eluser]
Thanks buddy,

I've used target attribute and it works fine. I did it manually, but i'm sure it will work with form_open(); too.




Theme © iAndrew 2016 - Forum software by © MyBB