'onClick' => 'return false;' would do the trick I suppose. :) On Apr 14, 1:02 pm, WhyNotSmile <[email protected]> wrote: > I have a question which may be very basic - I'm not sure whether I've > just tied my brain in knots from thinking about it! Apologies if so. > > I have a form which has various buttons. One of them is a 'Preview', > which pops up a new window (well, a PDF) when clicked. At the moment, > there is some javascript going on, which enables and disables various > buttons when the page is loaded. However, if the Preview button is > clicked, I don't want the page to reload afterwards, because it will > then apply these changes to the buttons, which I don't want... > > Cake seems to insist that I have to go somewhere after form submission > (and for all the other buttons it does a reload of the current page, > which is fine), so is there a way to stop this from happening? > > I hope that makes sense; I'm not sure I've explained it very well, but > as I say, my brain is confused! > > 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 To unsubscribe, reply using "remove me" as the subject.
