pbauerochse / searchable-option-list

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

How Pagination Work in SearchableOption List? #73

Open GeethaKarthick opened 4 years ago

GeethaKarthick commented 4 years ago

Hi,

I have huge list of data in container, I need to send pass param like limit & page in ajax get datas when user scroll the container list.How to implement like these ?Is it possible Or have any other solution.

GeethaKarthick commented 4 years ago

@pbauerochse Please give me solution for my problem.

pbauerochse commented 4 years ago

Hi @GeethaKarthick,

I'm afraid I have not considered lazy loading or pagination when I wrote the library. I think if you want to implement that, you need some sort of scrollListener, that determines if the user almost scrolled to the end of the suggestions div, then count the already displayed suggestions, and then trigger the next request to your backend. Then append the new results to the suggestion box.

I must admit, that I'm pretty much neglecting this plugin, since neither myself, nor my company are still using it. Unfortunately I haven't updated the library in 3 years. It's hard for me to keep up with all the developments that are taking place in the JavaScript frontend world lately, as I am more of a backend guy, myself.

Sorry for not being able to help you right now :(

GeethaKarthick commented 4 years ago

Thanx for your reply @pbauerochse , Is it possible to use endless Scroll jquery to content load ??