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 4027238
In Process

The Archive Base Latest Questions

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

I have a chat app where it shows users who are online (username +

  • 0

I have a chat app where it shows users who are online (username + profile pic). I have an ajax poll that basically checks to see which users are still online, and refreshes the list automatically. Also, the list is ordered based on last activity.

The way I’ve been doing it is:

  1. Get list of current online users
  2. Clear existing elements
  3. Re-add them (will be ordered correctly since the returned list from step1 is ordered)

This works fine in Chrome, but I notice in Firefox that it is causing a “flickering” effect while the images get re-added.

What is the best way to do this? It seems overly difficult to create an algorithm check which elements exist, if they are in the right order and move them, etc. Thoughts?

  • 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-20T11:04:19+00:00Added an answer on May 20, 2026 at 11:04 am

    How often do you poll to see if users are still online?

    I think the best way may be to give the user records unique ids so you can then check the list of users that were online against the new list of users that are now online.

    fade away the users that have left and fade in any that have logged on.

    It will be a much more elegant solution and it solves the problem you are having.

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

Sidebar

Related Questions

I have an iPhone chat app that checks the username, UDID, and email on
I have a chat program that displays I list of online users. The message
I have written a small chat app that uses mysql + php to facilitate
I used to have a small chat app(which was almost working), that uses PHP,
I have an app that connects to a remote chat server and then the
I have a single page web app that shows real time data using just
I am writing an IOS app that is basically a jabber chat app. I
I have the following app, that's like a chat, so I'm programmatically creating some
For example. if I have a chat app that uses objects like: ChatRoom and
I have BlazeDS running in an instance of Coldfusion 8. A flex chat app

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.