weixin_33713350 2015-01-06 10:06 采纳率: 0%
浏览 29

Plupload运行时IE <10

I can't resolve a problem with plupload, jquery and ajax on IE < 10. On the others browsers, I have not a problem (firefox, chrome, IE10+).

When I run my form after having chosen, I have this error :

"Breaking on JScript runtime error" "SCRIPT5022: NOT_FOUND_ERR: NOT_FOUND_ERR: DOMException 8" "plupload.full.min.js, line 15 character 24347"

My code is as follow : upload.js

var uploader = new plupload.Uploader({
browse_button: 'browse', // this can be an id of a DOM element or the DOM element itself                                                                                                                 
runtimes : 'html5,flash,html4',
url: '/test_carnac_plupload/upload.php',
container : 'container',
max_file_size : '1mb',
multipart : 'false',
multi_selection : 'false',
filters: [
    {title: "fasta", extensions : "fasta, fa"}
],
flash_swf_url : "/libs/Moxie.swf",
});


uploader.init();

uploader.bind('FilesAdded', function(up, files) {
  var file_info = '';
  plupload.each(files, function(file) {
    file_info = file.name + '(' + plupload.formatSize(file.size) + ')';
   });
  $("#name_file").text(file_info);
});

uploader.bind('Init', function(up, params) {
   alert("Current runtime: " + params.runtime);
});

uploader.bind('Error', function(up, err) {
   if(err.code=="-600"){
     alert("Your fasta file is too big, the size maximum is 1mb");
   }
   else if(err.code=="-601"){
     alert("The file accepted are the fasta with the extension : .fasta and .fa");
   }
   else{
     alert(Error+" : "+err.code + ": " + err.message);
   }
 });

form.php

<html><body>
<form id="formulaire" method="post">
 <div class="formulaire">
<table class="vide">
  <tr>
<td class="label">Enter a <b>name</b> for the sequences 
  <i>(optional) </i> : 
  <input type="text" name="seq_name" size="20" />
</td>
  </tr>
</table>
</div>

<div class="formulaire">
<table class="vide">
  <tr>
<td class="label"><b>Paste</b> your RNA sequences in FASTA
  format &nbsp;&nbsp;[<a href="#carnac/help.php#fasta">?</a>]
</td>
  </tr>
  <tr>
<td>
  <textarea id="paste_seq" name="sequence" rows="15" cols="40"></textarea>
</td>
  </tr>
  <tr>
<td>
  or
</td>
  </tr>
  <tr>
<td class="label"> 
  <div id="container">
     <table><tr>
     <td><b>upload</b> a file</td>
         <td><button id="browse">Parcourir...</button></td>
         <td><div id="name_file">None</div></td>
     </table>
  </div> 
</td>
  </tr> 
  <tr>
<td><input id="ex1" type="submit" name="example" value="Example" /></td>
  </tr>
</table>
</div>

<div class="formulaire">
<table class="vide">
  <tr>
<td class="label">
  <input type="checkbox" name="GC" value="pourcentage GC" />
  Disable threshold correction according to GC%
  [<a href="#carnac/help.php#gccontent">?</a>]
</td>
  </tr>
</table>
</div>


<div class="formulaire">
  <table class="vide">
  <tr>
 <td class="label"> 
  Enter your <b>E-mail</b> address <i>(optional)</i>: 
  <input type="text" name="email" size="20" />
</td>
  </tr>
</table>
</div>

<div class="center">
<input type="submit" id="reset" name="reset" value="Reset" /> 
<input type="submit" id="run" name="button" value="Run CARNAC" />
<input type="hidden" name="command" value="request" /> 
</div>

<script src="/test_carnac_plupload/js/upload_file.js" type="text/javascript"></script>
<script src="/test_carnac_plupload/js/script.js" type="text/javascript"></script>

</form>

</body><html>

I hope someone can help me as I seek the solution for long time.

Thank you.

Alan

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题
    • ¥15 wpf界面一直接收PLC给过来的信号,导致UI界面操作起来会卡顿
    • ¥15 init i2c:2 freq:100000[MAIXPY]: find ov2640[MAIXPY]: find ov sensor是main文件哪里有问题吗
    • ¥15 运动想象脑电信号数据集.vhdr
    • ¥15 三因素重复测量数据R语句编写,不存在交互作用
    • ¥15 微信会员卡等级和折扣规则
    • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
    • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
    • ¥15 gdf格式的脑电数据如何处理matlab
    • ¥20 重新写的代码替换了之后运行hbuliderx就这样了