admin管理员组文章数量:1326315
Hi can you help me to make a solution about my problem?
This is my code:
$(document).ready(function() {
$('#sample').load('sample.html')
});
after the script execute and the sample.html is now loaded where my...
<form action="upload.php" class="dropzone"></form>
is located the dropzone js is not working.
Please help me about this issue . I can't figured how to make a solution for this.
Thanks!
Hi can you help me to make a solution about my problem?
This is my code:
$(document).ready(function() {
$('#sample').load('sample.html')
});
after the script execute and the sample.html is now loaded where my...
<form action="upload.php" class="dropzone"></form>
is located the dropzone js is not working.
Please help me about this issue . I can't figured how to make a solution for this.
Thanks!
Share Improve this question asked Aug 1, 2013 at 6:17 MacrayMacray 312 bronze badges 4-
is the
dropzone
form is loaded via theload()
mand – Arun P Johny Commented Aug 1, 2013 at 6:19 - Can you please elaborate more about it? is your JS is not working or CSS file is not picked up? – Netwidz Commented Aug 1, 2013 at 6:20
-
@ArunPJohny yes the
dropzone
form is loaded viaload()
– Macray Commented Aug 1, 2013 at 6:38 -
@FahizMohamed The
dropzone.js
is not working – Macray Commented Aug 1, 2013 at 6:39
2 Answers
Reset to default 11You need to tell dropzone to reparse the document. If you using jquery.load method Also only use Dropzone.discover method after uploader is fully loaded.
$('#sample').load('sample.html', function() {
Dropzone.discover();
});
you need to use the $.getScript method to load the JS file.. getScript
$.getScript("yourJsPath", function(data, textStatus, jqxhr) {
console.log(data); //data returned
console.log(textStatus); //success
console.log(jqxhr.status); //200
console.log('Load was performed.');
});
本文标签: javascriptThe Dropzone is not working after Jquery load() executeStack Overflow
版权声明:本文标题:javascript - The Dropzone is not working after Jquery .load() execute - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742203772a2432436.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论