Opening views in new window


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.

[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.

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.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.