Tuesday 15 February 2011

fine uploader - Upload button appears when not called- but i have 2 instances -



fine uploader - Upload button appears when not called- but i have 2 instances -

i have created 2 instances of s3 uploader in page , have given them different div names. 1 of instances set auto upload , other set manual upload edit file names set.

however instance auto upload pulling upload button other instance well. sits there , nil because upload works intended- automatically. other rogue button both forms work want.

this div button have in 1 instance

class="lang-html prettyprint-override"><div id="triggerupload-feeds" class="qq-upload-button start-upload" style="margin-top: 10px;cursor:pointer;">upload</div>

fine uploader ui looks template in document id of "qq-template". therefore, both uploaders beingness constructed same template. if want multiple uploaders on same page pull different templates, you'll need ensure define multiple templates in markup, each different id. you'll need reference appropriate template when build each fine uploader ui instance.

for example:

class="lang-html prettyprint-override"><script type="text/template" id="qq-template1"> <!-- template markup here --> </script> class="lang-html prettyprint-override"><script type="text/template" id="qq-template2"> <!-- template markup here --> </script> class="lang-js prettyprint-override"><script> var uploader1 = new qq.fineuploader({ template: 'qq-template1' }); var uploader2 = new qq.fineuploader({ template: 'qq-template2' }); </script>

for more info, see templating/styling feature page in docs.

fine-uploader

No comments:

Post a Comment