第四十八章 野外生活(下)(3/7)
.getelementbyid("ctl00_contentceholder1_txtchatername").value;
vaontent=document.getelementbyid("ctl00_contentceholder1_txtchatercontent").value;
vahaterareciation=document.getelementbyid("ctl00_contentceholder1_txtchaterareciation");
varvolumevalue=drbookvolume.otions[drbookvolume.‘edindex].value;
if(tye==1)如果是放到存稿箱,可以不选择分卷
document.getelementbyid("istm").value="0";
if(volumevalue==0){
alert("请选择所在分卷");
return;
}
}else{
document.getelementbyid("istm").value="1";
}
if(cname.trim.length<=0){
alert("请填写章节标题!");
return;
}
if(cname.trim.length>20){
alert("章节名称请少于20字");
return;
}
ifontent.trim.length<=0){
alert("请填写章节内容!");
return;
}
ifhaterareciationam;amhaterareciation.value.trim.length>500){
alert(‘“章节感言”内容长度在0-500字符之间。‘);
returnfalse;
}
if(tye==1){
isresubmit=true;
reqcalcords=false;
calcordsvalid=false;
ontent=document.getelementbyid("ctl00_contentceholder1_txtchatercontent").value;
myajaxmethod.cahaterlenontent,function(result){
reqcalcords=true;
if(result.value>20000){
alert("字数不能超过20000字!");
isresubmit=false;
else{
calcordsvalid=true;
varait=function{
if(reqcalcords==false){
indo.ttimeout(ait,1000);
else{
if(reqcalcords==trueam;am;calcordsvalid==true)*改成服务器端判断字数*/
本章未完,请翻下一页继续阅读.........