ColdFusion Tutorial
Refresh a page using date/time
If you add current date/time to your URL's, links, action etc. the browser will think this is a new page and call refresh each time.
Example:
<a href = "thispage.cfm?#urlencodedformat(now())#">
URLEncodedFormat
Generates a URL-encoded string. For example, it replaces spaces with %20, and non-alphanumeric characters with equivalent hexadecimal escape sequences. Passes arbitrary strings within a URL (ColdFusion automatically decodes URL parameters that are passed to a page).
Now
Gets the current date and time of the computer running the ColdFusion server.
ColdFusion Tutorial test
Refresh a page using date/time
No test is available or implemented for this ColdFusion Tutorial.
User Comments: 4
amatreurdd
Well done, this site is really great. Just wanted to say hello, keep up the good work!
Refresh a page using date/ time is perfect for flash forms
I have recently been working on a complete project tracking application for a client which is based on Coldfusion Flash Forms. I just wnated to let you know that this has saved me so much time. Because the application is completely dynamic and because the nature of flash form caching generates a expiration message when the timeout is reached, this is the best workaround.
As far as javascript - I changed all of my code for the error pages from <A HREF="javascript:history.go(-1)">Return to previous page</A> to using a redirect page with a cflocation tag and this method. Without it, a page previously previewed shows the form expiration info.
THANK YOU, THANK YOU, THANK YOU
Might be disabled
Javascript might be disabled on the browser maybe.
Why not use JavaScript
Why not use JavaScript
