1
我有一個表單提交一個php文件到iframe。加載圖像,同時表單加載php腳本到iframe
這裏是形式:
<form action="del.php" method="post" target="output" >
Server: <input type="text" name="server_id" value="" />
Name:<input type="text" name="name" value="" />
Password:<input type="password" name="password" value="" /> <br>
Create Log? <input type="checkbox" name="log" value="" />
Output list of files? <input type="checkbox" name="out" value="" /><br>
<input type="submit" name="delete" value="Delete FTP!" /></td><br>
<iframe id="output" ></iframe>
del.php刪除一個三層架構的遠程FTP文件。這個遞歸函數需要一段時間。 現在我想通過加載del.php到iframe來顯示加載圖像。
看看AJAX和jQuery,它們使你能夠完成你正在尋找的東西。 – TryingToImprove 2013-02-11 21:13:15
有del.php輸出「加載圖像」到iframe中,然後[刷新輸出] [1]。 [1]:http://stackoverflow.com/questions/3483035/php-flushing-output-as-soon-as-you-call-echo – 2013-02-11 21:14:25
不幸的是我對Java – Sm0ke 2013-02-11 21:19:18