AJAX Update

Categories

Component ID

2298383

Component name

AJAX Update

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

705

Component created

Component changed

Component body

Updates Drupal Core's AJAX API to fix some minor issues.

  • Allows selective exclusion of ajax_html_ids in AJAXified forms.

I created this module to fix an issue with drupal_html_ids in AJAXified forms. In Core, html ids are sent on every ajax request, and due to the functionality of drupal_html_ids, new ids are created for the response. This prevents AJAXified forms from having consistent naming that can be counted on. This module allows for selectively excluding the sending via AJAX of html ids for collision detection on:

  • All Forms
  • AJAXified Forms
  • Forms with the #ajax_html_id_exclude property set to true (the default behavior)

This shouldn't conflict with any other contrib modules or Core functionality, as this issue is either evaded or worked around in the specific modules. In addition, since ajax requests should generally not need to worry about ID collision within the form itself, excluding html ids from being sent should increase bandwidth and processing performance.