| 发表于:2007-09-21 16:34:554楼 得分:0 |
脚本 引用了prototype.js //提交数据 var url = '/cmail/vote/rcp/rcp_addvote.aspx?action=add&f= '+math.random(); var myajax = new ajax.request( url, { method: 'post ', postbody: xml, oncomplete: showresponse, oncreate: showloading, asynchronous:true }); function showresponse(originalrequest) { element.hide( 'spandataloding '); if(originalrequest.responsetext== "-1 ") { alert( "未登录,或已超时! "); } } function showloading() { element.show( 'spandataloding '); } public partial class rcp_addvote : ics.smsdisk.base.cmailpagebase { private xmldocument xmldoc = null; protected void page_load(object sender, eventargs e) { if (!this.ispower) { response.write( "-1 "); return; } cs文件 //system.threading.thread.sleep(2000); getpostdata(httpcontext.current); if (request[ "action "] != null && request[ "action "].tostring().tolower() == "add ") { adddate(); } } | | |
|