September 10th, 2003, 11:55 PM
Is there any way to just make this statement execute just once?
Everytime I load the page is continuously reloads forever. How do I just make it reload on entry once?
November 28th, 2003, 03:31 AM
December 5th, 2003, 05:30 AM
But each of the methods in this page provide a method which will reload/refresh the page continually after a given time interval.
Can somebody help??
December 5th, 2003, 05:38 AM
Welcome to the Forums Ian!
The most relaible way to do it, would be to set a cookie, and make a function that searches for the cookie, and if present, doesn't refresh, but if it's not there, make on and then refresh...
This, however, is a much easier way, allthough it is sort of cheating...
Means it won't refresh again for a few days after initial load!!!!
December 5th, 2003, 08:10 AM
Thanks for the quick reply but it doesn't seem as though the cheat actually works otherwise it would have been ideal.
I don't think that using the setTimeout function actually performs the initial reload of a page when first entered. It will only do it after the time provided - I need that initial refresh/reload.
December 8th, 2003, 04:31 AM
Use LAMP, WAMP or XAMP
there is only one way out of this..................
use LAMP Linux Apache Mysql Php
or WAMP W is windows
or XAMP X is Mac OS X
in LAMP you can reinvent the universe.