最近項目很多,忙的吐血,可能是自己很久沒寫代碼的原因吧,現在的我,很想天天待在公司電腦面前,Call Center的項目一個版本終于要發布了,有點激動,呵呵,畢竟是進公司以后做的第一個項目。不過期間也遇到很多問題,也發現自己在JSTL上的不足。
總結了一下最近遇到的問題,也就有了這個文檔:
FCKeditor的驗證bug:提交兩次解決方法:
var oEditer;
function check()
{
var content_value = oEditer.GetXHTML(true);
if(document.getElementById("info_title").value=="")
{
alert("the title is null,please entry the title!!");
return false;
}
else if(content_value == "")
{
alert("the content is null,please entry the content!!");
return false;
}
else
{
return true;
}
}
function FCKeditor_OnComplete(editorInstance)
{
oEditer = editorInstance;
}
posted on 2008-11-07 17:00
楓中玎玲 閱讀(317)
評論(0) 編輯 收藏 所屬分類:
JavaScript