New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pace doesn't fire while posting formData with an image? #188
Comments
@nickforddesign I have the same problem with POST requests. I'm assuming that pace does not show a progress bar for POST. I'm using the following workaround with jQuery:
|
Pace works with POST request. I edited pace.js and added track method ["POST"] it works. Open Pace.js and find ["GET"] replace it with ["GET","POST"] after it will accept all post request 👍 |
You can choose what pace tracks by setting the options. By default pace only tracks GET requests.
|
@Friss it did not work. :( i don't know why but after edit Pace.js file it works. |
@rajlaksh did you declare that variable before including the pace.js file? Because that would explain it not working. |
@Friss i tried that method before editing. It not work. I placed my pace.js before declare. so it won't give any error. if i added it before pace.js it will return error. That method didn't work so i edit pace.js and Happy 👍 |
@Friss Thanks. It worked like a charm. |
@Friss just what I was looking for! Thank you! |
How do i set up pace for a normal form not ajax - this form accepts an address and process information about the address on another page. after the form is clicked it takes a significant amount of time for the results to come but the pace comes only for 1 second after the results page shows |
I have pace set up normally, it definitely works for initial page load and ajax 'GET' requests.
However, when posting a form with ajax that has an image in it, pace does not fire. While the data is being sent to the server, the status of the POST is pending... When it finishes it becomes a 200. This whole time pace just sits with the
.pace-inactive
class. The images and form data are successfully saved.Here's the jquery I'm posting the form with:
I am able to successfully catch the start and end events I want using this jquery:
Is pace.js meant to track data that is being uploaded during a POST?
The text was updated successfully, but these errors were encountered: