dezkit Posted September 6, 2008 Share Posted September 6, 2008 I have this script <?php session_start(); if(isset($_SESSION['views'])) $_SESSION['views']=$_SESSION['views']+1; else $_SESSION['views']=1; echo "Views: ". $_SESSION['views']; echo "<a href=\"\">Refresh</a>"; ?> Is there a way to refresh the page without the page loading, like the content not moving, but just like "fetching" ? Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted September 6, 2008 Share Posted September 6, 2008 Use HTML meta refresh. <meta http-equiv="refresh" content="SECONDS_TO_WAIT_BEFORE_REFRESH;url=URL_HERE"> Quote Link to comment Share on other sites More sharing options...
dezkit Posted September 6, 2008 Author Share Posted September 6, 2008 nooo, i want it like http://www.mediacollege.com/internet/javascript/page/reload.html BUT the page most not move or reload, but the php code is actually executing. Quote Link to comment Share on other sites More sharing options...
dezkit Posted September 6, 2008 Author Share Posted September 6, 2008 Go to www.Esportsea.com and go to any thread that does not require `premium` go to the bottom of the page and press Fetch New Posts. And when somebody posts something, and you press Fetch New Posts, it appears there. Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted September 6, 2008 Share Posted September 6, 2008 AJAX? Quote Link to comment Share on other sites More sharing options...
dezkit Posted September 6, 2008 Author Share Posted September 6, 2008 I don't know Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.