• Error with FireFox 3.0.19

    By Carl Tyler 1 decade ago

    getting an error with Firefox, works fine with IE. This is just the sample db, nothing else.



    uncaught exception: [Exception… "Not enough arguments [nsIXMLHttpRequest.send]" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: http://www.acme.com/photoreserv.nsf/NP_Picker.js?OpenJavascriptLibrary :: _XMLHttpReq :: line 148" data: no]



    Line 0

    • Figured it out

      By Carl Tyler 1 decade ago

      The Code


      if ( H_REQUEST)<br/>
      


          {   H_REQUEST.onreadystatechange = function () { _XMLHttpReqResult( _Func); }<br/>
      


              H_REQUEST.open( str_Type, new String( str_Url), true);<br/>
      


              if( str_Type == 'GET') {<br/>
      


                  H_REQUEST.send();<br/>
      


              } else {<br/>
      


                  H_REQUEST.send( str_PostParam);<br/>
      


              }// if<br/>
      


      }// if<br/>
      



      Needs change to


      if ( H_REQUEST)<br/>
      


          {   H_REQUEST.onreadystatechange = function () { _XMLHttpReqResult( _Func); }<br/>
      


              H_REQUEST.open( str_Type, new String( str_Url), true);<br/>
      


              if( str_Type == 'GET') {<br/>
      


                  H_REQUEST.send(null);<br/>
      


              } else {<br/>
      


                  H_REQUEST.send( str_PostParam);<br/>
      


              }// if<br/>
      


      }// if<br/>
      



      The H_REQUEST.send(); line creates an error in FireFox.