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

Error when submitting contact form via ajax #31

Closed
cosmomathieu opened this Issue May 4, 2016 · 2 comments

Comments

Projects
None yet
1 participant
@cosmomathieu
Collaborator

cosmomathieu commented May 4, 2016

When submitting a form using ajax the following error is generated and the form is not submitted.
Synchronous XMLHttpRequest on the main thread is deprecated

@cosmomathieu cosmomathieu added the bug label May 4, 2016

@cosmomathieu

This comment has been minimized.

Show comment
Hide comment
@cosmomathieu

cosmomathieu May 4, 2016

Collaborator

There was a changed made recently to standardize the XMLHttpRequest see more here https://xhr.spec.whatwg.org/.

http://stackoverflow.com/questions/27736186/jquery-has-deprecated-synchronous-xmlhttprequest

It turns out that ajax success is deprecated and that done should be used.

Collaborator

cosmomathieu commented May 4, 2016

There was a changed made recently to standardize the XMLHttpRequest see more here https://xhr.spec.whatwg.org/.

http://stackoverflow.com/questions/27736186/jquery-has-deprecated-synchronous-xmlhttprequest

It turns out that ajax success is deprecated and that done should be used.

@cosmomathieu

This comment has been minimized.

Show comment
Hide comment
@cosmomathieu

cosmomathieu May 9, 2016

Collaborator

The ajax submit path was set to SITEMIN . 'contact/ajax' as oppose to 'contact/ajax'. This caused the form to never submit.

Collaborator

cosmomathieu commented May 9, 2016

The ajax submit path was set to SITEMIN . 'contact/ajax' as oppose to 'contact/ajax'. This caused the form to never submit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment