User login

AJAX Form Messages, a proposed module

Update: See the module page, http://drupal.org/project/formmsgs
and http://definitivedrupal.org/node/128 for the making of (in progress).

This module was requested by uberbytes, originally to make a proper module of the code attached to this post: Check for duplicate titles of a node with AJAX to warn immediately before entering more data or submitting.

It will also address this long-held need of Agaric's Prevent duplicate link submission when using CCK Link module with AJAX alerts.

Prior art

Some integration with CTools that doesn't go anywhere, but a reminder to look at CTools' implementation:
http://drupal.org/node/478444

Oh here we go, the motherload, and it needs documentation:

Integrate CTools AJAX framework with Drupal to extend (and replace) existing ahah framework
http://drupal.org/node/544418

See also Standardize the return of status messages in AJAX callbacks.

Older discussion of AJAX for forms for Drupal core:
http://groups.drupal.org/node/18170

One of the best-of-breed in contrib: http://drupal.org/project/username_check

Ad hoc solutions:

http://www.drupalconnect.com/blog/jwhitener/drupal-ajax-form-validation

http://stellapower.net/content/ajax-ifying-drupal-node-forms

Nedjo commenting on Starbow's Popups API, mentions he'd like everything forms-related in one module:
http://groups.drupal.org/node/8452#comment-25982
In the meantime he's said that Drupal 7 contains most of that module, http://drupal.org/project/ajaxsubmit so it won't be ported, and the rest can be found in http://drupal.org/project/ctools

An issue on (the non-AJAX, D6) Inline Form Errors requests (optionally) place messages between form label and form element, which seems a good idea to try to allow.

Searched words: 
ajax messages ahah msg for drupal form elements drupal form inline validation form message

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.