trisnombolong / json-xml-rpc

Automatically exported from code.google.com/p/json-xml-rpc
0 stars 0 forks source link

firefox truncates long xmlrpc response - suggested fix #19

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. firefox
2. long xmlrpc response

in _parseXMLRPC you return only first child value:

 case 'string': 
 849              if(!typeEL.firstChild)
 850                      return "";
 854              return  typeEL.firstChild.nodeValue;

in firefox it truncates the long xmlrpc response. i fixed the issue by changing:

 848                                 case 'string': 
 849                                         if(!typeEL.firstChild)
 850                                                 return "";
 851                                         var rt = '';
 852                                         for(var child, k=0; child = typeEL.childNodes.item(k); k++)
 853                                             rt += child.nodeValue;  
 854                                         return  rt;

Original issue reported on code.google.com by g...@ivvy.ru on 13 Jan 2012 at 6:24