随笔-37  评论-58  文章-4  trackbacks-0
    最近项目很多,忙的吐血,可能是自己很久没写代码的原因吧,现在的我,很想天天待在公司电脑面前,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 枫中玎玲 阅读(303) 评论(0)  编辑  收藏 所属分类: JavaScript

只有注册用户登录后才能发表评论。


网站导航: