![]() |
Reload Function
Hi, i have a graph on a page that has two options, if you click "sign up" it shows how many people signed up in the last 10 days.
If you click "login" it shows you how many people logged in the last 10 days. Here is my delima, it defaults to "login" when i click signup the page reloads but graph does not change until i click the refresh in the browser (my guess is that at first it is getting it from cache) when click refresh or f5 then it changes the graph this happens vice versa too, the graph does not change content until i press f5 or refresh the browser. So what i did is i did a function. Code:
<script>Code:
<a href="<?=$_SERVER['PHP_SELF']?>?gra=sign" onClick="reloadthepage()">Sign Up</a> - <a href="<?=$_SERVER['PHP_SELF']?>" onClick="reloadthepage()">Login</a></div><img src="mygraph.jpg">Any ideas here, thanks... |
Try:-
onclick="window.location.reload(true)" Or try specifying the page's href to ensure that the page is reloaded from the server: window.location.reload(location.href); Quizmaster: What character in A.A.Milne's "Winnie The Pooh" is named after his son? Contestant: Pooh. |
unfortunately that did not work either, so im not sure what the deal is. Im lost on this one but i will dig some more and see if i can find something to work, i dont know why it is not working.
|
Quote:
|
Untested...
But with no reloadthepage(), try to have a "different image" for same page? Then I guess this would be easier be done through PHP, which look like the last line below: PHP Code:
|
| All times are GMT +1. The time now is 12:53 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.