Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

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>
0
overcolor
Asked:
overcolor
  • 4
1 Solution
 
James RodgersWeb Applications DeveloperCommented:
<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">
0
 
James RodgersWeb Applications DeveloperCommented:
what version of CF is running the code? context, i think, is cf7 so any server not running CF7 will give an error.
0
 
James RodgersWeb Applications DeveloperCommented:
glad i could help

thanks for the points
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now