易截截图软件、单文件、免安装、纯绿色、仅160KB

struts2结合jquery的Ajax应用

前言
最近尝试在Google App Engine(GAE)平台上构建一个blog,目前进度已经完成将近50%,其中Css和DIV布局折腾得我够呛,对UI一向是个外行,色感拿捏实在没谱,只好仿造Wordpress了--_--||;
 
为何采用AJAX:
回复是在blog文章阅读中的一个常见的功能,如CSDN的回复等等,但是因为回复内容不多,甚至大多数时间有些朋友经常会仅仅留下mark一下,于是决定在此部分采用ajax刷新;
而本身此Blog系统采用的框架是struts2+JPA,利用ThreadLocal进行事务处理;UI端采用Jquery作为JS框架;
 
前端界面
1)       首先编写评论提交表单:
 
 
 <div class="commentor pane">
     <form name="comment_form">
      <input name="articleId" id="articleId" type="hidden" value='<s:property value="article.id" />'/>
      <div class="comment_item">
       <label>
        昵称:
       </label>
       <input name="comment.name" id="name_comment" />
      </div>
      <div class="comment_item">
       <label>
        邮件地址:
       </label>
       <input name="comment.email" id="email_comment" />
      </div>
      <div class="comment_item">
       <label>
        主页地址:
       </label>
       <input name="comment.page" id="page_comment" />
      </div>
  &nbs


相关文档:

Using Google is AJAX Search API with Java ...

http://www.ajaxlines.com/ajax/stuff/article/using_google_is_ajax_search_api_with_java.php
I was rather depressed over a year ago when Google deprecated their SOAP Search API with their AJAX Search API. Essentially Google was saying that they didn want anyone programmatically accessing Google search ......

ajax学习笔记1

<html>
<head>
<title></title>
</head>
<mce:script type="text/javascript"><!--
var xmlHttp = false;
try{
xmlHttp = new XMLHttpRequest();
}catch(trymicrosoft){
try{
xmlHttp = new ActiveXObject("Msxml2.XMLHT ......

struts2 + jquery + json 进行ajax请求

  项目中想用ajax,于是在网上扒了n多资料,犯了n多错误,从今天上班到现在一直在处理这个问题,终于还是把它解决了。
当我看到页面的ajax显示后,我兴奋异常,为了记录自己学习的ajax历程,也为了让更多的人少走弯路,特写此一文以记之!
废话不说了,为了更好的理解,我重做了一个小的项目,以加深印象。现在 ......

龙博AJAX框架 基于web的图形控件及可视化设计

http://www.longboo.com/
分页
http://www.longboo.com/Samples/linb/widgets/TreeGrid.Paging/index.html
数据库查询工具
http://www.longboo.com/Samples/comb/OrderManagement/index.html
email工具
http://www.longboo.com/Samples/comb/OutLook/index.html
网店
http://www.longboo.com/Samples/linb/Template ......

AJAX表单提交方法(JSON)

AJAX表单提交方法(JSON)
1./*****JAVA**************************************************************/
JAVA类中:
 
/*****JAVA**************************************************************/
2./*****struts.xml**************************************************************/
struts.xml文件中: ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号