Skip to main content

Bug Tracker

Side navigation

#13883 closed bug (duplicate)

Opened May 10, 2013 06:14PM UTC

Closed June 03, 2013 09:24PM UTC

ajax request does not complete when clicking a download file in the middle of the request

Reported by: gustavo_armenta@yahoo.com Owned by: gustavo_armenta@yahoo.com
Priority: undecided Milestone: None
Component: unfiled Version: 2.0.0
Keywords: Cc:
Blocked by: Blocking:
Description

start an ajax request. On server side, take 6 seconds to return the response.

Click a link to download a word document. It will download the file while staying on the same webpage.

After the 6 seconds $.ajax() does not raise any event. On Fiddler, I see the call completed with status code 200

I can provide a repro

Attachments (0)
Change History (7)

Changed May 13, 2013 03:46PM UTC by m_gol comment:1

_comment0: Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket! \ \ Additionally, be sure to test against the "jQuery 1.x (edge)" or "jQuery 2.x (edge)" version to ensure the issue still exists—you may need to change this to a specific version depending on the test case. \ \ To get you started, use the appropriate boilerplate: \ \ - jQuery 1.x http://jsfiddle.net/FrKyN/ \ - jQuery 2.x http://jsfiddle.net/VUp3e/1/ \ \ Open the link and click to "Fork" (in the top menu) to begin. \ \ Also, please read: \ - http://blog.jquery.com/2013/03/01/jquery-2-0-beta-2-released/ \ - http://blog.jquery.com/2013/01/15/jquery-1-9-final-jquery-2-0-beta-migrate-final-released/ \ \ Additional resources: \ - Won't Fix: http://contribute.jquery.org/wont-fix/ \ - CLA: http://contribute.jquery.org/CLA/ \ - Style Guide: http://contribute.jquery.org/style-guide/js/ \ 1368460236251792
owner: → gustavo_armenta@yahoo.com
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket!

Additionally, be sure to test against the "jQuery 1.x (edge)" or "jQuery 2.x (edge)" version to ensure the issue still exists—you may need to change this to a specific version depending on the test case.

To get you started, use the appropriate boilerplate:

Open the link and click to "Fork" (in the top menu) to begin.

Also, please read:

Additional resources:

Changed May 15, 2013 05:03PM UTC by gustavo_armenta@yahoo.com comment:2

status: pendingnew

Changed May 20, 2013 06:36PM UTC by m_gol comment:3

status: newpending

This test case is way too big; also, I see no JavaScript files in the test outside of the bundle. What's the actual code?

Changed May 20, 2013 09:37PM UTC by gustavo_armenta@yahoo.com comment:4

status: pendingnew

The code is very simple.

First, start ajax request that will take 6 seconds to complete

$.ajax({

type: "POST",

url: "Handler1.ashx"

})

Then, user clicks on download link on the page

After 10 seconds, this function is executed but none of the events in the ajax call

window.setTimeout(function () {

console.log("[" + new Date().toTimeString() + "] ajax request should have completed");

}, 10000, null);

Changed May 22, 2013 09:07PM UTC by dmethvin comment:5

resolution: → notabug
status: newclosed

Sorry but it is still not clear. Please ask for help on a forum.

Changed June 03, 2013 09:24PM UTC by m_gol comment:6

resolution: notabug
status: closedreopened

Changed June 03, 2013 09:24PM UTC by m_gol comment:7

resolution: → duplicate
status: reopenedclosed

Duplicate of #13965.