D F
asked on
Variable CONTEXT is undefined.
I keep getting a error when i'm testing this code. Can anyone tell me why the code can't find #context#
<cfsearch
name = "searchmemberss"
collection="bxcsearchdata"
criteria = "form.name#"
type="internet"
ContextHighlightBegin="<b> "
ContextHighlightEnd="</b>"
ContextPassages="4"
ContextBytes="500"
maxrows = "5">
<p> </p>
<cfoutput>
Your search returned #searchmemberss.RecordCoun t# file(s).
</cfoutput><br>
total searched <cfoutput>#searchmemberss. RecordsSea rched#</cf output>
<cfoutput query="searchmemberss">
<p><table width="600">
<tr><td width="100" align="right" valign="top"><strong><span class="style1">#CurrentRow #.</span>S ummary: </strong></td>
<td width="500">#Summary# #context#</td></tr>
<tr align="right"><td width="100" valign="top"><strong>Title : </strong></td>
<td width="500" align="left"><a href="#Title#" target="_blank">#Title#</a ></td></tr >
</table>
<hr align="left" width="200">
</p>
</cfoutput>
<cfsearch
name = "searchmemberss"
collection="bxcsearchdata"
criteria = "form.name#"
type="internet"
ContextHighlightBegin="<b>
ContextHighlightEnd="</b>"
ContextPassages="4"
ContextBytes="500"
maxrows = "5">
<p> </p>
<cfoutput>
Your search returned #searchmemberss.RecordCoun
</cfoutput><br>
total searched <cfoutput>#searchmemberss.
<cfoutput query="searchmemberss">
<p><table width="600">
<tr><td width="100" align="right" valign="top"><strong><span
<td width="500">#Summary# #context#</td></tr>
<tr align="right"><td width="100" valign="top"><strong>Title
<td width="500" align="left"><a href="#Title#" target="_blank">#Title#</a
</table>
<hr align="left" width="200">
</p>
</cfoutput>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
glad i could help
thanks for the points
thanks for the points
name = "searchmemberss"
collection="bxcsearchdata"
criteria = "form.name#" <!--- is it just a typo in teh post cause you need and opening # here --->
type="internet"
ContextHighlightBegin="<b>
ContextHighlightEnd="</b>"
ContextPassages="4"
ContextBytes="500"
maxrows = "5">