Here's a patch that adds pager support. Click on any pager link and it will load via ajax. It works in bluemarine, but not in other themes. Needs work determining the selector for the main content area. This patch shows how easy it is to extend dynamic loading now that we have the basics in place.

CommentFileSizeAuthor
dynamicload-pager.patch986 bytesnedjo

Comments

jwilde’s picture

Hi Nedjo,

How does this work? Can give an example?

Thanks,

JIm

PS. WOW. the jquery/jscript stuff you've developed is a godsend.

nedjo’s picture

Here's some basic pointers:

1. apply the patch
2. visit any page with a pager (e.g., the home page if it's set up like drupal.org)

When you click on links in the pager (e.g., 'next', 'last', or one of the numbers), the new page will load via AJAX.

I'm not planning to apply this yet, though. The problem is that we get broken content because we have no way of attaching js behaviours to newly-loaded content.

Want to help change that? pls comment on these two issues, or help with patches:

http://drupal.org/node/125153
http://drupal.org/node/120360

Meantime, at the least, we need a way to restrict which paged results to attach this to.

nedjo’s picture

Status: Needs work » Fixed

Well, I fixed up the theme issue and applied this. It isn't called by default though--for now it's just a utility function that other modules could use.

Anonymous’s picture

Status: Fixed » Closed (fixed)