hello..
i want to write code for refresh only division part which is in page. why because i am fetching images from database randomly. when we refresh the page the image change randomly.
so.....i want to do refresh only division part every 1min. how to do?
muralibobby2015
17
Posting Pro
Recommended Answers
Jump to PostYou can just use a meta refresh on the page:
<meta http-equiv="refresh" content="60;url=index.php">
The other way to do it would be to use the header function of PHP and put in header('refresh: 60');
Jump to PostYou can do this with AJAX and JavaScript:
# <script src="ajax/moniter/moniter.js" type="text/javascript"></script> # <body onload="moniter();"> # <div id="moniter"> # # </div> # </body
# // JavaScript Document # var xmlHttp_moniter # # function moniter() # { # xmlHttp_moniter = GetXmlHttpObject_parcel() # if(xmlHttp_moniter == null) …
All 6 Replies
zortec
11
Junior Poster
muralibobby2015
17
Posting Pro
zortec
11
Junior Poster
muralibobby2015
17
Posting Pro
zortec
11
Junior Poster
diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.