首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web Service >

jQuery ajax调web service没法取得信息,解决就发分啦~

2013-01-07 
jQuery ajax调web service无法取得信息,解决就发分啦~~急我如下这个js代码在Google chrome,IE9,firefox都

jQuery ajax调web service无法取得信息,解决就发分啦~~急
我如下这个js代码在Google chrome,IE9,firefox都没问题,可是在IE8下就取不到信息了.
 


<script type="text/javascript">
    function GetEQIDList(ModuleID)
    {
        $.ajax({
            type:"POST", 
            contentType:"application/json",
            url:"/FDCService/FDCService1.asmx/GetToolIDs",
            data:"{moduleID:'"+ModuleID+"'}",
            datatype:'json',
            success:function(result){
            try{
                $('#toolList').empty();
                $("#toolList").append("<option value='" + "All" + "'>" + "All" + "</option>");
                     $(result.d).each(function() {
                            $("#toolList").append("<option selected='selected' value='" + this + "'>" + this + "</option>");
                        });
                }catch(e){
                    alert(e); 
                }
              },
             error: function(result, status){
                if(status=='error'){
                    alert(result);
                }
             }
        });  
    }
</script> 


XML源码如下,我传入ModuleID参数返回List<string>类型数据


<?xml version="1.0" encoding="UTF-8"?>
-<ArrayOfString xmlns="http://tempuri.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <string>ACCCUA01</string> <string>ACCCUA02</string> <string>ACCCWA01</string> <string>ACCOXA01</string> <string>ACCSTA01</string> </ArrayOfString>

[解决办法]
有沒有哪位解決一下啊?

热点排行