Anyone know how to enable AJAX so that the "message was sent" notice doesn't create a new page load?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 20100315_authorcontact_message_in_block.patch | 1.33 KB | pieterdc |
Anyone know how to enable AJAX so that the "message was sent" notice doesn't create a new page load?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 20100315_authorcontact_message_in_block.patch | 1.33 KB | pieterdc |
Comments
Comment #1
hellomobe commentedcorrecting title
Comment #2
Ela commentedNot 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
Comment #3
pieterdcIdeally, 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).
Comment #4
pieterdcIf 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.
Comment #5
pieterdcThe patch was created against 6.x-1.3, so, changing that property of this issue accordingly.