If you file is called MYTAG.CFM then you simply call it with <CF_MYTAG> It can either be in the same folder as the code calling it or in the coldfusion custom tags folder. There is docs for this with CF and in studio.
Russ michaels Macromedia Certified ColdFusion Developer Satachi Internet Development ---------------------------- Tel: 0870 7873610 Tech Support: 0906 9607800 Customer Support: 0709 2300330 Fax: 07092 212 636 www.satachi.com Join our CFDeveloper discussion lists e-mail: [EMAIL PROTECTED] -----Original Message----- From: dnk [mailto:[EMAIL PROTECTED]] Sent: 27 August 2002 16:39 To: CF Mailing List Subject: Re: [ cf-dev ] Detecting connection speed 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] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
