In you ajax submit you can update several div's, so you can have part updating the side bar (no error) or redraw your form. you can either have 2 "views" and you render the one appropriate to the case, of a single view with a conditional update:
Hope that helps On Aug 10, 7:36 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > What I am trying to do is pretty simple, at least in theory. I have a > bunch of product pages, and to add a product to your shopping cart, > you must select a color for the product and a quantity. Then, when you > hit 'add to cart', the form submits the data, and then updates a mini > cart in the sidebar with the product just added. > > My problem is if there is an error in the form submission. For > example, if a user enters an invalid value for the quantity, I want an > error message to appear below the cart area. However, what is > currently happening is that the mini cart is still in focus as a > result of the ajax $options['update'] array key. > > What often ends up hapenning is that the little cart area will become > populated with much more than just the cart info. This happens when I > try to request another action. > > Is there a way to change the div that ajax will update, or even > abandon the ajax request and reload the page? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---