I've been following BF's articles on MM to create my first CFC.. very easy cfc using 
cgi variable to determine what browser is being used. I cut and past the code I found 
from an article and ran it from the CFMX install on my local machine. It runs for 
about 2 mins and comes back with an Error: any ideas?

"Error occured while processing request: coldfusion cannot determin the line of the 
template that cuased this error"

CFC:

<!--- Browser id component --->
<CFCOMPONENT>
    <!--- Is the browser IE? --->
    <CFFUNCTION NAME="IsIE">
  <!--- Init variable --->
  <CFSET result="No">
  <!--- Look for IE identifier --->
  <CFIF FindNoCase("MSIE", CGI.HTTP_USER_AGENT)>
   <!--- Yep, got it --->
   <CFSET result="Yes">
  </CFIF>
  <!--- Return result --->
 <CFRETURN result>
 </CFFUNCTION>
</CFCOMPONENT>

Calling Page

<CFINVOKE COMPONENT="browser"
 METHOD="IsIE"
 RETURNVARIABLE="result_ie">


<CFOUTPUT>
Your browser is:<BR>
IE: #YesNoFormat(result_ie)#<BR>
</CFOUTPUT>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to