Hi,

I wrote a module with a form which collects data for a simulation. At the moment its a "normal" form which gets submitted by a submit button. The module validates the form and if it is valid the results will be calculated and returned.

The screen is divided in an input region (which holds the form) and an output region.

Is it possible to use the ajax module to submit the form and receive the error messages or the calculation output and place them in the output region ... without a page reload? This means the input form should always be the same - almost, if there is an error I would like to high lite the field which contains the error.

I've tried to use drupal's ahah functionality but I didn't get this work. And I wanted to experiment with the ajax module, but I'm not even able to submit the form without the reload.

Comments

avpaderno’s picture

Title: I'm not shure if this module is right for me » Using Ajax in my own module
brendoncrawford’s picture

Assigned: Unassigned » brendoncrawford
Category: support » feature
Status: Active » Closed (duplicate)

Ositoblanco,

I have many requests to enable Ajax.module to NOT redirect after submission. This is currently my top priority. Please keep an eye on http://drupal.org/node/361992 for up-to-date status on this issue.

Thanks

brendoncrawford’s picture

Status: Closed (duplicate) » Fixed

This has now been fixed. Please see http://drupal.org/node/361992 for more details.

Thanks,
Brendon

Status: Fixed » Closed (fixed)

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