Hi all,

I struggled with this one all day. Could it be that error is broken
when you try to do a file upload in FireFox?

My HTML (fragment):
<tr>
  <td>Batch type:</td>
  <td>
      <select name="importtype">
          <option value="1">1</option>
          <!-- other option omitted for brevety -->
      </select>
  </td>
</tr>
<tr>
  <td>Bestand:</td>
  <td><input type="file" name="file" /></td>
</tr>
<tr>
  <td colspan="2"><input type="submit" value="Importeren" /></td>
</tr>

My script:
<script type="text/javascript">
$(document).ready(function(){
        var options = {
        error: function(){
            alert('Error loading XML document');
        },
        success: function(){
            alert('Success loading XML document');
        }
    };
    $('#myForm').ajaxForm(options);
});
</script>

Seems to work in IE (7), but not in FF (2).


Groeten,

Friso

Reply via email to