Ask a very simple static page Ajax poll Question _php tutorial

Source: Internet
Author: User
Ask a very simple static page Ajax polling question





I'll answer that.




Website Construction and Solution
The first knowledge of Ajax, there are many puzzled.
The page is automatically generated once static 20 minutes, assuming that the time a votes is 100, to 20 minutes after the time B has 3 people vote, again generate static when the number of votes becomes 103.
I want to know, suppose m1,m2,m3, three people to open the browser by the line to vote, M1 open the static page after the display is 100, after the cast is no more than 101. After M2 open the browser, at this point in the M2 static page The number of votes is 100 or 101? In other words, when the server is not re-static, M2 See the static page is the number of votes a time or M1 after the vote.
If M2 See is 101 votes, that period is how to pass value. Thank you!

Website Construction and Solution
You can also use Ajax to return the total number of votes in the database at the same time.

Website Construction and Solution
Of course you can.

Website Construction and Solution
Has generated a static, how is the number of votes in this constant variable to be changed?

Website Construction and Solution
With JS Ah, send an asynchronous request to the background script, after processing to return the relevant data, in the callback function dynamically updated to display the div~

Website Construction and Solution
With Ajax, you can access your dynamic pages and transfer the data as soon as an event is available. You can also accept data

Website Construction and Solution
With the landlord asked, I also want to know ~ ~ ~

Website Construction and Solution
OK, I get it. Thank you!


http://www.bkjia.com/PHPjc/632509.html www.bkjia.com true http://www.bkjia.com/PHPjc/632509.html techarticle ask a very simple static page Ajax voting questions I came to answer the site of the idea and solution to the first knowledge of Ajax, there are many puzzled. The page is 20 minutes to automatically generate a static, assuming the time a number of votes ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.