Siegfried, I've used that very useful article to get my head around the basics and I have then move on some distance since then.
That article only deals with opening a form and submitting it showing any error then having it close if no errors. What I have created is a whole controller's worth of actions within a single modal window (Index, Add, Edit, Delete). In my opinion I have also implemented ModalBox much better by adjusting how links and forms are submitted within the window so that ModalBox does the hard work of displaying the spinner whilst the content is updated and then resizes the window to accommodate the new content (namely doing away with the ajax->form() and $ajax->link commands, which are shortcuts to prototype ajax calls, in favour of an onclick event calling Modalbox.show()). This does away with the requirement for custom javascript functions such as the suggested closeModalbox(). I plan to write an article about this myself and run it past the author of the above article when I have got my issues resolved. So back to the original question ... how is form data stored in between Ajax calls so that even after clearing $this->data it is reappears when next calling a form-type action (add or edit)? Regards, Paul. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
