I would use CFSAVECONTENT to get the information between the CFIF tags.
That may be a more-graceful way of handling this.

I would say the error is because you can't nest CF tags in this manner.

M!ke 

-----Original Message-----
From: Tony Weeg [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 25, 2005 3:45 PM
To: CF-Talk
Subject: cfif and cfdocument oddity....

hi there everyone.

got something strange happening...

i have this code...

<cfif (isDefined("url.format") and url.format is "pdf")>
        <cfdocument format="PDF">
</cfif>

Some code, and eventually the report to show

<cfif (isDefined("url.format") and url.format is "pdf")>
        </cfdocument >
</cfif>

but it bombs, telling me that i need to opening cfdocument tag, but im
not sure why, as the if clause confirms not true... if i remove the cfif
tags, will work just fine.

here is the error:

 Context validation error for tag cfdocument.
The end tag </cfdocument> encoutered on line 259 at column 11 requires a
matching start tag.
 
The error occurred in C:\Inetpub\wwwroot\dpv\report_fullDayReport.cfm:
line 259

257 : 
258 : <cfif NOT (isDefined("url.format") and url.format is "pdf")>
259 :   </cfdocument>
260 : </cfif>



--
tony

Tony Weeg

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212777
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to