var Action=’id=892925247101&ChID=0&CommentType=GetCommentList&page=’+page; var options={
method:’get’,
parameters:Action,
onComplete:function(transport)
var returnvalue=transport.responseText;
if (returnvalue.indexOf(“??”)>-1)
document.getElementById(“Div_CommentList”).innerHTML=’加載評論列表失敗’;
else
document.getElementById(“Div_CommentList”).innerHTML=returnvalue;
new Ajax.Request(‘/comment.aspx?no-cache=’+Math.random(),options);
GetCommentList(1);
評論表單加載中…
function GetAddCommentForm()
var Action=’id=892925247101&ChID=0&CommentType=GetAddCommentForm’; var options={
method:’get’,
parameters:Action,
onComplete:function(transport)
var returnvalue=transport.responseText;
var arrreturnvalue=returnvalue.split(‘$$$’);
if (arrreturnvalue[0]==”ERR”)
document.getElementById(“Div_CommentForm”).innerHTML=’加載評論表單失敗!’;
else
document.getElementById(“Div_CommentForm”).innerHTML=arrreturnvalue[1];
new Ajax.Request(‘/comment.aspx?no-cache=’+Math.random(),options);
GetAddCommentForm();
function CommandSubmit(obj)
if(obj.UserNum.value==””)
obj.UserNum.value=”Guest”;
if(obj.Content.value==””)
alert(‘評論內容不能為空’);
return false;
var r = obj.commtype;
var commtypevalue = ‘2’;
for(var i=0;i