How does one implement a custom tag? Still searching the kb though. I wanted to throw this on my server as I am JUST starting to learn CF.
Thanks! Dustin > At 14:57 28/03/2001 +0100, you wrote: >> This is how I'd do this (just double check my maths)... >> >> file: testbandwidth1.cfm >> <cf_testbandwidth2> >> <cfif url.action is "start"> >> <!--- make a whole lot of page content to download ---> >> Your bandwidth is being tested, please wait...<br> >> <cfloop index="cnt" from="1" to="100000"> >> <!-- the quick brown fox jumps over the lazy dog > --> >> </cfloop> >> Bandwidth test nearly completed... >> <cfelse> >> <!--- calculate Kbps ---> >> <cfoutput> >> <cfset elapsedTimeSecs = (now() - url.starttime) > * >> 24 * 60 * 60> >> <cfset kbps = ((url.size * 8) / 1024) / >> elapsedTimeSecs> >> Bandwidth test complete:<br> >> Elapsed time in seconds: #elapsedTimeSecs#<br> >> #kbps# Kbps >> </cfoutput> >> </cfif> >> </cf_testbandwidth2> >> >> file: testbandwidth2.cfm >> <cfparam name="url.action" default="start"> >> <cfif thisTag.ExecutionMode is "end"> >> <cfif url.action is "start"> >> <cfoutput> >> <body onload="javascript: >> location='#cgi.script_name#?action=show&size > =#len(thisTag.GeneratedContent) > # >> &starttime=#urlencodedformat(now())#';"> >> </cfoutput> >> </cfif> >> </cfif> >> >> (yes, I am bored) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
