pbauerochse / searchable-option-list

a jquery plugin for a searchable optionlist
MIT License
79 stars 54 forks source link

Make ajax-search work #16

Open fsmeier opened 8 years ago

fsmeier commented 8 years ago

Hey,

I just found your nice plugin. In the frontend it is exactly what I was looking for. Sadly there is no method or sth like that to load the search-results via ajax-query with json-result.

This would be REALLY a nice feature!

Best regards, Florian

pbauerochse commented 8 years ago

Hi @IMM0rtalis ,

can you explain a bit more what you are trying to achieve? Loading the data with an ajax request should be possible by providing the URL as parameter for that data open (see http://pbauerochse.github.io/searchable-option-list/examples.html#initialize-empty-select-from-a-remote-url). Is this somewhat what you are looking for? You could then transform your data by additionally providing a converter (in case the server responds with a non-sol data format)

If that's no exactly what you want would you be so kind and give me an code example what you are trying to achieve?

Cheers

Patrick

fsmeier commented 8 years ago

Hey Patrick,

i searched for other contacts of you, but you're really anonym in the internet :p

Yeah, initial-loading is possible. But if you have A LOT OF selectable data you would prefer loading them by searchtearms. Like an autocomplete but with your cool select-look&feel.

I would also participate, but i am more a php-developer. And I saw that you add all options(of the select) just in the begining.

Best regards from Berlin, Florian

tienn2t commented 8 years ago

Hi @IMM0rtalis, Have you solved your problem? help me using ajax in search multisect?