Comments

rfay’s picture

Status: Active » Needs review
StatusFileSize
new1.62 KB

Here's the 7.x AJAX example. It's attached as a zipfile instead of as a patch so it can be dropped into place.

rfay’s picture

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

Committed: http://drupal.org/cvs?commit=277700

Please review. Now changing this to 6.x.

rfay’s picture

Status: Needs review » Fixed
StatusFileSize
new9.52 KB

Here's the D6 AHAH Example.

Committed to DRUPAL-6--1: http://drupal.org/cvs?commit=281822

rfay’s picture

Title: Add advanced AJAX examples for D7 » Add AJAX Example for Drupal 7 (and AHAH Example for Drupal 6)
Version: » 6.x-1.x-dev

More work:

For D7 add:
0. Ajax commands
1. A link example
2. no-js examples
3. How to pass settings for ajax-loaded content.

rfay’s picture

Version: 6.x-1.x-dev »
Status: Fixed » Active
ilo’s picture

are we going to include a test file for the D6 version of this module?

Edited: I forgot to mention.. thanks rfay the work on d6 example also :)

rfay’s picture

@ilo, #6: It's so hard to do a reasonable test for AHAH... You can test the system/ajax call, but you're not really testing the functionality. I'm not even completely sure that we should include a test for D7, but I think you already have it written, so I look forward to seeing it.

rfay’s picture

Title: Add AJAX Example for Drupal 7 (and AHAH Example for Drupal 6) » Add advanced AJAX examples for D7
StatusFileSize
new16.07 KB

#4 has the ongoing list of examples we want for D7.

The attached patch implements most of the AJAX commands.

I'm going to commit the current work in progress for D7 here because it will be useful for testing a number of core patches. It's definitely not done, but most of it works.

#623310: AJAX 'changed' command asterisk argument doesn't work
#623320: AJAX 'css' command unimplemented in misc/ajax.js
#622922: User input keeping during multistep forms (most important)

Committed: http://drupal.org/cvs?commit=284036

katbailey’s picture

Subscribing - I will add a link (i.e. using the 'use-ajax' class) example later today as I have the code already written...

katbailey’s picture

StatusFileSize
new1.36 KB

Oops, didn't get to this the other day - anyway, here's the patch with the ajax link example...

katbailey’s picture

I've added a js_example module, which currently only has a couple of tiny example but I will add more...
http://drupal.org/cvs?commit=288440

rfay’s picture

StatusFileSize
new13.03 KB

This issues in #8 have now all sorted out, so I'm committing this update which mostly affects the AJAX Commands, but also did a bunch of Doxygen cleanup and added a new simplest example, which is pointed at by the patch in http://drupal.org/node/610068#comment-2371466 for ajax.inc.
http://drupal.org/cvs?commit=301634

Still working on the items in #4

rfay’s picture

@katbailey: Sorry I missed your patch in #10 somewhere. I'm committing it here with some additional documentation. Thanks so much for getting this together. Your work makes it very clear.

http://drupal.org/cvs?commit=301638

rfay’s picture

Title: Add AJAX Example for Drupal 7 (and AHAH Example for Drupal 6) » Add advanced AJAX examples for D7
Version: 6.x-1.x-dev »
Status: Active » Fixed

I'm going to call this one good. Followups in new issues.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.