While this works, you can consider another alternative as well. As you
know, in JS, most people check for an object existence instead of
checking a user_agent. You can do the same thing in CF as well.

getFunctionList() returns a structure of available CF functions.

You can then examine this to see if Foo, a MX or MX(Whatever is next)
function exists to see if this is CF5 or MX. GetFunctionList() was
introducted in CF5, so this will only work for checking CF5 to MX to
<NEXT>.

As an example: 

<cfif listFindNoCase(structKeyList(getFunctionList(),"getAuthUser")>
        You are running MX, baby!
<cfelse>
        You are running CF5, kiddo!
</cfif>

========================================================================
===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
(www.mindseye.com)
Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

Email    : [EMAIL PROTECTED]
Blog     : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Tony Weeg [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 16, 2003 8:07 AM
> To: CF-Talk
> Subject: disregard last post....
> 
> 
> Server.ColdFusion.ProductName
>  The name of the product, that is, ColdFusion Server
>  
> Server.ColdFusion.ProductVersion
>  The version number for the server that is running, such as 5,0,0
>  
> Server.ColdFusion.ProductLevel
>  The server product level, such as Enterprise
>  
> Server.ColdFusion.SerialNumber
>  The serial number assigned to this server installation
>  
> Server.ColdFusion.Locales
>  The locales, such as English (US) and Spanish (Mexican), 
> supported by the server
>  
> Server.OS.Name
>  The name of the operating system, such as Windows NT
>  
> Server.OS.AdditionalInformation
>  Additional information provided by the operating system, 
> such as the Service Pack number
>  
> Server.OS.Version
>  The version number of the operating system, such as 4.0
>  
> Server.OS.BuildNumber
>  The specific operating system build, such as 1381
>  
> 
> tony weeg
> uncertified advanced cold fusion developer
> tony at navtrak dot net
> www.navtrak.net
> office 410.548.2337
> fax 410.860.2337
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to