Note that there are some explanatory texts on larger screens.

plurals
  1. POJQuery UI Autosuggest not displaying items immediately
    primarykey
    data
    text
    <p>JQuery sends request and I see the response (via Firebug) with NO ERRORS. But for one or two characters the results are not being displayed in the drop down. Usually on the second character typed the results start showing (and I am typing slowly, 1 character per second or so, just to test if it was a speed issue of some sort).</p> <p>Here is an example of the req/resp from firebug, at this point the items are not being displayed on the page:</p> <pre><code>{ "responseHeader":{ "status":0, "QTime":1, "params":{ "fl":"title,count", "sort":"count desc", "indent":"on", "start":"0", "q":"\"b\" AND count:[3 TO *]", "wt":"json", "rows":"5", "version":"2.2"}}, "response":{"numFound":6536,"start":0,"docs":[ { "title":"blood", "count":19890}, { "title":"biochemistry", "count":14480}, { "title":"biochemical and biophysical research communications", "count":6976}, { "title":"businessweek", "count":6498}, { "title":"biochimica et biophysica acta", "count":6226}] }} </code></pre> <p>Again, as I said, the console shows no errors on page.</p> <p>Any thoughts as to how I should pursue this issue?</p> <p>The Javascript code is:</p> <pre><code>function autosuggest(term, wid) { var query = "q=" + escape(term); var url = "/autosuggest.do?" + query; $.getJSON(url, function(terms) { // iterate over terms var list = new Array(); if (terms.response != null &amp;&amp; terms.response.docs != null) { for(var i=0; i &lt; terms.response.docs.length; i++) { var trm = terms.response.docs[i]; list[i] = trm.title; } $( '#' + wid ).autocomplete({source: list, select: function(event, ui) { doSuggestedSearch(ui.item.value); }}); } }); } </code></pre> <p>Any thoughts would be appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload