Torna al Thread

[CODE] <!-- Video --> <script type="text/javascript"> $(function () { $("#fuVideo").uploadify({ 'fileSizeLimit' : '0', 'swf': '/Scripts/Uploadify/uploadify.swf', 'uploader': '/Handler/FileUpload.ashx', 'fileTypeDesc' : 'Video Files', 'fileTypeExts' : '<%= YouTube.VIDEO_FORMAT %>', 'queueSizeLimit' : 1, 'removeTimeout' : 1, 'multi': false, 'auto': false, 'successTimeout': 36000, 'onUploadSuccess' : function(file, data, response) { $('#loading').hide(); if(response) { var obj = jQuery.parseJSON(data); if(obj.msg_error == '') { $('#<%= hdYouTube.ClientID %>').val('[{"Key" : "VideoId", "Value" : "' + obj.id_item + '" },{"Key" : "Image", "Value" : "' + obj.filename + '"}]'); var operazione = $('#<%= hdOperazione.ClientID %>').val(); switch(operazione) { case "applica": $('#<%= btnApplica.ClientID %>').click(); break; case "salva": $('#<%= btnSalva.ClientID %>').click(); break; } } else { $('#loading').hide(); alert(obj.msg_error); e.preventDefault(); } } else { $('#loading').hide(); alert('<%= Messaggi.ERR_UPLOAD_VIDEO %>'); e.preventDefault(); } }, 'onUploadError' : function(file, errorCode, errorMsg, errorString) { $('#loading').hide(); alert('<%= Messaggi.ERR_UPLOAD_VIDEO %>'); e.preventDefault(); }, 'onUploadStart' : function(file) { $('#fuVideo').uploadify('settings','formData',{ 'type' : 'video_news', 'title' : $('#<%= txtTitolo.ClientID %>').val(), 'title_old' : $('#<%= hdTitleOld.ClientID %>').val(), 'category' : $('#<%= ddlCategoria.ClientID %>').val(), 'description' : $('#<%= txtDescription.ClientID %>').val(), 'keywords' : $('#<%=txtKeywords.ClientID %>').val() }); } }); }); </script> <!-- fine Video --> [/CODE]
Copyright © dotNetHell.it 2002-2025
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5