Side navigation
#1542 closed bug (invalid)
Opened August 27, 2007 03:47AM UTC
Closed November 06, 2007 04:09AM UTC
Last modified March 15, 2012 05:13PM UTC
$.ajax not working properly in IE7
Reported by: | austin | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.2.2 |
Component: | ajax | Version: | 1.1.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
It appears that the update to 1.1.4 broke something in IE7 for ajax. For example:
Calling a file like info.php which just returns html passes correctly to function on the end for alert but you are unable to use the value anywhere else in the document.
Works:
$.ajax({ data: "id=1", type: "GET", url: 'somefile.php', dataType: "html", async: 'false', success: function(data) { alert(data); } });
Does NOT work in 1.1.4 but DOES work in 1.1.3.1:
$.ajax({ data: "id=1", type: "GET", url: 'somefile.php', dataType: "html", async: 'false', success: function(data) { $("#some_div_id").html(data); } });
This makes the div become empty which makes me think the variable is being set to null or is being destroyed completly.
This makes me wonder something at a basic level is failing with respect to IE7. This bug does not happen in IE6, Opera 9.22, FF and Safari 2.0.4 for Mac.
What is also interesting is that is appears $.get() does not work in 1.1.3.1 or 1.1.4. I have not tried any earlier versions as I do not use it.
Attachments (0)
Change History (3)
Changed August 27, 2007 03:50AM UTC by comment:1
Changed August 27, 2007 04:03AM UTC by comment:2
I figured out for my purposes. There was an extra floating </div> that I never caught because it never stopped working until I upgraded to 1.1.4. I appears whatever was changed in this version "broke" it only for IE7. Not sure if it is some kind of eval or something but disregard this bug report otherwise.
Sorry.
Changed November 06, 2007 04:09AM UTC by comment:3
milestone: | 1.2 → 1.2.2 |
---|---|
resolution: | → invalid |
status: | new → closed |
Submitter asserts this is not a bug. Marking invalid. Repost if necessary.
It appears that I had something in my code somewhere that was causing IE to die but the other browsers to work. So it is something specific to IE7. I am going to look and see if I can find the cause.
However $.get() I can not get to work even with the simplest return of html or just plain text.