JavaScript reference PHP page data sheet does not refresh the question the newcomer didn't give us a hand.

Source: Internet
Author: User
Tags button type
JavaScript reference PHP page data sheet does not refresh the new couple didn't give you a hand.




Query all

The information will be listed here ...


I use the buttons in the HTML to invoke the method in JavaScript, the PHP page in XMLHTTP is displayed in the following Div frame inside the PHP page content is to take out a table from the database.

Now there is a problem: I am in the current page save and delete operation, use the button to call out the table or the beginning of the data (such as I first press the query button to display 9 rows I saved 1 data and then click the Query button it found the table is still 9 rows) refresh the page and query will not solve You must reopen a browser page to see

And if you don't use JavaScript to invoke PHP pages and put the query PHP code directly on the page, there will be no problem with the deletion of the

The line can be refreshed immediately.

Should be the XMLHTTP in the call caused by the solution! Or there is a simpler way to implement the "click button at the specified location plus

Download PHP Page "method can also!




------Solution--------------------
Xmlhttp.open ("GET", "..") /zuoyefei/qfl_all.php?key= "+math.random (), false); Give it a try.
  • 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.