1 Reply Latest reply on Jun 6, 2008 6:34 AM by Jeesmon

    TypeError: Error #2007: Parameter value must be non-null.

    Sandeep_Paul
      Hi all,

      TypeError: Error #2007: Parameter value must be non-null.

      Code :

      function completeHandler( evt ) {
      var fileData = evt.target.data;
      document.getElementById( "cntr_results" ).innerHTML += fileData;
      var sOriginal= fileData;
      var fileData=sOriginal.trim();

      if(fileData == "success"){
      username = username.value;
      password = password.value;
      storedata = new air.ByteArray();
      storedata.writeUTFBytes( username );
      air.EncryptedLocalStore.setItem( 'username', storedata );
      storedata = new air.ByteArray();
      storedata.writeUTFBytes( password );
      air.EncryptedLocalStore.setItem( 'password', storedata );
      } else {
      document.getElementById( 'username' ).value = '';
      document.getElementById( 'password' ).value = '';
      air.EncryptedLocalStore.removeItem( 'username' );
      air.EncryptedLocalStore.removeItem( 'password' );
      }
      }

      any pointers

      Thanks in advance