⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dwr让ajax如此简单 - [matrix - 与 java 共舞].htm

📁 几个运用了DWR框架编写的AJAX代码,
💻 HTM
📖 第 1 页 / 共 3 页
字号:
2006-11-08 06:49 下午 </B></DIV>
<P>werrrrrrrrrrrrrrrrrrrr</P>
<DIV id=review_title><A name=25><B><A 
href="http://www.matrix.org.cn/resource/article/2005-11-07/DWR_AJAX_43926.html#25">#25</A> 
评论作者: <A href="http://www.matrix.org.cn/user.shtml?userid=">zhou</A> 发表时间: 
2006-11-09 03:13 下午 </B></DIV>
<P>testestestasssdfsdf</P>
<DIV id=review_title><A name=26><B><A 
href="http://www.matrix.org.cn/resource/article/2005-11-07/DWR_AJAX_43926.html#26">#26</A> 
评论作者: <A href="http://www.matrix.org.cn/user.shtml?userid=">ykxian01</A> 发表时间: 
2006-11-14 10:52 上午 </B></DIV>
<P>还是有些用的<BR>不过没有开发环境支持,效率比较低</P>
<DIV id=review_title><A name=27><B><A 
href="http://www.matrix.org.cn/resource/article/2005-11-07/DWR_AJAX_43926.html#27">#27</A> 
评论作者: <A href="http://www.matrix.org.cn/user.shtml?userid=">aaaaaaaaa</A> 发表时间: 
2006-11-15 04:07 下午 </B></DIV>
<P>rerrererer</P>
<DIV id=review_title><A name=28><B><A 
href="http://www.matrix.org.cn/resource/article/2005-11-07/DWR_AJAX_43926.html#28">#28</A> 
评论作者: <A href="http://www.matrix.org.cn/user.shtml?userid=">cleopatra</A> 发表时间: 
2006-11-17 03:04 下午 </B></DIV>
<P>test<B>test</B></P>
<DIV id=review_title><A name=29><B><A 
href="http://www.matrix.org.cn/resource/article/2005-11-07/DWR_AJAX_43926.html#29">#29</A> 
评论作者: <A href="http://www.matrix.org.cn/user.shtml?userid=">cleopatra</A> 发表时间: 
2006-11-17 03:04 下午 </B></DIV>
<P>test<B>test</B></P>
<DIV id=review_title><A name=30><B><A 
href="http://www.matrix.org.cn/resource/article/2005-11-07/DWR_AJAX_43926.html#30">#30</A> 
评论作者: <A href="http://www.matrix.org.cn/user.shtml?userid=">cleopatra</A> 发表时间: 
2006-11-17 03:04 下午 </B></DIV>
<P>test<B>test</B></P>
<DIV id=review_title><A name=31><B><A 
href="http://www.matrix.org.cn/resource/article/2005-11-07/DWR_AJAX_43926.html#31">#31</A> 
评论作者: <A href="http://www.matrix.org.cn/user.shtml?userid=">aaa</A> 发表时间: 
2006-11-18 01:21 下午 </B></DIV>
<P>shi yong.....</P>
<DIV id=review_title><A name=32><B><A 
href="http://www.matrix.org.cn/resource/article/2005-11-07/DWR_AJAX_43926.html#32">#32</A> 
评论作者: <A href="http://www.matrix.org.cn/user.shtml?userid=">say no</A> 发表时间: 
2006-11-27 02:23 下午 </B></DIV>
<P>ajax虽然是老技术,但组合得不错,值得学习</P>
<DIV id=review_title><A name=33><B><A 
href="http://www.matrix.org.cn/resource/article/2005-11-07/DWR_AJAX_43926.html#33">#33</A> 
评论作者: <A href="http://www.matrix.org.cn/user.shtml?userid=">jiajia </A>发表时间: 
2006-12-13 05:54 下午 </B></DIV>
<P>楼主,请问源码中的3个js分别在哪里啊,要怎样才能运行起来啊</P>
<DIV id=review_title><A name=34><B><A 
href="http://www.matrix.org.cn/resource/article/2005-11-07/DWR_AJAX_43926.html#34">#34</A> 
评论作者: <A href="http://www.matrix.org.cn/user.shtml?userid=">ohoh</A> 发表时间: 
2006-12-18 09:39 上午 </B></DIV>
<P>ohohohohohohohohohoh</P>
<DIV id=review_title><A name=35><B><A 
href="http://www.matrix.org.cn/resource/article/2005-11-07/DWR_AJAX_43926.html#35">#35</A> 
评论作者: <A href="http://www.matrix.org.cn/user.shtml?userid=">Wesley</A> 发表时间: 
2006-12-27 04:50 下午 </B></DIV>
<P>3Q&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</P>
<DIV id=review_title><A name=36><B><A 
href="http://www.matrix.org.cn/resource/article/2005-11-07/DWR_AJAX_43926.html#36">#36</A> 
评论作者: <A href="http://www.matrix.org.cn/user.shtml?userid=">Wesley</A> 发表时间: 
2006-12-27 04:51 下午 </B></DIV>
<P>3q ~~~~~~~~~~~~~~~</P>
<DIV id=review_title><A name=37><B><A 
href="http://www.matrix.org.cn/resource/article/2005-11-07/DWR_AJAX_43926.html#37">#37</A> 
评论作者: <A 
href="http://www.matrix.org.cn/user.shtml?userid=caa652a8-a2f0-11db-ab77-2bbe780ebfbf">ken_fifa</A> 
发表时间: 2007-01-18 08:59 上午 </B></DIV>
<P>dwr 和其他mvc框架整合,会不会出现一些问题啊?</P>
<DIV id=review_title><A name=38><B><A 
href="http://www.matrix.org.cn/resource/article/2005-11-07/DWR_AJAX_43926.html#38">#38</A> 
评论作者: <A 
href="http://www.matrix.org.cn/user.shtml?userid=caa652a8-a2f0-11db-ab77-2bbe780ebfbf">ken_fifa</A> 
发表时间: 2007-01-18 08:59 上午 </B></DIV>
<P>dwr 和其他mvc框架整合,会不会出现一些问题啊?</P>
<DIV id=review_title><A name=39><B><A 
href="http://www.matrix.org.cn/resource/article/2005-11-07/DWR_AJAX_43926.html#39">#39</A> 
评论作者: <A href="http://www.matrix.org.cn/user.shtml?userid=24706">wangnet</A> 
发表时间: 2007-12-24 07:40 下午 </B></DIV>
<P>ajax根本不是新技术</P>
<DIV id=newReview></DIV><BR>
<H4 id=areviewform>发表我的评论 (评论可增加个人积分...)</H4>
<DIV class=divcenter id=reviewInfo></DIV>
<TABLE class=tablenormal><INPUT id=type type=hidden> <INPUT id=oid type=hidden 
  ?> <INPUT id=userid type=hidden> 
  <TBODY>
  <TR>
    <TD>用户<SPAN class=red>*</SPAN>: </TD>
    <TD><INPUT id=username maxLength=20></TD>
    <TD>E-mail: </TD>
    <TD><INPUT id=email maxLength=30 size=24></TD></TR>
  <TR>
    <TD>评论内容<SPAN class=red>*</SPAN>: <BR><BR>支持BBCode</TD>
    <TD colSpan=3><TEXTAREA id=reviewcontent rows=6 cols=68></TEXTAREA></TD></TR>
  <TR>
    <TD>算术题<SPAN class=red>*</SPAN>: </TD>
    <TD colSpan=3><INPUT id=x readOnly size=2> + <INPUT id=y readOnly size=2> 
      = <INPUT id=validateResult size=3> </TD></TR>
  <TR>
    <TD class=submit colSpan=4><INPUT accessKey=S onclick=insertReview(); type=submit value=提交(S)>&nbsp;&nbsp;&nbsp;&nbsp; 
