Jul 20, 2009, 4:33 AM
About store Field length
hey guys:
i'm writing cms now,has a trouble
about store field length
there is fck editor in my page
i copy some short arctile paste at this editor and sumit,it's ok,can be submit,no failed.
i copy a long arctile paste at this editor and submit,can be submit,But ,when the store reload
see this picture,it has exception
my code
i'm writing cms now,has a trouble
about store field length
there is fck editor in my page
i copy some short arctile paste at this editor and sumit,it's ok,can be submit,no failed.
i copy a long arctile paste at this editor and submit,can be submit,But ,when the store reload
see this picture,it has exception
my code
var savingNews=function()
{
treePanelNews=Ext.getCmp("treeType");
if($("#txtTitle").val()=="")
{
Ext.MessageBox.alert('alert','must be need');
}
else if(Ext.getCmp("cbxSelectType").getValue()=="")
{
Ext.MessageBox.alert('alert','must be need');
}
else if(FCKeditorAPI.GetInstance('txtContent').GetHTML()=="")
{
Ext.MessageBox.alert('alert','must be need');
}
else{
alert(11);
node= treePanelNews.getSelectionModel().getSelectedNode();
var Addingcontent=FCKeditorAPI.GetInstance('txtContent').GetHTML();
if(Ext.getCmp("CheckboxGroup1").items.items[0].checked){isTop=1;}else{isTop=0;}
if(Ext.getCmp("CheckboxGroup1").items.items[1].checked){isHot=1;}else{isHot=0;}
if(Ext.getCmp("CheckboxGroup1").items.items[2].checked){isRecommend=1;}else{isRecommend=0;}
if(Ext.getCmp("CheckboxGroup1").items.items[3].checked){isEnable=1;}else{isEnable=0;}
jQuery.ajax({
type:"POST",
url:"SavingNews.aspx",
data:"title="+$("#txtTitle").val()+"&TypeId="+node.id+"&Top="+isTop+"&Hot="+isHot+"&enable="+isEnable+"&recomond="+isRecommend+"&newsContent="+escape(Addingcontent)+"&OPType="+1,
cache:false,
success:function(data){
gvNews.reload();
winEdit.hide();
},
error: function(){
Ext.MessageBox.alert("alert","submit failed");
gvNews.reload();
}
})
}
}