Home  >  Article  >  Backend Development  >  PHP JS code demonstration of XMLHTTP refreshing remote data (supports Chinese)_PHP tutorial

PHP JS code demonstration of XMLHTTP refreshing remote data (supports Chinese)_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:03:49996browse

xmlhttp, no refresh sound, no funnel mark, the best effect, but it has high requirements on the browser. Fortunately, my application is just an accessory function, so the user does not need to turn on this control... Finally Decided to adopt this plan

I wrote a test program, the code is as follows for your reference:
==test2.php=================
session_start();
echo "The current time is:".date("Y-m-d H:i:s ",time());
?>

==eg4.php==================






Data loading


In this way, when you run eg4.php, the current time will appear on the page and refreshed every 2 seconds. There will be no progress bar and no small funnel mark

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/630937.htmlTechArticlexmlhttp, no refresh sound, no funnel mark, the best effect, but it has high requirements on the browser. Fortunately My application is just an accessory function, so the user does not need to turn on this control...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn