4

Graceful AHAH

http://drupal.org

I'm trying to work out a form using AHAH to chain select items. So far every thing seems to work well when javascript is enabled (obviously) but I can't seem to get things to work when javascript is disabled.

Every time I submit the form normally, I lose the ability to access $form_submit. The values from $_POST populate the correct fields but I can't do anything with them. As soon as I remove the AHAH stuff, everything works once more (and I can debug and view the content of $form_state in my form() function as usual.

I have tried both the standard AHAH callbacks and ahah_helper and nothing seems to work when JS is disabled. Is degrading JS just not an option? I can always work around it but I won't be able to manually set the AHAH fields based on user input without it post validation.

Thanks in advance for any help!

Read »
Created by Dplanet 19 weeks 6 days ago
Category: Modules   Tags:

PSD to Drupal Theme

Drupal Development

Module Development

Get an Estimate

Best published scoops - Modules

Recent comments