Is it possible to show the loading spinning icon when the user clicks on any of the link, till the clicked link page is loaded.
the following code did the trick
$("[href^='/']").on("click", function() { // Select the submit button, this example assumes extended and modal advanced search
Swal.fire({
title: 'Loading',
html: 'Please wait...',
showConfirmButton: false
});
});
This is great and looks working smoothly. Thanks for sharing.
Where to place this script?
Global Startup Script.
Thank you
Nice trick, Perfect for the page changes.
How can it be showing on every click
like on Search, Add, hyperlink, change of page no. in footer etc.
So that the user should know the page is loading and working
The above code is for all the hyperlinks starting with /. Add the jQuery selector to apply for other elements. Check the link in 2nd post for idea
singh wrote:
How can it be showing on every click
like on Search, Add, hyperlink, change of page no. in footer etc.
https://discourse.hkvstore.com/t/please-wait-message-for-search/5094/3