Ticket #4807 (closed bug: fixed)
Offline $.ajax call in IE$ get response as String
| Reported by: | ikkyu | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 1.5 |
| Component: | ajax | Version: | 1.4.4 |
| Keywords: | offline,ajax,IE,xml | Cc: | |
| Blocking: | Blocked by: |
Description
description: Offline ajax call to an offline local html or xml file get response as String, not xml document, and cannot be use with selectors.
reproduction step:
- write ajax call to an offline local html/xml file.
- execute the html/script locally (not via server) in IE6
- The response data type is a String. A selector cannot be applied to the data.
- If specified dataType:"xml", it will call error function. But the response text is the same data string.
I search the Internet and found a website that describe exactly the same problem with a workaround.
http://stackoverflow.com/questions/436670/local-html-file-ajax-call-and-jquery-woes
Change History
comment:1 Changed 3 years ago by dmethvin
- Priority changed from major to low
- Status changed from new to open
- Milestone 1.4 deleted
comment:2 Changed 2 years ago by manuel.richarz@…
Using jQuery 1.4.4 and have exactly the same problem. The Workaround found in the posted Link work fine.
comment:3 Changed 2 years ago by rwaldron
- Keywords offline,ajax,IE,xml,ajaxrewrite added; offline ajax IE xml removed
comment:4 Changed 2 years ago by jaubourg
- Status changed from open to closed
- Resolution set to fixed
The new ajax implementation will automagically parse text as xml if dataType: "xml" has been specified. It's part of a much broader dataType conversion architecture.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
