By using JQuery, we can remove these after intended time period.
The following example removes the cakePHP flash message after 5 seconds time period.
$(document).ready(function() {
$('#alert_messages').animate({opacity: 1.0}, 5000).fadeOut();
});
Nice Solution...
ReplyDeleteThis is what i was exactly looking for.It has made my day...
Superb ! very useful post. Thank you so much!
ReplyDelete