i use ajax and display it beneath the form
with the same technique you can open it in a new window as well


On 22 Sep., 22:56, WhyNotSmile <[email protected]> wrote:
> My site has the usual Page Edit page in the administration area, but
> I'd like to add a 'Preview' button, which will open the page in a new
> tab or window.
>
> I've added 2 buttons:
>  Submit (the usual one), which saves the data and redirects back to
> the pages index, and
>  Preview, which should take the POST data and show the page in a new
> window, but also leave the original form intact in the original
> window.
>
> Is there a way that I can get the Preview action in the controller to
> render the view in a new window?
>
> Thanks!

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to