Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
javascript alert after auth login
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Marcelo Andrade  
View profile  
 More options Nov 9, 7:47 am
From: Marcelo Andrade <mfandr...@gmail.com>
Date: Sun, 8 Nov 2009 17:47:32 -0300
Local: Mon, Nov 9 2009 7:47 am
Subject: javascript alert after auth login
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


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
robustsolution  
View profile  
 More options Nov 9, 10:55 am
From: robustsolution <i...@robustsolution.net>
Date: Sun, 8 Nov 2009 15:55:21 -0800 (PST)
Local: Mon, Nov 9 2009 10:55 am
Subject: Re: javascript alert after auth login
javascript? alert? after Auth
m sorry m not a fan of this kind of debugging issues
m not a fan of classic javascript.... validation... alert...etc

On Nov 8, 8:47 pm, Marcelo Andrade <mfandr...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
O.J. Tibi  
View profile  
 More options Nov 10, 12:29 pm
From: "O.J. Tibi" <ojt...@gmail.com>
Date: Mon, 9 Nov 2009 17:29:31 -0800 (PST)
Local: Tues, Nov 10 2009 12:29 pm
Subject: Re: javascript alert after auth login
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:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcelo Andrade  
View profile  
 More options Nov 11, 12:28 pm
From: Marcelo Andrade <mfandr...@gmail.com>
Date: Tue, 10 Nov 2009 22:28:15 -0300
Local: Wed, Nov 11 2009 12:28 pm
Subject: Re: javascript alert after auth login

Thanks OJ.  In fac I was not clear, but it was a CakePHP specific
question.  I didn't like to use $this->Session->setFlash to output
a welcome message when user logs in, bug just a javascript alert.

But your answer was insightful.  I'm settings a variable to the view
in the UsersController's login method, so I can check it in my view.
It works, besides it's not not the most elegant solution. :-}

Best regards.

--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google