Anyone know how to enable AJAX so that the "message was sent" notice doesn't create a new page load?

Comments

hellomobe’s picture

Title: Ajax for set email message » Ajax for sent email message

correcting title

Ela’s picture

Not sure if you would like this, because it still reloads the page, but messages show in a nice pop up.. It works not just for this but for any drupal messages. http://drupal.org/project/better_messages
I think there is also ajax module that does this without reloading, just give it a quick search in modules list

pieterdc’s picture

Component: Code » User interface

Ideally, the "the message was sent" message would replace the contact form, using AJAX.

That would be super clear to the end user. (Form filled in, Send button clicked, Confirmation message appears; all within the same block).

pieterdc’s picture

Status: Active » Needs work
StatusFileSize
new1.33 KB

If you apply the attached patch, you still get a page reload, but the status message will replace the form instead of appearing in the "main" region and showing an empty form.

Next step would be to use Drupal's AHAH capabilities to avoid a full page (re)load.

pieterdc’s picture

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

The patch was created against 6.x-1.3, so, changing that property of this issue accordingly.