I really hope you get this Eric... I am currently attempting to implement a jQuery autosuggest with solr terms. I have seen your posts, and even bought your book, but am still no closer... I will post my code here, and see if you can spot anything I am doing wrong. I am getting no errors, just no autosuggestions.
jQuery("#searchbox").autocomplete('http://localhost:8983/solr/select/?&wt=json&json.wrf=?', { dataType: "jsonp", extraParams: {rows: 10, fq: "*:*"}, minChars: 0, parse: function(data) { log.debug("resulting documents count:" + data.response.docs.size); return jQuery.map(data.response.docs, function(document) { log.debug("doc:" + doc.ID); return { data: doc, value: doc.ID.toString(), result: doc.ID } }); } }); Thanks, Andy Eric Pugh wrote: > > > Hi all, > > I was playing with the demo > http://view.jquery.com/trunk/plugins/autocomplete/demo/json.html > and downloaded it to my laptop and am loading it via > file://mydir/json.html, > and now get what I believe is a cross domain permission error under > FF3: > > uncaught exception: Access to restricted URI denied > (NS_ERROR_DOM_BAD_URI) > [Break on this error] xhr.open(type, s.url, s.async); > > Oddly enough it works just fine with Safari, which I think is because > Safari is more lenient? Has anyone actually been able to use the > autocomplete plugin with data pulled from a different URL then the > page was served up from? I want to display suggestions based on > results from another server. > > Eric > > > > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the Google Groups > "jQuery UI" group. > To post to this group, send email to jquery-ui@googlegroups.com > To unsubscribe from this group, send email to > jquery-ui+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/jquery-ui?hl=en > -~----------~----~----~----~------~----~------~--~--- > > > -- View this message in context: http://old.nabble.com/Using-Autocomplete-with-data-from-different-domain-%28JSONP-%29-tp22742870s27240p28198537.html Sent from the jQuery UI Discussion mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.