for. I'm not sure about how to 'let ajax get the rendered view' -
could you elaborate on that, or point me to a useful resource?
Apologies if I'm asking for something too big - I don't know what's
involved!
Thanks,
Sharon
On 24 Sep, 12:59, euromark <dereurom...@googlemail.com> wrote:
> i was thinking:http://www.queness.com/resources/html/modal/jquery-modal-window.html
> the model windows
>
> let ajax get the rendered view and open this modal window with the new
> content
> this way you have a preview without annoying new windows popping up
> (every browser handles this differently).
> just a thought
>
> On 24 Sep., 13:54, Urs <ajnur...@gmail.com> wrote:
>
> > Is this u r looking for?
>
> > <?php echo $form->create('Foo', array('target' => '_blank', 'action'
> > => 'edit'));?>
> > <?php echo $form->end('Submit')?>
>
> > Regards,
> > Arjun
>
> > On Sep 23, 6:59 pm, WhyNotSmile <sharongilmor...@gmail.com> wrote:
>
> > > Thanks Euromark. Could you point me to an example of what you mean
> > > and how it works?
>
> > > I can get the information to appear in a new page, I think, but it
> > > needs to have the layout etc as well.
>
> > > Thanks,
> > > Sharon
>
> > > On 22 Sep, 22:33, euromark <dereurom...@googlemail.com> wrote:
>
> > > > 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 <sharongilmor...@gmail.com> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment