In my admin area, I would like to give the user the option to 'Preview' the page they are creating or editing. I just can't quite get my head around how to do it, so wondered if anyone can advise me.
Ideally, here's what I'd like: the user is editing a page in the admin area, and at any time can click a button which says 'Preview'. This opens a new window which shows what the page would look like if the current information was saved. The user can close the window, edit the page some more, and preview it as much as they want. The issue is this: > If I use a 'Preview' button, I can send the current data to the controller > and show a page with that data. However, this doesn't let me open the page > in a new window. I don't really want the user to have to use the back > button, as that interrupts the flow of the process. > If I use a Preview link, I can open a new window, but cannot send the data to > the page for display. Has anyone done this before, and can you suggest how I might go about it? Would I need to use javascript or ajax? I haven't used Ajax before, although I'm happy enough with javascript. Thanks! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
