iranianpep / ajax-live-search

AJAX Live Search is a PHP search form that similar to Google Autocomplete feature displays the result as you type.
MIT License
247 stars 80 forks source link

search from api service #117

Open dmbehrouz opened 4 years ago

dmbehrouz commented 4 years ago

Hi Ehsan I Glad to meet you, I am also Iranian.Can the library you wrote be connected to the service? I want to ajax to api service and return result from that service with paginate.is it possible؟ thank

iranianpep commented 4 years ago

Hi Behrouz jan!

Yes, it's possible. I've done it in the past. At the moment, the request gets sent to: https://github.com/iranianpep/ajax-live-search/blob/master/core/AjaxProcessor.php and the url is defined in here: https://github.com/iranianpep/ajax-live-search/blob/master/js/ajaxlivesearch.js (check the variable ls). It's been a while working on this project, but check the console for the errors. I did it for one of my projects in the past. Let me know how you go.

Cheers,

dmbehrouz commented 4 years ago

Hi Behrouz jan!

Yes, it's possible. I've done it in the past. At the moment, the request gets sent to: https://github.com/iranianpep/ajax-live-search/blob/master/core/AjaxProcessor.php and the url is defined in here: https://github.com/iranianpep/ajax-live-search/blob/master/js/ajaxlivesearch.js (check the variable ls). It's been a while working on this project, but check the console for the errors. I did it for one of my projects in the past. Let me know how you go.

Cheers,

Damet gaaaaarm Ehsan jan ;) I'm trying to test. For the last question, what kind of service output should it be?