Closed (fixed)
Project:
Javascript Tools
Version:
master
Component:
Dynamicload
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
25 Feb 2007 at 06:10 UTC
Updated:
21 Mar 2007 at 05:02 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| dynamicload-pager.patch | 986 bytes | nedjo |
Comments
Comment #1
jwilde commentedHi Nedjo,
How does this work? Can give an example?
Thanks,
JIm
PS. WOW. the jquery/jscript stuff you've developed is a godsend.
Comment #2
nedjoHere'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.
Comment #3
nedjoWell, 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.
Comment #4
(not verified) commented