I would hate to hard code all that data inside the UDF.  I'd much rather see
a cached XML file with the information and a community site where people can
put in new information and the UDF can grab it as needed (referesh every day
or so).

Sam


----------------------------------------------
Blog:  http://www.rewindlife.com
Chart: http://www.blinex.com/products/charting
----------------------------------------------



> -----Original Message-----
> From: Matt Liotta [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 08, 2003 12:38 PM
> To: CF-Talk
> Subject: Re: Can this be done?
>
>
> This would be a bad idea for a community implemented UDF. *hint* *hint*
>
> Here is the idea...
>
> Someone writes up a quick UDF shell something like the following.
>
> <cffunction name="getSearchQuery" returntype="string">
>       <cfargument name="referer" type="string" required="true">
>       <!--- pick out the domain from the referer ---!>
>       <cfset var domain = REFind()>
>       <cfswitch expression="#UCase(domain)#">
>               <cfcase value="GOOGLE.COM">
>                       <!--- return the search query --->
>                       <cfreturn REFIND()>
>               </cfcase>
>       <cfswitch>
> </cffunction>
>
> Then a bunch of different communities pick a search engine and write
> the cfcase for it. Before you know it all the major search engines will
> be supported. Anyone interested?
>
> Matt Liotta
> President & CEO
> Montara Software, Inc.
> http://www.MontaraSoftware.com
> (888) 408-0900 x901
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com

Reply via email to