pace icon indicating copy to clipboard operation
pace copied to clipboard

show when submitting a form

Open ccfiel opened this issue 10 years ago • 7 comments

Is it possible to show the progress animation after a submit button is click?

ccfiel avatar Apr 13 '14 13:04 ccfiel

Same issue. The bar is showed when it is doing the first loading, but it is not shown then the form is submitted :(

facundofarias avatar Jun 20 '14 08:06 facundofarias

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)

Fed0t avatar Jul 26 '14 11:07 Fed0t

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.

franc014 avatar Apr 24 '15 23:04 franc014

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"]

ghost avatar Apr 25 '15 06:04 ghost

you can configure pace for handle ajax post request. just change source code on defaultOptions segments and set ajax track methods to ['GET','POST']

farvisun avatar Jan 16 '19 19:01 farvisun

if we dont use ajax. use form submit. it wont be triggered.

callow avatar May 15 '19 11:05 callow

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.

KinoLien avatar Oct 14 '19 03:10 KinoLien