kasparkuldkepp / upload-at-click

Automatically exported from code.google.com/p/upload-at-click
0 stars 0 forks source link

Not working for multiple elements #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Need to upload 2 different files at 2 different pages
2.
3.

What is the expected output? What do you see instead?
Page A has a upload button where is is working fine, Page B has a upload button 
too where its not working. How to make both work.

What version of the product are you using? On what operating system?

Please provide any additional information below.
$(document).ready(function() {

var tpUploader = document.getElementById('master_trans_upload');
var tp = upclick({
      element: tpUploader,
      action: 'uploadTP.php',
      onstart: function(filename) {
          //alert('Start upload: '+filename);
        },
      oncomplete: function(response_data) {
          alert(response_data);
        }
     });

var crUp = document.getElementById('mcr_upload');
var cr = upclick({
      element: crUp,
      action: 'uploadCR.php',
      onstart: function(filename) {
          alert('Start upload: '+filename);
        },
      oncomplete: function(response_data) {
          alert(response_data);
        }
     });

}); // document ready

Original issue reported on code.google.com by ravi1...@gmail.com on 20 Nov 2012 at 11:32

GoogleCodeExporter commented 8 years ago
Having same problem ..Any body having solution.

Original comment by anand.pe...@sagarsoft.in on 21 Aug 2013 at 1:27