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

Ajax is required for some features, but produces blank page for some features #1

Open
mjordan opened this issue Aug 26, 2015 · 4 comments
Labels

Comments

@mjordan
Copy link
Contributor

mjordan commented Aug 26, 2015

Exposed filters and user-defined sorting require "Use Ajax" to be enabled. But, Views warns that "It is not recommended that you use [Ajax] if this view is the main content of the page as it will prevent deep linking to specific pages...." When Ajax is enabled and you create a sort or a filter, applying the sort or filter results in a blank page.

Also, when Ajax is disabled, the "Expose items per page" option doesn't work. When Ajax is enabled, applying the items per page option results in a blank page.

This gist contains an Islandora Solr view that has a block display, and that has Ajax enabled. Not sure if this helps though.

@mjordan mjordan added the bug label Aug 26, 2015
@giancarlobi
Copy link

@mjordan I found similar issue: making my own Views to manage collection display, I'm trying to use "Infinite scroll" or "Load more pager" as pager but both needs ajax and ajax doesn't work, that is, after first display when I click more a blank page is the result. The same issue with native views pager when Ajax is enabled.
Strange that in admin views preview the function works good.
Have you found any solution to this?
My test page: http://archive.digibess.eu/testcollection

@DiegoPino
Copy link

Two thoughts here. A) is the selector ajax is referring correct and existing in your pages? Sometimes themes override default selectors (in this case css classes) breaking the ajax functionality. If that is correct, then B) https://www.drupal.org/node/2646332 there seems to be a bug with Ajax part of this, where values (filters) when not set or empty are blanked out and removed on ajax submit, making next pages blank. I don´t see any JS errors in console in your test page @giancarlobi. the call made via ajax is this: http://archive.digibess.eu/views/ajax?page=1 so you could debug that response separately?
Personally, Drupal's Ajax piece has always wondered me...

@giancarlobi
Copy link

giancarlobi commented Aug 8, 2017 via email

@giancarlobi
Copy link

I love Views and Ajax is not my friend ... here a first draft using views http://archive.digibess.eu/testcollection2

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

No branches or pull requests

3 participants