Closed Bug 346850 Opened 19 years ago Closed 19 years ago

for Ajax, XMLHttpRequest can only send/receive a maximum of 4096 size

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 194231

People

(Reporter: syedatifnazir, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5 I am trying to use simple XMLHttpRequest object to send/receive for Ajax implementation. However, it allows the maximum of 4096 data size on mozilla firefox. I tried the same code on Internet Explorer and it can send/receive more than 4096 data size. here is a piece of the code I am using: -------------------------------- //the following two functions are helper infrastructure to //craete a XMLHTTPRequest and register a listner callback function function newXMLHttpRequest() { var xmlreq = false; if (window.XMLHttpRequest) { xmlreq = new XMLHttpRequest(); } else if (window.ActiveXObject) { // Try ActiveX try { xmlreq = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e1) { // first method failed try { xmlreq = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e2) { // both methods failed } } } return xmlreq; } function getReadyStateHandler(req, responseXmlHandler) { return function () { if (req.readyState == 4) { if (req.status == 200) { responseXmlHandler(req.responseXML); } else { alert("Ajax error"); } } } } Reproducible: Always Steps to Reproduce: 1.create a simple AJAX implementation using XMLHttpRequest object. 2.send/receive data using responseXmlHandler. 3.only 4096 bytes of data will be allowed Actual Results: All data after 4096 characters are not received or sent using this Ajax support. The same code works fine on IE. Expected Results: Mozilla can also send/receive more than 4096 bytes of data
Dupe of/related to bug 194231?
responseXML was using DOM, and one of the DOM Nodes was required to be more than 4096 characters, which did not work. >> responseXmlHandler(req.responseXML); However, it worked fine when responseText was used instead.
*** This bug has been marked as a duplicate of 194231 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.