久久久久久久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. 如何為我的網(wǎng)絡(luò)應用獲取類似 Gmail 的文件上傳

      How can I get Gmail-like file uploads for my web app?(如何為我的網(wǎng)絡(luò)應用獲取類似 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>
                本文介紹了如何為我的網(wǎng)絡(luò)應用獲取類似 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 中構(gòu)建的.

                My application is built in vb.net.

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

                I would appreciate any kind of help or guidance.

                謝謝

                推薦答案

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

                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 回調(diào)
                • 在上傳開始前獲取文件信息
                • 使用 XHTML 和 css 樣式上傳元素
                • 使用 HTML 上傳文件時顯示信息
                • 無需重新加載頁面
                • 適用于所有支持 Flash 的平臺/瀏覽器.
                • 如果 Flash 或javascript 不可用
                • 在上傳開始前控制文件大小
                • 只在對話框中顯示選擇的文件類型
                • 上傳隊列,開始上傳前刪除/添加文件

                演示

                --iframe 上傳 -----

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

                首先,您希望在您的頁面上有一個 iframe.這用于服務器通信.您稍后會隱藏它,但現(xiàn)在,讓它保持可見.給那個 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.

                現(xiàn)在,在您的表單中,將目標設(shè)置為 iframe 的名稱,并將操作設(shè)置為您在服務器上接受文件上傳的腳本(就像帶有文件上傳的普通表單一樣).在該表單內(nèi)添加一個帶有文本添加文件"的鏈接.設(shè)置該鏈接以運行 javascript 函數(shù),該函數(shù)將向表單添加新輸入.這可以通過 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.

                將新文件輸入添加到表單后,將該輸入的模糊事件設(shè)置為將提交表單的 javascript 函數(shù),然后定期檢查它的輸出.讀取 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.

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

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

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

                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.

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

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

                相關(guān)文檔推薦

                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(從函數(shù)調(diào)用按鈕 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>
                          主站蜘蛛池模板: 国产精品视频一区二区三区 | 国产成人免费视频 | 精品一区国产 | 一区二区精品 | 精品国产乱码久久久久久老虎 | 日本精品久久 | 91九色在线观看 | 三级在线观看 | 午夜在线观看免费 | 天天操 夜夜操 | 国产一级片在线播放 | 久久精品无码一区二区三区 | 毛片视频免费 | 精品欧美一区二区精品久久久 | 精品伊人久久 | 久久成人精品视频 | 亚洲电影专区 | 可以在线观看av的网站 | 亚洲精品日本 | 国产美女一区二区 | 丝袜美腿一区二区三区动态图 | 久久蜜桃av | 黄色毛片在线看 | 欧美国产激情二区三区 | 国产一区二区三区在线 | 不卡的av一区 | 国产美女精品 | 国产成人精品一区二区三区视频 | 丁香一区二区 | 黄色网址大全在线观看 | 激情久久av一区av二区av三区 | 日韩视频在线观看中文字幕 | 成人精品一区二区三区中文字幕 | 精品一区二区电影 | 国产精品高潮呻吟久久久久 | 黄色毛片免费 | 九九热久久免费视频 | 粉色午夜视频 | 亚洲综合一区二区三区 | 欧美日韩中文国产一区发布 | 在线观看日韩av |