Modify ↓
Ticket #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: | ||
| Blocking: | Blocked by: |
Description (last modified by davidserduke) (diff)
$.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
Change History
comment:2 Changed 5 years ago by flesler
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.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

