Changeset 74

Show
Ignore:
Timestamp:
09/23/06 13:34:37 (2 years ago)
Author:
kbarnes3
Message:

Fixed some bugs and now Overhaul comes closer to working, we think.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/overhaul_handler.js

    r73 r74  
    3131         
    3232        // Loop until web page is complete 
    33         var numChunk = md5_list.size()
     33        var numChunk = md5_list.length
    3434        var countChunk; 
    3535        for(countChunk = 0; countChunk < numChunk; countChunk++)        { 
     
    104104 
    105105        var finalVal = ""; 
    106         var cntRcvdAry; 
    107         for(cntRcvdAry=0;receivedDataArray.size();cntRcvdAry++){ 
    108                 finalVal += receivedDataArray[cntRcvdAry]; 
     106        var countReceivedArray; 
     107        for(countReceivedArray=0; countReceivedArray < receivedDataArray.length; countReceivedArray++){ 
     108                finalVal += receivedDataArray[countReceivedArray]; 
    109109        } 
    110110        window._content.document.write(finalVal); 
  • trunk/overhaul_info.js

    r68 r74  
    3333                                onStopRequest: function(request, context, status){ 
    3434                                        instream.close(); 
    35                                         outstream.close(); 
     35                                        outStream.close(); 
    3636                                        myDump("Recieved data from host:"); 
    3737                                        myDump(this.data); 
  • trunk/overhaul_replyer.js

    r70 r74  
    4444 
    4545                        var dataListener = {     
    46                                 onStartRequest: function(request, context)      {     }, 
     46                                onStartRequest: function(request, context)      {myDump("Replyer onStartRequest() is running!")       }, 
    4747                         
    4848                                onStopRequest: function(request, context, status)       { 
  • trunk/overhaul_util.js

    r69 r74  
    1010//                      and binds the stream to the data listener 
    1111//              * datalistener must implement the nsIStreamListener interface 
    12 function bind_stream_to_listener(var datalistener, var scriptable_input_stream)  
     12function bind_stream_to_listener(datalistener, scriptable_input_stream)  
    1313{ 
    1414        var pump = Components.classes["@mozilla.org/network/input-stream-pump;1"]. 
     
    2929// create_scriptable_input_stream 
    3030//              * wraps an input stream with a scriptable input stream 
    31 function create_scriptable_input_stream(var stream) 
     31function create_scriptable_input_stream(stream) 
    3232{ 
    3333        var instream = Components.classes["@mozilla.org/scriptableinputstream;1"]