Link to home
Start Free TrialLog in
Avatar of D F
D FFlag for United States of America

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>&nbsp;</p>
<cfoutput>
Your search returned #searchmemberss.RecordCount# file(s).
</cfoutput><br>

total searched <cfoutput>#searchmemberss.RecordsSearched#</cfoutput>

<cfoutput query="searchmemberss">
<p><table width="600">
<tr><td width="100" align="right" valign="top"><strong><span class="style1">#CurrentRow#.</span>Summary: </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>
Avatar of James Rodgers
James Rodgers
Flag of Canada image

<cfsearch
   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">
ASKER CERTIFIED SOLUTION
Avatar of James Rodgers
James Rodgers
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
glad i could help

thanks for the points