Message in overlay (assertNotFlooding)


Well-known member
I have a button which performs an action, but stays on the current page to do so, I'm using $this->assertNotFlooding to prevent overuse of this action button. However, when clicked (and when flooding has taken place) the exception message given is shown in a new page, instead of an overlay (like would happen for post or report flooding).

How might I serve this message within an overlay to keep consistency? It's perhaps not possible to return this message using PHP, I'm looking at changing either the form class, or the input button class. I have tried using the obvious classes to initiate the overlay box, however.