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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:09:53+00:00 2026-05-12T11:09:53+00:00

Is there anyway with jQuery to pop up a message to the user that

  • 0

Is there anyway with jQuery to pop up a message to the user that the database record that they are in, has been changed and that they need to refresh in order to pick up changes?

So basically, if they are viewing a record, walk away and then come back, where the user is presented with a message that the record they are currently viewing has changed, and that they should refresh the page?

  • 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-12T11:09:53+00:00Added an answer on May 12, 2026 at 11:09 am

    Sure, this very site does it.

    How it roughly works:

    1. Using setInterval and $.ajax(), the client polls a backend script ever X seconds.
    2. The backend script checks the database and returns some sort of data – JSON is likely preferable in this case – indicating whether or not
    3. On the client side, the JavaScript parses the response from the server and acts accordingly.

    Some caveats:

    • If there is any sort of traffic, this has the capability to bring a server to its knees. Take great care when determining the frequency of the polling.
    • I suggest limiting the total number of times per page load that the script is able to poll the server (e.g. after 20 times, the script stops polling). This way, you won’t waste cycles when users leave the page loaded in their browser and walk away, for example.

    Alternatively, you could look at Comet, which is more technically difficult and requires a great deal of server setup/sysadmin type knowledge to get working properly.

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

Sidebar

Related Questions

Is there anyway to interact with the DOM using jQuery that when a user
Is there anyway that I can check if an existing element has event handlers
Is there anyway to make a jQuery UI Datepicker unclickable, so that it's essentially
Is there anyway of handling images from database to jquery image swapper or any
Is there anyway I can detect via jQuery if a select form element is
Is there anyway i can fool the Jquery .load Same origin policy? The closest
Is there any way that I can use JavaScript (and jQuery) to create a
Is there anyway to achieve this that works cross-browser? (Keeping solutions to pure JavaScript,
is there anyway I can use jQuery to lock out a div, ie, make
is there anyway of getting the onchange to work with jquery? Right now i'm

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.