Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination upon scrolling #24

Open
ProLoser opened this issue Mar 22, 2012 · 0 comments
Open

Pagination upon scrolling #24

ProLoser opened this issue Mar 22, 2012 · 0 comments

Comments

@ProLoser
Copy link

In my fork, I am using a merge of several forks that abstracted the ajax request out to a callback so that the developer may handle the ajax call themself, in addition to the response handling.

Since I added an 'initialQuery' which fires an ajaxRequest when opened, I simply reuse this callback. However to differentiate between the normal request and the initial request, I'm passing a reference to the event that triggered the call, or a text name of it (such as type vs click, etc).

I've been sort of busy but I would like to implement a variation upon scroll where when you reach the bottom of the options, it fires a second request with pagination information, and again, taking advantage of the event information to help the developer know which use-case this is, he can modify the request accordingly.

If you do not wish to implement my fork, I will have to look into continually merging your updates (somehow) into my version, as yours currently may be somewhat limiting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant