|
Yeah, you can pretty much kill that first line. That is a read only variable – not sure what that is all about, guess someone thought that was a property.
=D
-----Original Message-----
Here is a snippet:
<cfset thistag.hasendtag = 1>
<cfparam name="attributes.caption" type="string"> <cfparam name="attributes.width" default="90%">
<cfsetting enablecfoutputonly="no"> <cfif NOT compareNoCase(thistag.executionmode,"end")>
<cfset thistag.content = ThisTag.GeneratedContent> <cfset ThisTag.GeneratedContent = "">
<cfoutput>#Thistag.Content#</cfoutput> </td> </tr> </table> </TD> </TR> </TABLE> </TD> </TR> </TABLE> </td></tr></table>
<cfelse>
<table border="0" cellpadding="0" cellspacing="0" width="<cfoutput>#attributes.width#</cfoutput>"> <tr valign="top"><td>
<TABLE border="0" width="100%" cellpadding="1" cellspacing="0" bgcolor="cccc99"> <TR> <TD width="100%"> <TABLE width="100%" border="0" cellpadding="<cfif NOT isDefined("attributes.tightFit")>4</cfif>" cellspacing="0" bgcolor="cccc99" > <TR> <TD valign="middle" align="left" bgcolor="EEEECC"><cfoutput>#attributes.caption#</cfoutput></TD> </TR> <TR> <TD bgcolor="FFFFFF" valign=top width=100%> <table width=100% border=0 cellspacing=0 cellpadding=4> <tr> <td> </cfif>
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Nate Nielsen
Wow – can you give a code snippet of where hasEndTag is trying to be set ?
The thisTag scope holds a couple pieces of information that are handy when writing a custom tag. The scope is only available when you call a template as a tag.
ThisTag.hasEndTag – bool telling you if the tag has an end tag thisTag.ExecutionMode – tells you if it is executing the beginning or the end of the tag thisTag.generatedContent – this contains all the generated html / content that was generated between the start and end of a tag.
-----Original Message-----
Hello all. I have an application that I inherited that was written by a contractor. It was written in CF5 and we just upgraded our dev environment to CFMX 6.1, and this site is generating an error: The HasEndTag variable in the ThisTag scope can not be set by the user.
I have never use the ThisTag scope so I am not sure what it is doing. Can someone shed some light? The on-line docs to not do much good.
Thanks,
Bruce
|
- ThisTag attribute Bruce Sorge
- RE: ThisTag attribute Nate Nielsen
- RE: ThisTag attribute Schreck, Thomas (PPC)
- RE: ThisTag attribute S . Isaac Dealey
- RE: ThisTag attribute Bruce Sorge
- RE: ThisTag attribute Nate Nielsen
- RE: ThisTag attribute Bruce Sorge
- RE: ThisTag attribute S . Isaac Dealey
- RE: ThisTag attribute S . Isaac Dealey
