Skip to main content

Bug Tracker

Side navigation

#9352 closed bug (invalid)

Opened May 19, 2011 10:22PM UTC

Closed May 22, 2011 06:14PM UTC

Internet Explorer aborts first AJAX request

Reported by: Tekin Owned by: Tekin
Priority: low Milestone: 1.next
Component: ajax Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:
Description

I have this small code

$.getJSON('/ajax.php',{
		mode: 'submitBlogEntry',
		entry: $('#formular').serialize()
	},
	function(data){
		if (data.message == 'reload') {
			pageReload();
		}
		else
			  showMessage(data.message, data.caption, 'small', 'notify');
	}
);

A simple post for our blog. When I submit this request with Internet Explorer (tested with IE 8) the request is sent to the server but IE aborts the JS of jQuery. Doing a second submit without reloading the page the request is sent and IE waits for the respond to react properly.

I tried to add random data and changed the request to POST without getting any better result.

Attachments (0)
Change History (5)

Changed May 20, 2011 04:18AM UTC by addyosmani comment:1

component: unfiledajax
owner: → Tekin
priority: undecidedlow
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced test case on http://jsFiddle.net that reproduces the issue experienced to help us assess your ticket!

Additionally, test against the jQuery (edge) version to ensure the issue still exists.

Changed May 20, 2011 11:36PM UTC by Tekin comment:2

status: pendingnew

Where can I get the jQuery (edge) version? Do you mean the actual version?

Also I need to read the documentation of jsFiddle before I can use it :) So it will take a short while I guess. :)

Changed May 21, 2011 12:50AM UTC by dmethvin comment:3

status: newpending

Hi Tekin, take a look at most of the other tickets to get an idea of how to use jsfiddle.

http://bugs.jquery.com/timeline?daysback=2

In jsFiddle you can select "jQuery (edge)" as the version to use.

Changed May 22, 2011 12:32PM UTC by Tekin comment:4

status: pendingnew

Thanks dmethvin. I tested it on jFiddle. You can close this case as "invalid" because as far as I can see it is an odd behaviour of IE.

My form has no action but the JS for submission is started with an input type=button. It seems that IE sometimes submits the formular (to be exact in the fist time I click on Save) and sometimes not (the second time I click again).

I changed the input tags to anchors and now it works like it should.

Changed May 22, 2011 06:14PM UTC by rwaldron comment:5

resolution: → invalid
status: newclosed

per OP request