Advertisement

04.07.2008 at 12:28PM PDT, ID: 23302410 | Points: 125
[x]
Attachment Details

autosuggest and double quotes

Asked by ace2111 in ColdFusion Application Server

Tags: ,

In the below code my list returned contains double quotes.  When I run the page I get a javascript error that breaks the autosuggest.  Telling me that I was missing a ; before statement becasue of the double quotes.  I have searched quite a bit but not found anyone else explaining how to handle this.


<cfquery datasource="#request.datasource#" name="sizeList">
      SELECT distinct(qiSize)
      FROM quoteItem
</cfquery>
<cfoutput>
<cfform name="myForm" class="cms" method="post" action="#CGI.script_name#">

<table cellspacing="2" cellpadding="0" border="0" style="width:200px;">
    <tr>
            <td>
      <label for="Size">Size</label>
      <cfinput name="qiSize" value="#prepop.qiSize#" maxlength="50" type="text" autosuggest="#valueList(sizeList.qiSize)#" autosuggestminlength="2">      
      </td>
</tr>
</table>
</cfform>
</cfoutput>Start Free Trial
[+][-]04.07.2008 at 09:56PM PDT, ID: 21302686

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628