Uploadify - Error calling method on NPObject!
Bonjour,
Je met en place un upload via Uplodify mais je me heurte à l'erreur suivante sous Firebug : Error calling method on NPObject!
Voici mon appel au plugin :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <script type="text/javascript">
$(document).ready(function() {
$("#fileUpload").uploadify({
'uploader': '/js/uploadify/uploadify.swf',
'cancelImg': '/js/uploadify/cancel.png',
'script': '/js/uploadify/upload.php',
'buttonImg' : '/js/uploadify/btn_3dvf.png',
'width' : 127,
'height' : 30,
'rollover' : true,
'folder': '/tmp_portfolio',
'multi': true,
'buttonText': 'Select Files',
'checkScript': '/js/uploadify/check.php',
'displayData': 'speed',
'simUploadLimit': 1,
'onComplete': function(a, b, c, d, e){ alert(d);},
'onAllComplete': function(event,data){
//something here
}
});
});
</script>
<script type="text/javascript">
function startUpload(id){
var queryString = '&' + $('#new_doc_upload').serialize();
$('#fileUpload').uploadifySettings('scriptData',queryString);
$('#fileUpload').uploadifyUpload();
}
</script> |
Et le formulaire :
Code:
1 2 3 4 5 6 7 8
| <form id="new_doc_upload" method="get">
<div id="fileUpload">You have a problem with your javascript</div>
<a href="javascript:startUpload('fileUpload')">Start Upload</a> | <a href="javascript:$('#fileUpload').uploadifyClearQueue()">Clear Queue</a>
<p></p>
Your name <input type="text" name="yourname" /><br />
Your comment <textarea name="yourcomment"></textarea>
</form> |
L'erreur ce produit lors de l'envoi ou lors du cancel du fichier en attente.
Auriez vous une idée de la cause du soucis ?