问答类
处理问题标签
txt
static
True
QuestionID
int
0
问题ID
Point
int
0
积分
function xmlencode(s)
{
s=escape(s);
return s;
}
function SubmitPoint()
{
if(jQuery("#selPoint").val() == "0" || jQuery("#selPoint").val() == null)
{
alert("您的积分不足,不能增加悬赏积分!");
return;
}
raisePoint();
}
function SubmitExtraDetail()
{
if(jQuery("#txtExtraDetail").attr("value") == "")
{
alert("补充问题不能为空,请输入补充内容!");
return;
}
doExtraDetail();
}
function SubmitNoAnswer()
{
doNoAnswer();
}
function raisePoint()
{
var point=xmlencode(jQuery("#selPoint").val());
var Xml= "QARaisePoint"+point+"";
jQuery.post('{PE.SiteConfig.applicationpath/}ajax.aspx',Xml, function(s) {
if(jQuery("err", s).text()=="false")
{
window.open("ShowMessage.aspx?type=1&messageType=2&Id=", "_self");
}
else
{
window.open("ShowMessage.aspx?type=0&messageType=2&Id=", "_self");
}
});
}
function doExtraDetail()
{
var detail = xmlencode(jQuery("#txtExtraDetail").attr("value"));
var Xml = "QADoExtraDetail"+detail+"";
jQuery.post('{PE.SiteConfig.applicationpath/}ajax.aspx',Xml, function(s) {
if(jQuery("err", s).text()=="false")
{
window.open("ShowMessage.aspx?type=1&messageType=2&Id=", "_self");
}
else
{
window.open("ShowMessage.aspx?type=0&messageType=2&Id=", "_self");
}
});
}
function doNoAnswer()
{
var Xml= "QADoNoAnswer";
jQuery.post('{PE.SiteConfig.applicationpath/}ajax.aspx',Xml, function(s) {
if(jQuery("err", s).text()=="false")
{
window.open("ShowMessage.aspx?type=1&messageType=2&Id=", "_self");
}
else
{
window.open("ShowMessage.aspx?type=0&messageType=2&Id=", "_self");
}
});
}
function GetPointList()
{
jQuery.post('{PE.SiteConfig.applicationpath/}ajax.aspx', "QAGetPointList", function(s) {
var CPoint= jQuery("QAGetPointList", s).text();
if (CPoint != "false")
{
var str = CPoint;
var array = str.split(':');
var arr1 = array[0].split('|');
var arr2 = array[1].split('|');
jQuery("#selPoint").clearAll();
for(var i=0; iQAGetExtraDetail", function(s) {
var detail = jQuery("QAGetExtraDetail", s).text();
if (detail != "error")
{
jQuery("#txtExtraDetail").attr("value", detail);
}
});
}
jQuery.fn.addOption = function(text,value)
{
jQuery(this).get(0).options.add(new Option(text,value));
}
jQuery.fn.clearAll = function()
{
jQuery(this).get(0).options.length = 0;
}
jQuery(document).ready(function() {
GetPointList();
GetExtraDetail();
});
function closePanel(panel)
{
if(panel == "addscore")
{
jQuery("#addscoreLink").css("display","block");
jQuery("#addscorePanel").css("display","none");
}
else if(panel == "noanswer")
{
jQuery("#noanswerLink").css("display","block");
jQuery("#noanswerPanel").css("display","none");
}
else if(panel == "extradetail")
{
jQuery("#extradetailLink").css("display", "block");
jQuery("#extradetailPanel").css("display", "none");
}
}
function openPanel(panel)
{
if(panel == "addscore")
{
jQuery("#addscoreLink").css("display","none");
jQuery("#addscorePanel").css("display","block");
}
else if(panel == "noanswer")
{
jQuery("#noanswerLink").css("display","none");
jQuery("#noanswerPanel").css("display","block");
}
else if(panel == "extradetail")
{
jQuery("#extradetailLink").css("display", "none");
jQuery("#extradetailPanel").css("display", "block");
}
}
- 处理提问
- 提高悬赏提高悬赏,以提高问题的关注度;
-
- 无满意答案没有满意的回答 ,可以直接结束提问,关闭问题;
-
]]>
UserName
string
用户名