久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <bdo id='P39v7'></bdo><ul id='P39v7'></ul>

    <small id='P39v7'></small><noframes id='P39v7'>

  1. <tfoot id='P39v7'></tfoot>

  2. <i id='P39v7'><tr id='P39v7'><dt id='P39v7'><q id='P39v7'><span id='P39v7'><b id='P39v7'><form id='P39v7'><ins id='P39v7'></ins><ul id='P39v7'></ul><sub id='P39v7'></sub></form><legend id='P39v7'></legend><bdo id='P39v7'><pre id='P39v7'><center id='P39v7'></center></pre></bdo></b><th id='P39v7'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='P39v7'><tfoot id='P39v7'></tfoot><dl id='P39v7'><fieldset id='P39v7'></fieldset></dl></div>
    <legend id='P39v7'><style id='P39v7'><dir id='P39v7'><q id='P39v7'></q></dir></style></legend>

    1. 如何為我的網絡應用獲取類似 Gmail 的文件上傳

      How can I get Gmail-like file uploads for my web app?(如何為我的網絡應用獲取類似 Gmail 的文件上傳?)

        <bdo id='VllSo'></bdo><ul id='VllSo'></ul>
        • <small id='VllSo'></small><noframes id='VllSo'>

        • <tfoot id='VllSo'></tfoot>
        • <legend id='VllSo'><style id='VllSo'><dir id='VllSo'><q id='VllSo'></q></dir></style></legend>

            1. <i id='VllSo'><tr id='VllSo'><dt id='VllSo'><q id='VllSo'><span id='VllSo'><b id='VllSo'><form id='VllSo'><ins id='VllSo'></ins><ul id='VllSo'></ul><sub id='VllSo'></sub></form><legend id='VllSo'></legend><bdo id='VllSo'><pre id='VllSo'><center id='VllSo'></center></pre></bdo></b><th id='VllSo'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='VllSo'><tfoot id='VllSo'></tfoot><dl id='VllSo'><fieldset id='VllSo'></fieldset></dl></div>
                <tbody id='VllSo'></tbody>
                本文介紹了如何為我的網絡應用獲取類似 Gmail 的文件上傳?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

                我想為我的一個項目添加類似 gmail 的文件上傳功能.有人可以幫我解決這個問題嗎?

                I want to add gmail-like file upload functionality for one of my projects. Can anybody help me with this?

                我的應用程序是在 vb.net 中構建的.

                My application is built in vb.net.

                我將不勝感激任何形式的幫助或指導.

                I would appreciate any kind of help or guidance.

                謝謝

                推薦答案

                查看 SWFUpload,它本質上是一個 javascriptapi to flash 絕對優越的文件上傳處理能力.在瀏覽器最終趕上之前最好的事情.

                Check out SWFUpload, which is essentially a javascript api to flash's absolutely superior file upload handling capabilities. Best thing out there until the browsers finally catch up.

                來自鏈接:

                • 在對話框中通過 ctrl/shift-selecting 一次上傳多個文件
                • 所有事件的 Javascript 回調
                • 在上傳開始前獲取文件信息
                • 使用 XHTML 和 css 樣式上傳元素
                • 使用 HTML 上傳文件時顯示信息
                • 無需重新加載頁面
                • 適用于所有支持 Flash 的平臺/瀏覽器.
                • 如果 Flash 或javascript 不可用
                • 在上傳開始前控制文件大小
                • 只在對話框中顯示選擇的文件類型
                • 上傳隊列,開始上傳前刪除/添加文件

                演示

                --iframe 上傳 -----

                ----- iframe upload -----

                首先,您希望在您的頁面上有一個 iframe.這用于服務器通信.您稍后會隱藏它,但現在,讓它保持可見.給那個 iframe 一個 name 屬性,比如uploader"之類的.

                To start, you want to have an iframe on your page. This is meant for server communication. You'll hide it later, but for now, keep it visible. Give that iframe a name attribute, like "uploader" or something.

                現在,在您的表單中,將目標設置為 iframe 的名稱,并將操作設置為您在服務器上接受文件上傳的腳本(就像帶有文件上傳的普通表單一樣).在該表單內添加一個帶有文本添加文件"的鏈接.設置該鏈接以運行 javascript 函數,該函數將向表單添加新輸入.這可以通過 DOM 完成,但我會推薦一個 JavaScript 庫,例如 jquery.

                Now, in your form, set the target to the iframe's name and the action to a script you have on the server that will accept a file upload (like a normal form with a file upload). Add a link inside that form with the text "Add File". Set that link to run a javascript function which will add a new input to the form. This can be done via the DOM, but I would recommend a javascript library like jquery.

                將新文件輸入添加到表單后,將該輸入的模糊事件設置為將提交表單的 javascript 函數,然后定期檢查它的輸出.讀取 iframe 可能會很棘手,但這是可能的.

                Once the new file input is added to the form, set the blur event of that input to a javascript function that will submit the form and then check it periodically for output. Reading an iframe can be tricky, but it's possible.

                讓您的文件上傳腳本輸出完成".或上傳完成時的文件名或其他內容.

                Have your file upload script output a "Done." or a filename or something when the upload is complete.

                每隔一秒左右檢查一次,直到有內容為止.獲得內容后,終止計時器并將文件輸入替換為文件名(或文件上傳")或其他任何內容.

                Check it every second or so until there is content. Once you have content, kill your timer and replace the file input with the name of the file (or "File Uploaded") or whatever.

                用 css 隱藏你的 iframe.

                Hide your iframe with css.

                這篇關于如何為我的網絡應用獲取類似 Gmail 的文件上傳?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                Deleting a directory when clicked on a hyperlink with JAvascript.ASP.NET C#(單擊帶有 JAvascript.ASP.NET C# 的超鏈接時刪除目錄)
                asp.net listview highlight row on click(asp.net listview 在單擊時突出顯示行)
                Calling A Button OnClick from a function(從函數調用按鈕 OnClick)
                ASP.net C# Gridview ButtonField onclick event(ASP.net C# Gridview ButtonField onclick 事件)
                Adding OnClick event to ASP.NET control(將 OnClick 事件添加到 ASP.NET 控件)
                Multiple submit Button click problem?(多個提交按鈕點擊問題?)

                  <bdo id='Cl47O'></bdo><ul id='Cl47O'></ul>
                    <tfoot id='Cl47O'></tfoot>
                        <tbody id='Cl47O'></tbody>

                    • <i id='Cl47O'><tr id='Cl47O'><dt id='Cl47O'><q id='Cl47O'><span id='Cl47O'><b id='Cl47O'><form id='Cl47O'><ins id='Cl47O'></ins><ul id='Cl47O'></ul><sub id='Cl47O'></sub></form><legend id='Cl47O'></legend><bdo id='Cl47O'><pre id='Cl47O'><center id='Cl47O'></center></pre></bdo></b><th id='Cl47O'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Cl47O'><tfoot id='Cl47O'></tfoot><dl id='Cl47O'><fieldset id='Cl47O'></fieldset></dl></div>

                      • <small id='Cl47O'></small><noframes id='Cl47O'>

                          <legend id='Cl47O'><style id='Cl47O'><dir id='Cl47O'><q id='Cl47O'></q></dir></style></legend>
                          主站蜘蛛池模板: 欧美 日韩 国产 成人 | 蜜月aⅴ国产精品 | 欧美一级大片 | 黄色亚洲 | 2020亚洲天堂| 免费视频一区 | 美女艹b| 性国产xxxx乳高跟 | 色综合天天天天做夜夜夜夜做 | 一区二区三区精品视频 | a在线视频观看 | 亚洲一区亚洲二区 | 亚洲图片视频一区 | av在线播放网址 | 亚洲精品永久免费 | 在线观看成年人视频 | 亚洲精品一区二区二区 | 黄在线 | 羞羞视频免费在线观看 | 国产清纯白嫩初高生在线播放视频 | 丁香六月伊人 | 鸳鸯谱在线观看高清 | 久久aⅴ乱码一区二区三区 91综合网 | 一级片成人 | 一区二区中文 | 日本不卡一区二区三区 | 毛片网络 | 99色播 | 国产精品久久久久久一级毛片 | 欧美一区成人 | 亚洲一区在线观看视频 | 久久国产一区二区 | 国产高清无av久久 | 亚洲狠狠爱 | 中文字幕av网站 | 欧美a√| 色资源在线观看 | 九九热这里只有精品在线观看 | 99re6在线视频精品免费 | 一区二区三区免费观看 | www.亚洲精品 |