if you enable disable_redirect on forms the drupal_set_message() messages do not appear after the ajax form submission.
when you navigate away from the page to another page, after page refresh the messages come through and are displayed.

this was 'briefly' touched on in http://drupal.org/node/361992

Comments

brendoncrawford’s picture

Assigned: Unassigned » brendoncrawford

Taylzor,

Thanks.

tayzlor’s picture

this appears to not only be when that module is enabled.
i'm writing my own custom plugin to do extra stuff after a form has been submitted via ajax, and if i invoke a function on hook === 'complete' and inspect the args object using console.debug(args) in firebug there is nothing in any of the messages_ properties.

brendoncrawford’s picture

Priority: Normal » Minor
Status: Active » Fixed

Taylzor,

This has been fixed in 6.x-1.x-dev. Please allow up to 12 hours for dev package to update. Thanks for your help.

-brendon

tayzlor’s picture

Status: Fixed » Active

hi brendon,

tested and re-opening this as a bug, downloaded latests 1.x-dev snapshot and messages are still not appearing until the user redirects away from the page on to the next page, or if the current page is refreshed the message appears after the refresh.

there is nothing in the message_ properties of the object to display on either the 'complete' or 'message' hooks of the javascript plugin, each time these are empty.

let me know if i'm doing something wrong

thanks

brendoncrawford’s picture

Taylzor,

I am testing this on a fresh, new Drupal 6.10 install with the latest Ajax dev snapshot, and am having no problems. Try the following:

1) Disable and then uninstall ALL ajax modules
2) Clear registry and site cache
3) Completely remove the ajax module directory and replace with new dev snapshot
4) Re-enable ajax modules
5) Run update.php

If that, still doesnt work, could you try it with a fresh installation?

Thanks

brendoncrawford’s picture

Taylzor,

Still having this problem?

tayzlor’s picture

Hi Brendon,
I havent had the time to try out the latest dev snapshot on a vanilla install of d6 yet as i've been snowed, so can't confirm if it still occurs. :( i'll likely be coming back to this at some point in the near future so whenever i get a chance to test it out i'l report back here :)

brendoncrawford’s picture

Status: Active » Postponed (maintainer needs more info)

Taylzor,

Ok.. Until then, I will mark this as postponed.