Currently, I am using ajax to add an coupon to the cart. This requires a success/error message to display to the user. However, it seems that i'm unable to retrieve this error/success message without a redirect (something ajax does away with) and the message itself is always displayed on the next pageview.
Is there an easy way to work around this?
The message is set using this in the observer:
This doesn't seem to work in the controller (after the event has been dispatched):
$message = Mage::getSingleton('core/session')->getCouponCodeError();