plupupload POST data to dump.php using ajax through start upload button -


i want pass plupupload array using ajax through autoclick save button, while press start upload button output dump.php html5_plupupload_count=0

<form method="post" name="form1" id="form1" action="dump.php" enctype="multipart/form-data">         <div id="html5_uploader" style="width: 600px; height: 315px;">your browser doesn't have html 4 support.</div>            <input type="submit" value="save" class="plupload_button" name="subsession" id="subsession"/>     <input name="eid" type="hidden" id="eid" value="<?php echo time(); ?>" /> </form> $(function()  {     $("#html5_uploader").pluploadqueue(         {         runtimes : 'html5',         url : 'upload.php',                 unique_names : true,          filters : [             {title : "image files", extensions : "tiff,png,gif,jpg,jpeg,ico,bmp"}         ]     });     $('.plupload_start').click(function(e)     {           $('#subsession').click();     });     $(document).ready(function()     {         $('.plupload_start').click(function()          {               $.ajax({                  type: "post",                  url: "dump.php",                  data: {'form1': $("#form1").serialize()},                  success: function(msg)                  {                     alert("form submitted: " + msg);                  }               });         });      }); }); 

     $.post("dump.php", {          form1: $("#form1").serialize()     }).done(function(msg) {           alert("form submitted: " + msg);     }); 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -