I recently put together an AJAX teaser fetcher for a client based on the jQuery library and views. For table views, the ajaxviews.module will find all the node title links and replace the behavior with an AJAX call to drupal to get the node teaser. This teaser is then placed into a div above the table.

You can find the module in my sandbox:

http://cvs.drupal.org/viewcvs/drupal/contributions/sandbox/mfredrickson/...

It's targeted for drupal 4.7 and my jquery47 compatibility module. I've attached a naive attempt at a drupal 5 version, though I haven't actually tested it. If it works I'll be very pleasantly surprised.

Is appropriate for views bonus? Or should should this live as it's own module? Or should it in views proper?

Thanks
-Mark

CommentFileSizeAuthor
ajaxviews-drupal5.js.txt1.05 KBmfredrickson

Comments

moshe weitzman’s picture

that sounds pretty cool, mark. any chance you can show it to us on some public web site?

merlinofchaos’s picture

I think it's highly appropriate for the bonus pack.

If you're willing to test it for drupal 4.7 and drupal 5 (and make sure it checks for the required modules -- i.e, the jquery47 in particular) I'll give you direct commit access to the repository.

We're getting to the advanced number of plugins where I need to make the bonus pack a little more modular so that the plugins are more pluggable.

mfredrickson’s picture

It's a deal. Do you have a preferred dependency system in 4.7?

merlinofchaos’s picture

We're just using module_exist() when adding the plugin for the existing stuff. It's pretty easy to see from the existing code.

Also, be sure to update the README.txt with a description of what it does. If you have time (and, well, most of us don't so this part only happens a little bit) creating a default view example that does the bare minimum and setting it to disabled ($view->disabled = true) is a handy way for people to see what's going on.

merlinofchaos’s picture

Hey just so you know I now made official 4.7/5 releases, so the branching/tagging of the module changed a little bit.

You may want to re-update your work area. If you are only going to do one branch, I would prefer work go into Drupal 5; but if you're willing to work on both, everyone would appreciate it.

mfredrickson’s picture

I have (locally) branched the module for 4.7 and 5, as well. It shouldn't be that hard to maintain both branches, though I think I will put all new work into 5/CVS.

Thanks for the heads up.

alex_b’s picture

silence did this one for development seed:

http://cvs.drupal.org/viewcvs/drupal/contributions/sandbox/developmentse...

http://www.jodhpuriguy.com/sandbox/drupal/?q=asyncPage

I don't know ajaxviews but asyncapi seems to do pretty much the same: it provides a field for list views that loads a node teaser or entire node on user request. it also has an themeable function to use ajax node loading without views and a nearly working ajaxy pager, that loads X node teasers on the bottom of the page. (all version 4.7). We are using this module in two production sites.

How about ajaxviews, is it part of views bonus pack now? of 4.7 and/or 5.0 ?

alex

dmitrig01’s picture

alex_b: can you post a patch?
I will commit if I like.

alex_b’s picture

a patch for views bonus pack?

dmitrig01’s picture

yes

neclimdul’s picture

Version: 6.x-1.x-dev » 5.x-1.x-dev

With the XML output and ajax pager already in views 2 I don't think this applies to d6 anymore.

pomliane’s picture

Status: Active » Closed (won't fix)

This version of Views Bonus Pack is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.