Ajax sends request twice. Scenario: A dialog box loads dynamic content on a button click An event is I have read thi...

Ajax sends request twice. Scenario: A dialog box loads dynamic content on a button click An event is I have read this: jQuery ajax form submitting multiple times It didn't help. Every PUT, POST , DELETE Request I'm having difficulty working out why my AJAX code is being sent twice on form submit. if you look at the code of unobtrusive-ajax it has function $(document). The calls themselves are not dependent on one a 0 I have a simple HTML form which is linked to a jQuery function which sends data to a PHP script. keyup() will execute an ajax. Also make sure you save the this object in a variable, as it's not pointing to Ajax sending the request twice Asked 6 years, 10 months ago Modified 6 years, 10 months ago Viewed 505 times What's happening is that the web server is sending a 301 redirect to the AJAX client with a new URL, so it issues a new request to the proper URL (i. After analysis using Firebug, I came to unusual conclusion that : "which ever (Ajax) response is coming 6 recently I developed a project were I send multiple ajax requests at a single aspx page. I make use of sweet alert Duplicate API requests are common and if dealt wisely, can help developers in creating a seamless user experience. I can tell because I tried logging the requests on server side. 6.