Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3785272
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:30:11+00:00 2026-05-19T11:30:11+00:00

I use flash to tell the user if they logged in correctly or not,

  • 0

I use flash to tell the user if they logged in correctly or not, is there a way to put in the jquery code to fade after so many seconds or is there a way to do it with just the flash command?

Here is what im talking about

def login
        @title = "Log in to Connect my Friends"
        if param_posted?(:user)
            @user = User.new(params[:user])
            user = User.find_by_screen_name_and_password(@user.screen_name,
            @user.password)
            if user
                user.login!(session)
                flash[:notice] = "User #{user.screen_name} logged in!"
                redirect_to_forwarding_url
            else
                @user.clear_password!
                flash[:notice] = "Invalid screen name/password combination"
            end
        end
    end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T11:30:12+00:00Added an answer on May 19, 2026 at 11:30 am

    See http://snippets.dzone.com/posts/show/5271 for several examples of how to accomplish this.

    Another example here: http://bjhess.com/blog/fading-flash-message/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My website doesn't use Flash or any plugins; just javascript (jQuery, Google Maps). It
I know your not really supposed to use Flash and SWF's in a Sencha
In Flash Builder (flex 4) I try to use next code to set selected
Why do people use flash when uploading files, instead of just a normal upload
as you all know that if we use flash object in web page in
We are working on a website which is small but it use Flash Navigation,
Does websites created by Flex Builder works on every browsers that use Flash ?
In one web page we use a flash upload control but becouse a flash
SPI subsystem sitting between BCM7358 and SPI NOR flash use B-SPI module to perfrom
I want to call a web page from Flash and use the data returned

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.