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

  • Home
  • SEARCH
  • 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 1044901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:54:05+00:00 2026-05-16T15:54:05+00:00

So for example I click a button what will send something to the database

  • 0

So for example I click a button what will send something to the database after 1 minutes, but I want to send it also if I leave the page 🙂

So if I leave the page when 30 seconds left from the 1 minutes the countdown will continue until reaches 60 seconds, then sends the data to the database.

Hope it’s clear. I think that I should use for this SESSION‘s but please let me know if you know the answer, or anything helpful 🙂

example: on http://www.travian.com/, when when you start building something, you get a countdown “will be finished in xx:xx:xx”; yet you don’t need to keep the browser open – the countdown still runs on the server, even if you log out.

Or lets say a real life example:

Imagine a blogging system like wordpress, where I write 10 posts a day but I want to show for the users only 5/day.

Or I want to show to users at 8:00 A.M.

Or another one taken from travian:

Imagine a game where you can create troops, but to create troops you need to wait because life’s not easy :D, so for a troop you need to wait 1 minutes.

  • 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-16T15:54:06+00:00Added an answer on May 16, 2026 at 3:54 pm

    This is impossible. The user might leave the page because their internet connection failed or because there’s a power outage, at which point there’s no way to have them send the information to the database.

    What you can do is store the data in the database immediately, with a “do not open before” timestamp to simulate a one-minute delay, and add the additional constraint to all requests against that table:

    WHERE createDate < NOW()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is it possible that when I click a button 2 forms will show but
Lets say for example: $(.button).click(function() { $.post(commandrunner.php, { param1: 'value', param2: 'value2', param3: 'value3'
Take the example I have setup at http://jsfiddle.net/vEF6y/ Click on the 'add item' button
I am creating an application where a user will click a button on form1,
I have a web page with one button and one div. If you click
For example, when someone clicks on a button.
jsfiddle with example Click a county name to see it's crest appear. I am
Javascript jQuery event handling If on event (for example 'click') bound one function for
Can hover and click functions be combined into one, so for example: click: $('#target').click(function()
about click and submit example below: <form action=url method=post> <input type=text id=input1/> <input type=submit

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.