You could put code at the top of the page that writes to a variable,
----------------
<cflock name="#Application.applicationname#" timeout="30" type="EXCLUSIVE">
<cfparam name="session.pageload" default="0">
<cfset session.pageload = session.pageload + 1>
</cflock>
----------------
depending on the implementation requirements,track per user, or just per
page you would decide where to store the data.
session var,
client var,
db,
cookie.
If it was like a page counter you could just update the count in the db.
If it was per user to change some type of functionality on the page, You
would have to determine where to clear the variable out so as to start the
cycle over.
----------------
<cfif session.pageload gt 1>
page has been loaded more than once
<cfelse>
page has been loaded 1 time
</cfif>
----------------
The cookie would be hard in terms of cleaning up.
Session vars would expire. Client vars could be set up to expire as well.
John Anderson
-----Original Message-----
From: Jay E Wigginton [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 8:52 AM
To: CF-Talk
Subject: browser refresh/reload
Is there a way to determine in CF whether the page has been refreshed or
reloaded? Or maybe a method in JavaScript?
thanks
Jay
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists