Form Validation - triggering a spinner

For Joomla! 3.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Locked
hdouglas
Joomla! Guru
Joomla! Guru
Posts: 535
Joined: Tue Mar 11, 2008 7:04 pm
Location: Berkshire, UK
Contact:

Form Validation - triggering a spinner

Post by hdouglas » Sun Feb 12, 2023 3:11 pm

I have a custom component with a form, some of the fields require validation which is handled via the inbuilt Joomla form validation. On submission the form does a lot of processing including creating a large PDF file which takes a few seconds to complete before the response and redirection of the page.

On clicking the submit button I show a spinner which blocks out the elements on the page and indicates to the user something is happening.

However, if the form does not validate, I need to clear the spinner.
Is there an easy way to determin the result of the validation in javascript so the spinner can be removed.
Hugh Douglas-Smith

JED Review Manager
Operations Department Coordinator
http://www.webappz.co.uk

hdouglas
Joomla! Guru
Joomla! Guru
Posts: 535
Joined: Tue Mar 11, 2008 7:04 pm
Location: Berkshire, UK
Contact:

Re: Form Validation - triggering a spinner

Post by hdouglas » Mon Feb 20, 2023 8:42 pm

anyone any ideas on this?
Hugh Douglas-Smith

JED Review Manager
Operations Department Coordinator
http://www.webappz.co.uk


Locked

Return to “Joomla! 3.x Coding”