jQuery Soap客户端(大型XML,Firefox问题) [英] jQuery Soap Client (Large XML, Firefox Problem)
问题描述
我对使用xml格式的SoapClient调用收到的larga数据有疑问。在IE,Chrome,Safari上工作正常,但只有当记录小于15时才能读取Mozilla Firefox。
然后脚本代码是;
尝试{
var url =' - 我的服务网址 - ';
var pl =新的SOAPClientParameters();
pl.add('userId',sessionStorage.getItem(filterUserId));
SOAPClient.invoke(url,getLogs,pl,true,returnLog)
}
catch(e){
$ .msg({content:'ERROR:'+ e,autoUnblock:false});
$('#divLoading')。toggle('Hide');
}
函数returnLog(returnValue){
I Have an issue with a larga data received by a call of SoapClient with xml format. Work fine on IE, Chrome, Safari but Mozilla Firefox read only if records is less than 15.
Then script code is;
try {
var url = ' -- my service url -- ';
var pl = new SOAPClientParameters();
pl.add('userId', sessionStorage.getItem("filterUserId"));
SOAPClient.invoke(url, "getLogs", pl, true, returnLog)
}
catch(e) {
$.msg({ content: 'ERROR: ' + e , autoUnblock : false});
$('#divLoading').toggle('Hide');
}
function returnLog(returnValue) {
xmlDoc = $.parseXML(returnValue);
$xml = $(xmlDoc);
$xml.find(nodeName).each(function() {
$field1 = $(this).find('historyId');
$field1Value = $field1.text();
$field2 = $(this).find('taskDesc');
$field2Value = $field2.text();
});;
}
这是XML结构,我需要500条记录aprox。
This is the XML Structure, I need 500 records aprox.
<logData>
<log>
<historyId></historyId>
<taskDate></taskDate>
<userFullName></userFullName>
<businessName></businessName>
<project></project>
<task> </task>
<totalHours></totalHours>
<taskDesc></taskDesc>
</log>
</logData>
推荐答案
.msg ({content:'ERROR:'+ e,autoUnblock:false});
.msg({ content: 'ERROR: ' + e , autoUnblock : false});
('#divLoading')。toggle('Hide');
}
函数returnLog(returnValue){
('#divLoading').toggle('Hide');
}
function returnLog(returnValue) {
xmlDoc =
.parseXML(returnValue);
.parseXML(returnValue);
这篇关于jQuery Soap客户端(大型XML,Firefox问题)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!