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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:38:08+00:00 2026-05-13T15:38:08+00:00

I would like to push data from mysql db to div every x seconds.

  • 0

I would like to push data from mysql db to div every x seconds.

at window.setTimeout(update, 60000); – how to pass in the btnStart.click function into it again???
Not too sure about the syntax for passing in function call.

Here’s the code for reference

$('#btnStart').click(function() {

$.ajax({

    url: "ajax.php",

    type: "POST",

    data: 'id=6',

    timeout: 15000,

    beforeSend: function(){ 

    },

    error: function(XMLHttpRequest, textStatus, errorThrown) {
        $("#userstatus").html('Timeout contacting server..');
           window.setTimeout(update, 60000);
    },

    success:  function(output) {                            
        output= jQuery.trim(output);
        $('#userstatus').html(output);

        window.setTimeout(update, 10000);
    },

    complete: function(){

    }

});

<div id="userstatus"></div>

<input type="button" id="btnStart" value="start now">
  • 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-13T15:38:08+00:00Added an answer on May 13, 2026 at 3:38 pm
    window.setTimeout(function(){$('#btnStart').click();}, 60000);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 319k
  • Answers 319k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Its not a decision the user can make in the… May 14, 2026 at 12:06 am
  • Editorial Team
    Editorial Team added an answer var query = from x in Table1.AsEnumerable() orderby x.Field<int>("Priority") select… May 14, 2026 at 12:06 am
  • Editorial Team
    Editorial Team added an answer Anything that works on C# 3.5 should work on C#… May 14, 2026 at 12:06 am

Related Questions

I’m thinking through some database design concepts and believe that creating sample data simulating
I've been coding php for a while now and have a pretty firm grip
Our usage case is a database responsible for accounts, sessions, licenses, etc. — it
I'm brand new at Python and I'm trying to write an extension to an
i would like my windows service (to be written in .NET) to recognize when

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.