Problem call ajax in IE
Problem call ajax in IE
Hi all,
I have a ASMX service, it is return a string xml:
<Catalogues>
<Catalogue ID="1" Name="Test 1" />
<Catalogue ID="2" Name="Test 3" />
<Catalogue ID="3" Name="Test 3" />
</Catalogues>
I use jquery to call service. In firefox, it works fine, but in IE ....
This is my code:
- $(document).ready(function() {
- var webMethod = "/LVMapService.asmx/GetCatalogueList";
- var parameters = "{'BlogGUID':'f990dc6b-2940-4376-a1e3-88ef7ac01d55'}";
- $.ajax({
- type: "POST",
- url: webMethod,
- data: parameters,
- contentType: "application/json; charset=utf-8",
- dataType: "json",
- success: function(msg) {
- alert(msg.d);
- alert($(msg.d).find('Catalogue').size()); // in FF = 3 but in IE = 0
- },
- error: function(e) { alert(e); }
- });
- });
Sorry about my EN.