Show that a form uses ajax (naja)

materix
Backer | 83
+
0
-

I am using Naja for ajax.

How to show to the user that a form is using ajax on submit?

Is it perhaps possible to disable form-elements on submit, and display some kind of spinner?

Infanticide0
Member | 106
+
0
-

You can display spinner with overlay over page when ajax request is sent. With some customization, the spinner can just be above the form, or you can disable submit button during request and enable it when response will not redirect.

Why does your request take so long?

https://naja.js.org/#…