This is a follow up to: Core javascript functions to make error, warning or notice messages appear?
Basically, drupal_set_message()
stores error messages in the session. I need a way to tell drupal VIA JAVSCRIPT not to display those messages. If the page was refreshed, these messages would be displayed, but I want a way to force them to be displayed immediately.
since these messages are in the session and/or db, you'd have to use ajax i guess. thats not a very conventional approach.
have to say that on my sites this drupal_set_message() function frequently displays the message one page too late, so i feel your pain.