Hi all,
I have an odd problem with ajax. I have been using dojo for awhile but have decided to make my own ajax function. Here is the code

Code:
  //begins an ajax request
  function ajaxRequest(requestObj){
    var xhr = getXHR();            
    if (xhr.overrideMimeType) {
        xhr.overrideMimeType("text/javascript");
    }
    xhr.onreadystatechange = function(){processXHRResponse(xhr,requestObj)};
    xhr.open('GET', requestObj.url + Math.random(), requestObj.async);
    xhr.send(null);
  }  


  //This method is called by the response
  function processXHRResponse(xhr,requestObj){
    //readyState  0 = Uninitialized 1 = Loading  2 = Loaded  3 = Interactive  4 = completed  
     try {
        if (xhr.readyState == 4) {
            if (xhr.status == 200) {
                equestObj.load(eval('' + xhr.responseText));
            } else {
                rrequestObj.error();
            }
        }
    }
    catch(e) {
        alert('Caught Exception: ' + e.description);
    }
  }
  function getXHR(){
    var xhr;
	try{
		// Opera 8.0+, Firefox, Safari
		xhr = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			xhr = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				alert("Sorry, it looks like your browser may not be AJAX enabled");
				return false;
			}
		}
	}
    return xhr;
  }

So, this code works just fine on most browsers, but on mozilla 1.7.12 the responseText is only partially full. I am returning large amounts of data, about 5-10 thousand characters. On mozilla, the responseText will only be partially filled a random amount.

I tested my application with dojo and yui, it worked fine on mozilla, so what am I doing wrong??

Thanks guys
AFrieze