"If your form is in the div you update, just send back the form with the modification. Your original form will be updated by the one you send back.. "
The issue is that in this one case I DON'T want the form to be sent back at all, I want another completely different page to load instead. You gave me the answer I was looking for earlier (although I didn't understand it at the time). The controller evaluates the ajax request, and if it decides that a redirect is required, rather than simply sending back html for the target div, it sends a script block to redirect the browser to a new url. To clarify, if a redirect is not required, the view constructs the new html form, which is loaded into the target div. If a redirect is required, the view constructs some html just containing a javascript redirect, which is loaded into the target div, and the script executes, redirecting to the new page. This is all I was after, although I probably didn't explain myself that well! Thanks for all your help with this. David --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
