FaustCplus.swf 這個新浪破解的上傳用戶頭像組件誰用過呢?


  

 function uploadevent(status) {
                                status += '';     
                                switch (status) {
                                    case '1':
                                        alert('上傳成功!');
                                        document.getElementById('avatar_priview').innerHTML = "<img src='/Images/UserAvatar/<%=CurrentUserID.ToString() %>.jpg?rnd="+ time + "'/>";
                                        break;
                                    case '999':
                                        alert('上傳文件圖片過大,請不要超過最大2M!');
                                        break;
                                    case '888':
                                        alert('服務器出現異常!');
                                        break;
                                    case '2':
                                        if (confirm('js call upload')) {
                                            return 1;
                                        } else {
                                            return 0;
                                        }
                                        break;

                                    case '-1':
                                        alert('cancel!');
                                        window.location.href = "#";
                                        break;
                                    case '-2':
                                        alert('upload failed!');
                                        window.location.href = "#";
                                        break;

                                    default:
                                        alert(typeof (status) + ' ' + status);
                                }
                            }

                            var flashvars = {
                                "jsfunc": "uploadevent",
                                "imgUrl": "/images/Component/mm.jpg",
                                "pid": "75642723",
                                "uploadSrc": true,
                                "showBrow": true,
                                "showCame": true,
                                "uploadUrl": "/Handler/AjaxUserPageHandler.ashx?action=uploadavatar"
                            };

        


context.Response.ContentType = "text/html";
            string action = context.Request.QueryString["action"] ?? string.Empty;
            string content = string.Empty;
            if (!string.IsNullOrEmpty(action))
            {
                action = action.ToLower();
                switch (action)
                {
                    
                    case "uploadavatar":
                        context.Response.ClearContent();
              //本處省略上傳處理方法
                        context.Response.Write("1");
                        context.Response.End();
                        break;
                }
            }


//為什么服務器端返回1,但卻不會執行客戶端的uploadevent這個腳本函數?

7 个解决方案

#1


都沒人,想結貼都不好接,隨便回復,隨便給分

#2




很好~~很歡迎~~

#3


湊個熱鬧。

#4


#5


FaustCplus.swf的上傳對.net來說不怎么好用,所以將FaustCplus.swf做了二次開發,將圖片轉把bt64字符,然后輸出,最后用ajax提交或放到hf里面直接提交保存

#6


FaustCplus不支持新版本的adobe falsh player,還是放棄吧!

#7


誰有英文版的FaustCplus.swf文件嗎

注意!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系我们删除。



 
粤ICP备14056181号  © 2014-2021 ITdaan.com