Conditionals in bind expression
Is it possible to put a conditional in a bind expression?
For example:
<cfinput type="text" name="searchParam" id="searchParam">
<cfdiv id="searchResult" bindonload="no" bind="url:sr.cfm?search_param={searchParam@11606534}"></cfdiv>
In this example, sr.cfm will be loaded in the cfdiv EVERY TIME that focus is blurred from the input field.
Is it possible to set it so that the cfdiv will NOT load sr.cfm IF the input field is blank?? Something like:
bind="url:sr.cfm?search_param={searchParam<cfif searchParam neq ''>@11606534</cfif>}"
Is this possible? Or is there something like it that will work?
Thanks,
^_^
