|
Prev: Passing HTML data, but not parsing it.
Next: Unable to use mail in Korea, Traditional Chinese andThai
From: emccormick on 24 Apr 2008 19:04 Here's my autosuggest tag code: <cfinput type="text" name="partnername" autosuggest="cfc:get_partnername.lookup({cfautosuggestvalue},{SOURCE})" size="35" maxResultsDisplayed = "1000" autosuggestminlength = "2" align="left" style="z-index:1000;" autosuggestbinddelay="1" required="yes" tabindex="0"> Here's the result from the ColdFusion Ajax Logger: -------------------- info:http: CFC invocation response: ["SAFARI MICRO","SALTSPRING SOFTWARE","SANDIRECT","SANITY SOLUTIONS","Sanity Solutions, Inc.","SANSTOR, LLC","SANZ","Savoir-Faire Solutions"] info:http: HTTP GET get_partnername.cfc?method=lookup&returnFormat=json&argumentCollection=%7B%22sea rch%22%3A%22sa%22%2C%22SOURCE%22%3A%22US%22%7D&_cf_nodebug=true&_cf_nocache=true &_cf_clientid=DDF9FE40849174E98711713980BB387B&_cf_rc=1 info:http: Invoking CFC: get_partnername.cfc , function: lookup , arguments: {"search":"sa","SOURCE":"US"} info:widget: Fetching data for autosuggest id: partnername , current value: 'sa' info:http: CFC invocation response: ["SAFARI MICRO","SALTSPRING SOFTWARE","SANDIRECT","SANITY SOLUTIONS","Sanity Solutions, Inc.","SANSTOR, LLC","SANZ","Savoir-Faire Solutions"] info:http: HTTP GET get_partnername.cfc?method=lookup&returnFormat=json&argumentCollection=%7B%22sea rch%22%3A%22sa%22%2C%22SOURCE%22%3A%22US%22%7D&_cf_nodebug=true&_cf_nocache=true &_cf_clientid=DDF9FE40849174E98711713980BB387B&_cf_rc=0 info:http: Invoking CFC: get_partnername.cfc , function: lookup , arguments: {"search":"sa","SOURCE":"US"} info:widget: Fetching data for autosuggest id: partnername , current value: 'sa' info:widget: Creating window: 830591398 info:widget: Selected tab, id: orginfo in tab container, id: cf_layout1209077371319 info:LogReader: LogReader initialized info:global: Logger initialized --------------------- I make a single 2 character entry and the results shown in the log above get delivered immediately. It's clearly firing twice. Doesn't matter what I set the binddelay: default, 1, 2, 10....it fires twice. I hope I'm not exposing my ignorance on how all this AJAX stuff works, but shouldn't the log show one fetch, invocation, get, and response? |