javascript - PLupload image order on load -


first question here , apologize in advance if research wasnt thorough enough.

i using plupload retrieve images server fine, problem showing them in order in uploaded. image order while retrieving important fundamental part of application.

here code far retrieving:

ready: function() {   plupload = $("#uploader").plupload('getuploader');       var files = new array();   $.get('data/funcs/retrieve.php', function(data) {     <?php foreach($images $key => $val){ ?>       files.push('<?php echo $val; ?>');     <?php } ?>      files.foreach(function(entry) {         var img = new moxie.image();         var url = o.resolveurl(entry);             img.onload = function() {                 plupload.addfile(img.getasblob());             } //end image onload         img.load(url);     });      for(var = 0, upprevioussize = plupload.files.length - files.length, size = files.length; < size; i++) {       files[i]["initialindex"] = (i + upprevioussize) * -1;     }        });  

any appreciated.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -