Show that a form uses ajax (naja)

materix
Backer | 82
+
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 | 99
+
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/#…

materix
Backer | 82
+
0
-

Thanks for the link about Naja-spinner, I will check it out.

My Form request does not take so long. But I think it is better usability, if the user can see that the system is active, while performing ajax-requests, so the user does not click multiple times on submit-button.