Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

checking for page load

Status
Not open for further replies.

FALCONSEYE

Programmer
Jul 30, 2004
1,158
0
0
US
Does anybody know of a method to check for page load time?
I have the following code

<cftry>
<cfhttp url=" method="post" timeout="5" throwonerror="yes">
<cfhttpparam name="refresh" type="url" value="1">
</cfhttp>
<cfcatch type="any">
<cfmail from="error@mysite.com" to="me@mysite.com" subject="Page Load Exceeds 60 secs">
WARNING: page load exceeded 60 seconds!
<cfdump var="#cfhttp#">
</cfmail>
</cfcatch>
</cftry>

However, this doesn't seem to work. Thanks in advance


 
i have been using
startTime = getTickCount();
in my Application.cfm or in the

onRequestStart method in Application.cfc

and close it with
endTime = getTickCount();
in your OnRequestEnd.cfm or
the onRequestEnd method in Application.cfc

then you can code
totalTime = endTime - StartTime then

if totalTime GTE whateverTime
run this code....




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top