First of all, this module is a true missing element in Views world, great work!
Now, a small issue when using "Style: Table" to output fields (maybe there are similar symptoms with other styles? I haven't tested yet):
On scroll, the whole new DIV.view-content is being selected and appended to the same existing DIV.view-content. The problem is that with Table plugin every next DIV not only contains it's own TABLE.views-table, but that TABLE, in turn, contains field headers. So, in effect, every portion of updated fields is prefixed with a header. That looks weird.
The solution is to provide a more specific 'content_selector'.
PS: this fix can be further optimised by sending a particular content_selector on the server side depending on a selected style.
Comment | File | Size | Author |
---|---|---|---|
20100608-drupal-views_infinite_scroll-fix_table_style.patch | 847 bytes | esteewhy | |
Comments
Comment #1
Remon CreditAttribution: Remon commentedThanks Taras for mentioning this :). I think I'm more declined to second solution (sending a particular content_selector on the server side depending on a selected styl). Furthermore, I think that depending on views' already existing ajax behaviours will fix this radically. but unfortunately is depends on this #714766: Alter drupal.Views.Ajax.ajaxViewResponse js function to enable endless scrolling.
Comment #2
Remon CreditAttribution: Remon commentedComment #3
Remon CreditAttribution: Remon commentedFixed in dev branch.