<div id="content"> <div id="flashmessage">flash message stuff here..</div>
</div> just add "insertion"=>"Insertion.bottom" to you ajaxupdate callback, so response data will be placed under #flashmessage div On Jan 27, 7:52 am, "Jacek" <[EMAIL PROTECTED]> wrote: > Hi all. > I'm working on ajax-powered application and I have problem with flash > messages. Almost all actions in the application works with ajax. I have > div with id=content. Every html code is loaded to this div by ajax > links with "update"=>"content" option. > > The problem is how to embed flash messages into the div#content (this > is main content div in default layout)? I tried to make flash layout > like ajax.thtml (with only content_for_layout variable), but it is not > working off course. > > If it possible another question is how to redirect to an ajax action > after flash message timeout? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
