-
Notifications
You must be signed in to change notification settings - Fork 4
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
Comments
@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. |
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? |
Many thanks Diego,
I'm a little bit busy and near holidays, so .. I'll make test later.
Respect Ajax, for me the same, so to make a custom collection view I'm
trying do it with Views and Accordion, really more comfortable.
…On 08/08/2017 16:18, Diego Pino Navarro wrote:
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 <https://github.com/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...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AECT8vw4sYbGcwkkHqu7USyxtbQg31lqks5sWG4qgaJpZM4Fyu54>.
|
I love Views and Ajax is not my friend ... here a first draft using views http://archive.digibess.eu/testcollection2 |
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.
The text was updated successfully, but these errors were encountered: