vendredi 18 avril 2014

JavaScript - appelez Dropzone.js dans django - Stack Overflow


I have Dropzone that I use with django, am trying to integrate dropzone programmatically so that I call it on a div, I try this,


<script type="text/javascript">
var myDropzone = new Dropzone("div#myDropzone", { url: "/jmplistcsv/"});
</script>

and I call it on a div like this


<div id="myDropzone"  class="dropzone"style=height:100px></div>

It does not work though,am not sure how to provide the url value in a django style,this might be the problem though again not sure. can any one help please? Regards



I have Dropzone that I use with django, am trying to integrate dropzone programmatically so that I call it on a div, I try this,


<script type="text/javascript">
var myDropzone = new Dropzone("div#myDropzone", { url: "/jmplistcsv/"});
</script>

and I call it on a div like this


<div id="myDropzone"  class="dropzone"style=height:100px></div>

It does not work though,am not sure how to provide the url value in a django style,this might be the problem though again not sure. can any one help please? Regards


0 commentaires:

Enregistrer un commentaire