"Just a guess! Someone cleverer set me straight." Well ok then, since you asked ;O)
 
Damian's right, you can't use conditional logic in this way. As far as the parser is concerned, you have two opening cfoutputs and one closing. Someone clevererer might set me straight though!
 
Ade, high on night nurse :OD
 
-----Original Message-----
From: Damian Watson [mailto:[EMAIL PROTECTED]
Sent: 20 April 2004 17:42
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] why the hell doesn't this work?

Because when it goes through the page it looks for correct syntax before it calculates the code to execute??… so you’ve got two query tags before a close query tag hence an error…

 

Just a guess! Someone cleverer set me straight.

 

-----Original Message-----
From: Ian Westbrook (FDM) [mailto:[EMAIL PROTECTED]
Sent: 20 April 2004 14:12
To: CFUG List
Subject: [ cf-dev ] why the hell doesn't this work?

 

anyone any idea why this doesn't work?

 

<cfif IsDefined("form.search")>
<cfoutput query="allbooks">
<cfelse>
<cfoutput query="allbooks" STARTROW="#the_start#" MAXROWS="#records_to_display#">
</cfif>

I keep getting the 'extraneous </cfoutput> tag' error from the output's close. All I'm doing is choosing one of the output tags depending on whether a form variable exists or not. If I use either of the output tags straight off, it works fine.

 

any ideas?

 

Ian W

 

Reply via email to