title: Uploadify unknown error
body: <p>I cant seem to get Uploadify (2.1.4) to work, In Google Chrome Inspector the console shows no errors during initialization, however, clicking on the select files button results in nothing happening and pressing the upload button results in:</p>
  
  <pre><code>Uncaught TypeError: Object #&lt;HTMLObjectElement&gt; has no method 'startFileUpload'
  </code></pre>
  
  <p>I have no Idea where to look, the weird thing is it only shows an error when any button or function is called, however the .uploadify(); is working fine.</p>
  
  <p>I am using:
   - JQuery 1.7.1
   - Twitter Bootstrap (in this case the twipsy &amp; modal javascript files)</p>
  
  <p>This is the code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(function(){
      $("#uploadPopup").modal({
          backdrop: "static",
          keyboard: false
      });
  
      var uploadBox = '&lt;div id="status-message"&gt;Select some files to upload:&lt;/div&gt;\
                      &lt;div id="fileQueue"&gt;&lt;/div&gt;\
                      &lt;input id="fileUploadSelector" type="file" name="Filedata" /&gt;';
      var uploadInProgress = false;
  
      $("#uploadphoto").click(function(){
          $("#uploadPopup h3").html("Video Uploader");
          $("#uploadPopup .modal-body").html(uploadBox);
  
          $('#fileUploadSelector').uploadify({
              'uploader': 'static/flash/uploadify/uploadify.swf',
              'script': 'www.example.com/script.php',
              'cancelImg': 'static/images/uploadify/cancel.png',
              'multi': true,
              'auto': false,
              'fileExt': '*.jpg;*.gif;*.png;*.bmp',
              'fileDesc': 'Image Files (.JPG, .GIF, .PNG, .BMP)',
              'queueID': 'fileQueue',
              'queueSizeLimit': 100,
              'simUploadLimit': 2,
              'removeCompleted': true,
              'buttonText': 'Select Files',
              'onSelectOnce': function (event, data) {
                  $('#status-message').text(data.filesSelected + ' files have been added to the queue.');
              },
              'onAllComplete': function (event, data) {
                  $('#status-message').text(data.filesUploaded + ' files uploaded, ' + data.errors + ' errors.');
                  uploadInProgress = false;
                  $("#uploadMedia").button('reset');
              },
              'onClearQueue': function (event, data) {
                  $('#status-message').text('Upload Cancelled');
                  uploadInProgress = false;
                  $("#uploadMedia").button('reset');
              }
          });
  
          $("#uploadPopup").modal({
              backdrop: "static",
              keyboard: false
          });
      });
  
      $("#uploadMedia").live('click', function(){
          $("#fileUploadSelector").uploadifyUpload();
          uploadInProgress = true;
      });
  
      $("#cancelUpload").live('click', function(){
          var answer = confirm("Are you sure you want to cancel the upload?");
              if(answer) {
                  $("#fileUploadSelector").uploadifyClearQueue();
                  $('#uploadPopup').modal('hide');
                  return true;
              } else {
                  return false;
              }
      });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>And the HTML part:</p>
  
  <pre><code>&lt;div class="btn success" id="uploadphoto"&gt;Upload Photo&lt;/div&gt;
  
  &lt;div id="uploadPopup" class="modal hide"&gt;
      &lt;div class="modal-header"&gt;
          &lt;h3&gt;Photo viewer&lt;/h3&gt;
      &lt;/div&gt;
      &lt;div class="modal-body"&gt;
      &lt;/div&gt;
      &lt;div class="modal-footer"&gt;
          &lt;a href="#" class="btn primary" id="uploadMedia" data-toggle="Uploading.."&gt;Upload&lt;/a&gt;
          &lt;a href="#" class="btn secondary" id="cancelUpload"&gt;Cancel&lt;/a&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Explanation:
   - A user presses the #uploadphoto button and a modal appears (during this step also the uploadify initializes)
   - The modal contains a button (#uploadMedia) which, when pressed, starts the upload.
   - pressing the cancel button (#cancelUpload) cancels the upload and closes the modal</p>
  
  <p>Please note this is still some prototype coding, cleanup still has to take place.</p>
  
  <p>Thanks for any help in advance.</p>