We help IT Professionals succeed at work.

Variable CONTEXT is undefined.

overcolor
overcolor asked
on
319 Views
Last Modified: 2013-12-24
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>
Comment
Watch Question

James RodgersWeb Applications Developer
CERTIFIED EXPERT

Commented:
<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">
Web Applications Developer
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
James RodgersWeb Applications Developer
CERTIFIED EXPERT

Commented:
James RodgersWeb Applications Developer
CERTIFIED EXPERT

Commented:
glad i could help

thanks for the points
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.