Hi All
Ok seem to be getting somewhere now, or at least I'm getting errors back, the page is internal and not on the web. On the search form page I am getting a JavaScript error 'bsn is undefined'? The original code was for php which I think works superb at http://www.brandspankingnew.net/archive/2007/02/ajax_auto_suggest_v2.htm l and I can't use the new autosuggest feature in CF 8 as I am on CF 7. Search form code ----- <form method="get" action=""> <label for="testinput_xml">Person</label> <input type="text" id="testinput_xml" name="surname" value="" style="width:300px" /> <br /><br /><input type="submit" value="submit" /> </form> <script type="text/javascript"> var options_xml = { script: function (input) { return "include.cfm"+input+""+document.getElementsByTagname('rs')[0].getAttribu te('info').value; }, varname:"input" }; var as_xml = new bsn.AutoSuggest('testinput_xml', options_xml); </script> -- Also when trying the include.cfm page on its own independent to the search form to test it out I get the error The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. ------------------------------------------------------------------------ -------- Incorrect syntax was used in a comment. Error processing resource Include.cfm page is below ------- <cfsilent> <cfsetting enablecfoutputonly="yes"> <cfquery name="getNames" datasource="dsn"> SELECT surname FROM tablename WHERE surname LIKE '%#url.as#%' ORDER by surname ASC </cfquery> <cfcontent type="text/xml; charset=UTF-8" reset="yes"/><cfoutput>#theXML#</cfoutput> <cfloop from="1" to="#getNames.recordcount#" index="ctr"> <cfoutput> <!--- add the XML config entry ---> <rs id="" info="#getNames.surname[ctr]#">#getNames.surname[ctr]#</rs> </cfoutput> </cfloop> <cfoutput> </results> </cfoutput> <cfoutput>#theXML#</cfoutput> </cfsilent> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312655 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4