0
我有以下代碼。上傳工作正常。現在,當我沒有輸入視頻標題並選擇要上傳的視頻文件時,它會給我javascript信息輸入視頻標題,但立即通過uploadify啓動視頻上傳。因此,如果未選擇視頻標題,我想停止視頻上傳過程。請幫助解決這個問題。如何在uploadify中的特定javascript事件中停止文件上傳
function frm_add_validateform()
{
with(document.frm_add)
{
if(trim(txt_title.value)=="")
{
alert("Please enter video clip title.");
txt_title.focus();
return false;
}
}
return true;
}
<form name="frm_add" action="video_clip_add_p.php?pkid=<?php print($int_pkid);?>" method="post" onSubmit="return frm_add_validateform();" enctype="multipart/form-data">
<input type="text" id="txt_title" name="txt_title" class="clsTextBox" size="100" maxlength="100">
<input type="file" id="file_upload" name="file_upload" placeholder="Select your file to upload">