Opened 15 years ago
Closed 14 years ago
#2468 closed bug (worksforme)
html() funtion of jQuery does't work correctly in ie
Reported by: | chsenr | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.2.4 |
Component: | ajax | Version: | 1.2.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description (last modified by )
$.ajax({ type: "GET", url: '/test/ok.txt',//the html text in this file can't be appended to <div id="c"></div> correctly in ie //url: '/test/oops.txt',//but this is not. //by the way .the content in two file can be appended to <div id="c"></div>. complete :function (http_req,status){ if(status=='success'){ jQuery('#c').html(http_req.responseText); } else { //error } } });
encoding of ok.txt and oops.txt is utf8.
Attachments (2)
Change History (6)
Changed 15 years ago by
Changed 15 years ago by
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
Have you tried using the options 'success' and 'error' instead ? The 'complete' seems to have a different purpose, it doesn't even receive the response.
comment:3 Changed 15 years ago by
Component: | core → ajax |
---|---|
Description: | modified (diff) |
Priority: | critical → major |
comment:4 Changed 14 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
This is because the oops.txt has a BOM (Byte Order Mark) and IE can't seem to handle it. Remove the BOM and it will work just fine.
Note: See
TracTickets for help on using
tickets.
my ie verson is ie6