Hi Marcelo,

Since you were saying "Javascript alert box", I guess this wouldn't be
a CakePHP specific question.

Anyway, let me answer (using jQuery, of course)

1.) Set aside a div (or any container you deem fit) on your layout to
contain the $session->flash('auth') message. Place an ID for this div.
2.) Style this div like display: hidden
3.) On jQuery document.ready, get the contents of this div, and put it
in an alert box as you would in normal Javascript.

Cheers,
OJ

On Nov 9, 4:47 am, Marcelo Andrade <mfandr...@gmail.com> wrote:
> Hi there,
>
> Maybe it's a newbie question, but what's the proper way to
> show a javascript alert after a successfull auth login?
>
> Best regards.
>
> --
> MARCELO DE F. ANDRADE
> Belem, PA, Amazonia, Brazil
> Linux User #221105
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to