所以我必須提交按鈕,看起來像這樣:的JavaScript/jQuery的禁止提交點擊按鈕,防止重複提交
<a href="#" id="submitbutton"
onClick="document.getElementById('UploaderSWF').submit();">
<img src="../images/user/create-product.png" border="0" /></a>
當我雙擊它雙重的提交顯然,問題是, 我m將信息保存在數據庫中,所以我將在那裏發佈dublicate信息, ,我不想那樣。這位上傳使用閃存和javscript這裏是代碼的一小片 ,是有關提交的東西(如果它幫助)
$.fn.agileUploaderSubmit = function() {
if($.browser.msie && $.browser.version == '6.0') {
window.document.agileUploaderSWF.submit();
} else {
document.getElementById('agileUploaderSWF').submit();
return false;
}
}
謝謝你們。 我感謝您的幫助。這真的是我無法自己做的事 ,因爲我有這樣一個與js的小經驗,我真的不知道如何 做東西。 謝謝。
謝謝,我會嘗試。 – inrob 2012-07-28 23:09:39
你好Raisch。感謝您的解決方案。我申請你的第二個代碼 ,它沒有真正的工作。仍然提交多次。我是否也應用第一塊代碼? – inrob 2012-07-28 23:37:27
@bornie - 沒問題,所以你可以接受這個答案。 :-) – Raisch 2012-07-28 23:40:49