Skip to content

data-request

The data-request attribute will request the specified AJAX event handler.

html
<button data-request="onRequestMessages">
    Request Messages
</button>

When the button is clicked in the above example, it will submit a request to the onRequestMessages handler endpoint.