jQuery("#backgroundprograma").html('<br/>栏目名称:<input type="text" id="name" name="webtitle" size="20" /><br/><br/>提示说明:<textarea id="title" rows="6" cols="30"></textarea><br/>');
jQuery("#backgroundprograma").dialog({
resizable:false,
width:250,
height:300,
title:"新建栏目",
modal:false,
buttons: {
'关闭': function() {
jQuery(this).dialog('close');
}
,
'提交': function(){
var name=jQuery("#name").val();
var title=jQuery("#title").val();
var jsonData={name:name,title:title};
jQuery.ajax({
type: "POST",
url: "newbackgroundprograma.action",
data: jsonData,
datatype:"json",
success: function(msg){
if(1==msg.conditions)
{
alert("新建成功");
}
else
{
alert("新建失败");
}
}
,
error:function()
{
alert('出错了');
}
});
}
}
});
jQuery("#backgroundprograma").dialog({
resizable:false,
width:250,
height:300,
title:"新建栏目",
modal:false,
buttons: {
'关闭': function() {
jQuery(this).dialog('close');
}
,
'提交': function(){
var name=jQuery("#name").val();
var title=jQuery("#title").val();
var jsonData={name:name,title:title};
jQuery.ajax({
type: "POST",
url: "newbackgroundprograma.action",
data: jsonData,
datatype:"json",
success: function(msg){
if(1==msg.conditions)
{
alert("新建成功");
}
else
{
alert("新建失败");
}
}
,
error:function()
{
alert('出错了');
}
});
}
}
});