pace
pace copied to clipboard
show when submitting a form
Is it possible to show the progress animation after a submit button is click?
Same issue. The bar is showed when it is doing the first loading, but it is not shown then the form is submitted :(
Same issue...when i click the submit button to send data to another page with POST the loader not starting only after my sql query is finished and the new page is refreshed!
Id like to show the progress bar when i push the button ! (in google chrome the mini loader from TAB is there and i like to show PACE loader in same time)
Hi. Sure, it does not work when submitting via normal POST. Using jquery is possible to control this for every request. Hope there's a similar solution.
it always works for ME
I use Auto Complete Search which is based on MySql . It show progress bar when data is sending when finished progress done and results shows. :+1:
My PACE.min.js main code ajax:{trackMethods:["GET","POST"]
you can configure pace for handle ajax post request.
just change source code on defaultOptions
segments and set ajax track methods to ['GET','POST']
if we dont use ajax. use form submit. it wont be triggered.
You don't need to change any source code, just add the followings before pace
loaded:
window.paceOptions = {
ajax: { trackMethods: ['GET', 'POST'] }
};
It works for me.