我无法解决IE上的plupload,jquery和ajax问题< 10.在其他浏览器上,我没有问题(firefox,chrome,IE10 +)。
当我选择后运行我的表单时,我有这个错误:
"打破JScript运行时错误" " SCRIPT5022:NOT_FOUND_ERR:NOT_FOUND_ERR:DOMException 8" " plupload.full.min.js,第15行24347"
我的代码如下: 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 [<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>
我希望有人可以帮助我,因为我长期寻求解决方案。
谢谢。
艾伦