Search code examples
jqueryajaxformsdebuggingdeveloper-tools

Submit AJAX form through console (developer tools)


I'm debugging server errors and need to submit the form manually through console (bypassing front-end validations). The problem is, the usual approach $('form').submit() fails because it tries to submit my AJAX form synchronously. Any ideas on how I can accomplish this?


Solution

  • I would try to use the normal form with its JavaScript and change the data posted to the server.

    For Firefox e.g. there is an Add-on "Tamper Data" which allows you to debug and change all requests before they are send.
    (These Add-ons are available for all other browsers, too, just ask google.)