2012-03-29 61 views
0

Valumes不顯示Firefox下的UPLOAD按鈕(MVC3項目)。Valums文件上傳器問題

這下正常工作:IE,Chrome的

我要殺了自己,但我不明白,爲什麼是它?

ANYYY CLUUU pleaseeee!

enter image description here

<script src="@Url.Content("~/Scripts/valums/FileUploader.js")" type="text/javascript"></script> 

<div id="fileUploader"> 
     <noscript> 
      <p> 
       Please enable JavaScript to use file uploader.</p> 
      <!-- or put a simple form for upload here --> 
     </noscript> 
</div> 

.................

var button = $('#fileUploader')[0]; 
var uploader = new qq.FileUploader({ 
      element: button, 
      allowedExtensions: ['jpg', 'jpeg', 'png', 'gif'], 
      sizeLimit: 2147483647, 
      action: '@Url.Action("UploadFile")', 
      multiple: false, 
      onComplete: function (id, fileName, responseJSON) { 
      var uploadedFile = "/Images/Orders/thumb-" + responseJSON.uploadedFile; 
      $("#uploadedImage").attr("src", uploadedFile); 
      $("#ImageErrorMessage").text(""); 
    } 
    }); 

回答

0

只要把內$(document).ready(function() { // here });

的VALUMS代碼並保存根據<HEAD>標籤。而已!