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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:44:06+00:00 2026-05-18T00:44:06+00:00

I have got a page on a website, that works similar to a reverse

  • 0

I have got a page on a website, that works similar to a reverse auction. It has a javascript countdown timer that runs down depending on how long the auction is. When it hits zero the auction ends and page refreshes.

All works like a dream, but the problem is if a bid is put in I wanted the page to refresh displaying that bid, and update many other elements.

The site currently does this by checking a php file via flash and when flash notices the change refreshes the page. This is fine, but we wont to remove flash and only use javascript so we don’t have any problems running the site on iPhones/iPads and other mobile devices.

So, after a long winded build-up I need a solution, be this AJAX or another method, any help more than welcome here…

Thanks in advance

  • 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-18T00:44:07+00:00Added an answer on May 18, 2026 at 12:44 am

    You should create a div id for showing the bid amount. And use jQuery to update the amount via AJAX call as done below.

    setTimeout('update_amount()', 1000);
    
    function update_amount(){
            var amt = $("#amount").html();
            $.post('ajax_file.php?a='+amt, function(data){
            if(data!=''){
                $('#amount').html(data);                
            }
    

    Here the current value displayed in the page is stored into amt. Then this value is passed to the php file via AJAX as post. You will have to do the procedures to check whether the amount has changed in the mySql table and if changed just echo the new amount in that php file. That amount will be updated in the amount div id in the current page.

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

Sidebar

Related Questions

I've got a website that has windows authentication enable on it. From a page
I have got a form that posts values to a page in a wizard.
I have a dynamic drop down box which calls another PHP page. I've got
I have a Visual Studio 2010 project with a Master Page that works fine.
I'm currently working on a website that works without any javascript. I'm going to
it's a really weird thing - i have a website that works perfectly in
On my page in IE8, I have got some text which gets changed through
I have a standard textbox and I've got jQuery on the page. I want
I have several pages to do with several table on each page. I've got
I have the following problem. I got two forms on my web page. On

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.