soulmate.js icon indicating copy to clipboard operation
soulmate.js copied to clipboard

Suggestions not getting displayed

Open mishrarohit opened this issue 13 years ago • 8 comments

Hi,

Thanks for your work on soulmate. On entering any query in the autocomplete box, I do not see any autocomplete suggestions. I cloned the demo and I can see valid JSON response from Seatgeek, but the suggestions are not being displayed. I ran the spec/spec_runner.html file and all specs are passing.

I am using Chrome Version 21.0.1180.57

mishrarohit avatar Sep 11 '12 13:09 mishrarohit

This is working pretty well in Firefox though. I am quite confused.

mishrarohit avatar Sep 11 '12 13:09 mishrarohit

Hi @movingahead . I just tried the demo in Chrome 21.0.1180.89, and the suggestions are coming up OK. Unfortunately, I'm not sure what might be going wrong in your case. Are there any errors in the console? Can you inspect the source and determine whether the markup for the suggestions is being created, but is just not visible.

mcrowe avatar Sep 12 '12 17:09 mcrowe

I am not able to reproduce the issue now. Though, the console shows me this error for every query Uncaught TypeError: Property 'jQuery16407736390051431954_1347530059280' of object [object Window] is not a function autocomplete:1 (anonymous function)

mishrarohit avatar Sep 13 '12 10:09 mishrarohit

That function, I believe, is the jquery jsonp callback. Soulmate.js is telling soulmate to use jsonp so that it can have soulmate running on a different domain. Unfortunately, I'm really not sure why you would be getting that error.

mcrowe avatar Sep 16 '12 17:09 mcrowe

I've seen a similar error while using Swiftype Autocomplete. Luke Frankl from Swiftype reported back: "This occurs because the current request for autocomplete results is aborted if the user continues to type before the results have been returned. Canceling the request causes the generated callback to not exist any more."

thomasklemm avatar Dec 13 '12 20:12 thomasklemm

@thomasklemm You're right, that may explain the error @movingahead was seeing. Thanks for commenting!

mcrowe avatar Dec 14 '12 16:12 mcrowe

Hi, right now, the soulmate can return the search result. But I'm not sure how can I display the json result in the webpage. The script is here:

My question is how should I define the render and select to make the suggestion display.

liurida avatar Aug 08 '13 09:08 liurida

Hi liurida. My apologies. I'm on a long term cycle tour right now, so I'm not really able to look into your question. Hopefully someone in the community can for me.

mcrowe avatar Aug 08 '13 16:08 mcrowe