Side navigation
#4183 closed bug (fixed)
Opened February 18, 2009 07:57PM UTC
Closed May 16, 2009 09:17PM UTC
Last modified March 14, 2012 02:52PM UTC
post/get ajax bug in IE 6-8
Reported by: | kof13 | Owned by: | brandon |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | ajax | Version: | 1.3.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
If I try to do $.get - FF works fine, but IE 6-8 sends the request as a post. So our error handler notes "empty post request".
Attachments (1)
Change History (12)
Changed February 28, 2009 07:44PM UTC by comment:1
Changed March 01, 2009 12:05AM UTC by comment:2
I tryed to reproduce this case outside of the website. It seems to be a bit special case.
I was trying to set a global parameter for all ajax requests:
cstok = 'asdfast2345twgew35aer';
$(document).ajaxSend(function(e, xhr, settings){
settings.data='cstok='+cstok;
});
Changed March 05, 2009 03:51AM UTC by comment:3
Since you're doing a get, why did you use settings.data? wouldn't you append your cstok to the url instead?
Changed March 05, 2009 07:56AM UTC by comment:4
Well,
1.actually I not really need this param by get. I just didn't asked if this is a POST or not and got problems in IE becouse all GET requests were POST now. (if (settings.type=='POST'))
2.Of course I can add this param to the url
$(document).ajaxSend(function(e, xhr, settings){ settings.url+='?cstok='+cstok; });
But it seems to be to late at this moment, so it didn't works
3.Nevertheless the real problem that its working in IE and FF not at the same way.
My original idea was to add this parameter to all requests global, to not to do it in each request. Is there any other way to do it?
Changed March 06, 2009 04:00PM UTC by comment:5
Hi kof13,
By removing settings.data='cstok='+cstok; IE6 will correctly identify it as a GET
Changed March 06, 2009 09:42PM UTC by comment:6
Yes, I know. Its just inconsistent behavior in IE-FF, if you think its not a bug just close the ticket.
Changed March 29, 2009 04:36PM UTC by comment:7
Looks like, that things are not properly handeled here. I vote for taking such things strict. This will remove side-effects and the usability will increase.
Changed May 16, 2009 04:51PM UTC by comment:8
milestone: | 1.3.2 → 1.3.3 |
---|---|
priority: | blocker → major |
Changed May 16, 2009 08:24PM UTC by comment:9
resolution: | → fixed |
---|---|
status: | new → closed |
fixed in r6536
Changed May 16, 2009 09:16PM UTC by comment:10
resolution: | fixed |
---|---|
status: | closed → reopened |
Changed May 16, 2009 09:16PM UTC by comment:11
owner: | → brandon |
---|---|
status: | reopened → new |
Changed May 16, 2009 09:17PM UTC by comment:12
resolution: | → fixed |
---|---|
status: | new → closed |
Can you provide a test case?