Opened 10 years ago
Closed 10 years ago
#13883 closed bug (duplicate)
ajax request does not complete when clicking a download file in the middle of the request
Reported by: | Owned by: | ||
---|---|---|---|
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
Change History (7)
comment:1 Changed 10 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:2 Changed 10 years ago by
Status: | pending → new |
---|
Added repro in http://jsfiddle.net/7KnJd/1/
comment:3 Changed 10 years ago by
Status: | new → pending |
---|
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?
comment:4 Changed 10 years ago by
Status: | pending → new |
---|
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);
comment:5 Changed 10 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
Sorry but it is still not clear. Please ask for help on a forum.
comment:6 Changed 10 years ago by
Resolution: | notabug |
---|---|
Status: | closed → reopened |
comment:7 Changed 10 years ago by
Resolution: | → duplicate |
---|---|
Status: | reopened → closed |
Duplicate of #13965.
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: