最近在使用cf8中autosuggest属性时,
有时会出现
Bind failed for autosuggest artname, bind value is not a 1D array of strings
这样的错误,有什么办法解决吗?
------解决方案--------------------------------------------------------
没有使用过。这个问题帮不上忙。
------解决方案--------------------------------------------------------
从网上找到的。看看是否能解决你的问题。
I found this worked for autosuggest fields (using a sting instead of array):
<cffunction access="remote" name="Cities" returntype="String">
<cfargument name="Cty" type="string" required="No" default="">
<cfquery datasource="ZipCodes" name="zc">
Select City as citi
From Zips
Order by City
</cfquery>
<cfreturn ValueList(zc.Citi)>
</cffunction>
参考:http://www.forta.com/blog/index.cfm/2007/5/31/ColdFusion-Ajax-Tutorial-1-AutoSuggest