Hi. I have an order form and would like to show a summary in a Modalbox box with the options to cancel or confirm the order. Connecting the Modalbox to the onClick function of the form submit button (as below) does not seem to work, as it sends the user off to a new page instead of showing the page in a Modalbox. Any ideas of how to do this?
Not working: <?php echo $form->end ( array( 'label' => 'Granska beställningen', 'onClick' => "Modalbox.show( '/orders/add' );" ) ); ?> --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---