<INPUT accessKey=R type=reset value=重置(R)> </TD></TR></TBODY></TABLE></DIV><!-- end review -->
<SCRIPT type=text/javascript>
var cookie = getCookie("cookie_jmatrix_by_matrix.org.cn");
if (cookie != null) {
	//cookie = decodeBase64(cookie);
	var array = cookie.split("|");
	if ((array != null) && (array.length > 2)) {
		document.getElementById("userid").value = array[0];
		document.getElementById("username").value = array[1];
	}
}

var review = new Object();
review.oid = "43926";
review.type = "article";
review.email = "";

var validateResult = getRandomValidateResult();

function getRandomValidateResult() {
	var x = Math.round(50*Math.random());
	var y = Math.round(50*Math.random());
	var validateResult = x + y;
	DWRUtil.setValue("x", x);
	DWRUtil.setValue("y", y);
	DWRUtil.setValue("validateResult", "");
	return validateResult;
}
function insertReview() {
	if (DWRUtil.getValue("validateResult") != validateResult) {
		DWRUtil.setValue("reviewInfo", 
			"<span class='red'>验证失败!耐心地做下算术题吧,多做算术题有助于防止老年痴呆症:)</span>");
		validateResult = getRandomValidateResult();
		return;
	}
	review.userid = DWRUtil.getValue("userid");
	review.username = DWRUtil.getValue("username");
	review.content = DWRUtil.getValue("reviewcontent");
	ContentFacade.insertReviewAndReturn(review, viewReview);
}
function viewReview(ajaxResult) {
	var hash;
	if (null != ajaxResult.messages) {
		var color = "yello";
		if (ajaxResult.message == false) {
			color = "red";
			hash = "areviewform";
		} else {
			hash = ajaxResult.aid;
		}
		DWRUtil.setValue("reviewInfo", 
			"<span class='" + color + "'>" + ajaxResult.messages + "</span>");
	}
	if (null != ajaxResult.bean) {
		var newReview = DWRUtil.getValue("newReview");
		newReview = newReview + ajaxResult.bean;
		DWRUtil.setValue("newReview", newReview);
	}
	
	DWRUtil.setValue("reviewcontent", "");
	location.hash = hash;
	document.getElementById("reviewcontent").focus();
	
	validateResult = getRandomValidateResult();
}

