Re: Invalid Token in IsDefined
3 cfesleif IsDefined('Request.SelectedDay') cfelseif you spelled it wrong. Don't worry, it's a Monday, I can understand. --=@ greg @=-- - Original Message - From: "Todd Ashworth" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Monday, January 15, 2001 10:16 AM Subject: Invalid Token in IsDefined OK .. I'm getting an error on line 3 of this custom tag snippet. ColdFusion says that the '(' is an invalid token. If I comment out lines 3 and 4, the error goes away and the code works perfectly (except for the condition handled by lines 3 and 4). The syntax is correct as far as I can tell. I get this error whether or not Request.SelectedDay exists. Any ideas? 1 cfif IsDefined('Caller.#Attributes.SelectedDay#') and Attributes.SelectedDay neq "ThisIsJustAMadeUpNameSoWeDoNotConflictWithAnyRealVariableNames_Day" 2 cfset Attributes.SelectedDay = Val(Evaluate('Caller.#Attributes.SelectedDay#')) 3 cfesleif IsDefined('Request.SelectedDay') 4 cfset Attributes.SelectedDay = Request.SelectedDay 5 cfelse 6 cfset Attributes.SelectedDay = Day(Now()) 7 /cfif Here's the full error message: Just in time compilation error Invalid token found on line 83 at position 20. ColdFusion was looking at the following text: ( Invalid expression element. The usual cause of this error is a misspelling in the expression text. The last successfully parsed CFML construct was a CFESLEIF tag occupying document position (83:1) to (83:9). Todd Ashworth ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Invalid Token in IsDefined
Typo? cfesleif S and L are switched... -Cameron Cameron Childress elliptIQ Inc. p.770.460.7277.232 f.770.460.0963 -Original Message- From: Todd Ashworth [mailto:[EMAIL PROTECTED]] Sent: Monday, January 15, 2001 10:17 AM To: CF-Talk Subject: Invalid Token in IsDefined OK .. I'm getting an error on line 3 of this custom tag snippet. ColdFusion says that the '(' is an invalid token. If I comment out lines 3 and 4, the error goes away and the code works perfectly (except for the condition handled by lines 3 and 4). The syntax is correct as far as I can tell. I get this error whether or not Request.SelectedDay exists. Any ideas? 1 cfif IsDefined('Caller.#Attributes.SelectedDay#') and Attributes.SelectedDay neq "ThisIsJustAMadeUpNameSoWeDoNotConflictWithAnyRealVariableNames_Day" 2 cfset Attributes.SelectedDay = Val(Evaluate('Caller.#Attributes.SelectedDay#')) 3 cfesleif IsDefined('Request.SelectedDay') 4 cfset Attributes.SelectedDay = Request.SelectedDay 5 cfelse 6 cfset Attributes.SelectedDay = Day(Now()) 7 /cfif Here's the full error message: Just in time compilation error Invalid token found on line 83 at position 20. ColdFusion was looking at the following text: ( Invalid expression element. The usual cause of this error is a misspelling in the expression text. The last successfully parsed CFML construct was a CFESLEIF tag occupying document position (83:1) to (83:9). Todd Ashworth ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Invalid Token in IsDefined
Might be a typo, check Line 3, CFESLEIF should this not be CFELSEIF?? Is this a type in the code or the e-mail??? Jason Lees National Express Ltd. E-mail:[EMAIL PROTECTED] -Original Message- From: Todd Ashworth [mailto:[EMAIL PROTECTED]] Sent: 15 January 2001 15:17 To: CF-Talk Subject: Invalid Token in IsDefined OK .. I'm getting an error on line 3 of this custom tag snippet. ColdFusion says that the '(' is an invalid token. If I comment out lines 3 and 4, the error goes away and the code works perfectly (except for the condition handled by lines 3 and 4). The syntax is correct as far as I can tell. I get this error whether or not Request.SelectedDay exists. Any ideas? 1 cfif IsDefined('Caller.#Attributes.SelectedDay#') and Attributes.SelectedDay neq "ThisIsJustAMadeUpNameSoWeDoNotConflictWithAnyRealVariableNames_Day" 2 cfset Attributes.SelectedDay = Val(Evaluate('Caller.#Attributes.SelectedDay#')) 3 cfesleif IsDefined('Request.SelectedDay') 4 cfset Attributes.SelectedDay = Request.SelectedDay 5 cfelse 6 cfset Attributes.SelectedDay = Day(Now()) 7 /cfif Here's the full error message: Just in time compilation error Invalid token found on line 83 at position 20. ColdFusion was looking at the following text: ( Invalid expression element. The usual cause of this error is a misspelling in the expression text. The last successfully parsed CFML construct was a CFESLEIF tag occupying document position (83:1) to (83:9). Todd Ashworth ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Invalid Token in IsDefined
You misspelled "elseif" on line 3. - Sean ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Invalid Token in IsDefined
Your tag in line 3 reads "cfesleif" - it should be "cfelseif". Don't you just love those spelling errors! Bob -Original Message- From: Todd Ashworth [mailto:[EMAIL PROTECTED]] Sent: January 15, 2001 10:17 AM To: CF-Talk Subject: Invalid Token in IsDefined OK .. I'm getting an error on line 3 of this custom tag snippet. ColdFusion says that the '(' is an invalid token. If I comment out lines 3 and 4, the error goes away and the code works perfectly (except for the condition handled by lines 3 and 4). The syntax is correct as far as I can tell. I get this error whether or not Request.SelectedDay exists. Any ideas? 1 cfif IsDefined('Caller.#Attributes.SelectedDay#') and Attributes.SelectedDay neq "ThisIsJustAMadeUpNameSoWeDoNotConflictWithAnyRealVariableNames_Day" 2 cfset Attributes.SelectedDay = Val(Evaluate('Caller.#Attributes.SelectedDay#')) 3 cfesleif IsDefined('Request.SelectedDay') 4 cfset Attributes.SelectedDay = Request.SelectedDay 5 cfelse 6 cfset Attributes.SelectedDay = Day(Now()) 7 /cfif Here's the full error message: Just in time compilation error Invalid token found on line 83 at position 20. ColdFusion was looking at the following text: ( Invalid expression element. The usual cause of this error is a misspelling in the expression text. The last successfully parsed CFML construct was a CFESLEIF tag occupying document position (83:1) to (83:9). Todd Ashworth ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Invalid Token in IsDefined
If this is a actual copy of your code, you have cfelseif spelled incorrectly (cfeSLeif). Hope that's it... Stephen -Original Message- From: Todd Ashworth [mailto:[EMAIL PROTECTED]] Sent: Monday, January 15, 2001 10:17 AM To: CF-Talk Subject: Invalid Token in IsDefined OK .. I'm getting an error on line 3 of this custom tag snippet. ColdFusion says that the '(' is an invalid token. If I comment out lines 3 and 4, the error goes away and the code works perfectly (except for the condition handled by lines 3 and 4). The syntax is correct as far as I can tell. I get this error whether or not Request.SelectedDay exists. Any ideas? 1 cfif IsDefined('Caller.#Attributes.SelectedDay#') and Attributes.SelectedDay neq "ThisIsJustAMadeUpNameSoWeDoNotConflictWithAnyRealVariableNames_Day" 2 cfset Attributes.SelectedDay = Val(Evaluate('Caller.#Attributes.SelectedDay#')) 3 cfesleif IsDefined('Request.SelectedDay') 4 cfset Attributes.SelectedDay = Request.SelectedDay 5 cfelse 6 cfset Attributes.SelectedDay = Day(Now()) 7 /cfif Here's the full error message: Just in time compilation error Invalid token found on line 83 at position 20. ColdFusion was looking at the following text: ( Invalid expression element. The usual cause of this error is a misspelling in the expression text. The last successfully parsed CFML construct was a CFESLEIF tag occupying document position (83:1) to (83:9). Todd Ashworth ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists