Fixed $this->responseMessage() taken as an error on AJAX request

digitalpoint

Well-known member
If you have an OverlayTrigger link that makes it's request via AJAX/JSON, and it returns a message via $this->responseMessage()... shouldn't this be one of the normal non-modal alerts? Instead it throws the big red error message dialog.

I also checked the underlying HTTP response... and the response itself does NOT have an error in it... only the normal message object.

Maybe it has to do with it being a GET vs. a POST, but I would think it should still work if some of the other responses work as a GET.
 
I am not smart enough about this subject to know why this is happening...but I think I get the gist as to why it's a problem.
 
Top Bottom