function initReview() {
    DWRUtil.useLoadingMessage();
}
callOnLoad(initReview);
</SCRIPT>
</DIV><!--  end of contentcontent -->
<SCRIPT 
src="DWR让AJAX如此简单%20-%20[Matrix%20-%20与%20Java%20共舞]_files/viewStat"></SCRIPT>
</DIV>
<DIV id=footer>
<DIV id=footernav><A href="http://www.matrix.org.cn/help.shtml" 
styleClass="menu">关于我们</A>&nbsp; |&nbsp; <A 
href="http://www.matrix.org.cn/helpLicense.shtml" 
styleClass="menu">版权声明</A>&nbsp; |&nbsp; <A 
href="http://www.matrix.org.cn/admin/index.jsp" styleClass="menu">系统管理</A>&nbsp; 
|&nbsp; <A class=menu 
href="http://www.matrix.org.cn/resource/article/2005-11-07/DWR_AJAX_43926.html#top">返回顶部</A> 
</DIV>
<UL><IMG 
  src="DWR让AJAX如此简单%20-%20[Matrix%20-%20与%20Java%20共舞]_files/mht157(1).tmp">ICP:?B2-20040367 
</UL>
<SCRIPT src="DWR让AJAX如此简单%20-%20[Matrix%20-%20与%20Java%20共舞]_files/urchin.js" 
type=text/javascript>
</SCRIPT>

<SCRIPT type=text/javascript>
_uacct = "UA-198909-2";
urchinTracker();
</SCRIPT>
</DIV></DIV><!-- end of wrapper div --></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -