jQueryAjaxGuestbook

所属分类:JavaScript/JQuery
开发工具:C#
文件大小:88KB
下载次数:54
上传日期:2009-10-26 10:56:57
上 传 者lpk123465
说明:  jquery+ajax无刷新评论源码 实现了获取评论无刷新,发表评论无刷新,页面获取评论时显示loading加载效果 jquery真的是一个非常优秀的JS库,简单容易掌握,对于网页中的多级菜单、级联效果、Tab选项卡切换、图片轮转显示, 实现起来都非常的简单,往往就是几句代码的事。 做AJAX应用,jquery提供的$.get()、$.post()函数都可以用于提交数据,但建议使用$.ajax()来提交,那两个函数都不 提供错误返回信息,不利全面掌控。 提交数据是action代表要执行的操作,id传递文章id,page是请求的分页页面,Math.round(Math.random()*10000) 防止页面被浏览器缓存而导致暂时无法刷新,如果出错显示错误信息 客户端用escape()函数编码含中文的字符串,服务器端用unescape()解码,这样做是为了防止乱码,如果你采用的是utf8, 那就不必了,设置正确的页面编码和服务端脚本编码就不会出问题。由于jquery默认使用utf8传输数据,而且不提供设置编码, 这里只有自己做转换,如果你用form插件的时候就会发现,编码问题是不能回绝的。
(jquery+ ajax without refreshing comment source code Achieved to obtain comment on non-refresh comments without refreshing the page displayed when loading loading access to comment on results jquery is really a very good JS libraries, simple and easy to grasp, for the multi-level menu page, cascading effects, Tab tab switching, image rotation showed that To achieve them are very simple, the code is often a few things. Do AJAX applications, jquery provided $. Get (),$. post () functions can be used to submit data, but recommended the use of $. Ajax () to submit, then the two functions are not Provide the error information back to full control of the negative. Action on behalf of the data is presented to perform the operation, id pass the article id, page is a page request page, Math.round (Math.random ()* 10000) The browser cache to prevent the page is temporarily unable to refresh a result, if the error display an error message The client with the escape () f)

文件列表:
VerifyCode.aspx.cs (967, 2009-10-23)
Web.Config (1737, 2008-03-06)
最新Asp.Net源码下载.url (125, 2007-03-27)
App_Code\CommentBO.cs (8025, 2009-10-23)
App_Code\CommentBO.cs.bak (8012, 2009-03-11)
App_Code\DBConnection.cs (876, 2009-10-23)
App_Code\DBQuery.cs (9014, 2009-03-10)
App_Code\DBTable.cs (1050, 2008-03-06)
App_Code\StringManager.cs (1427, 2008-03-06)
App_Code\TableQuery.cs (654, 2009-03-11)
App_Code\VryImgGen.cs (9273, 2009-03-11)
css\style.css (2478, 2009-03-11)
DB_51aspx\db.asax (241664, 2009-10-23)
images\box-title-bg.gif (154, 2009-01-04)
images\Thumbs.db (41984, 2005-03-21)
images\title-bg.gif (146, 2009-01-04)
images\Wait.gif (11623, 2009-01-04)
js\jquery.js (31044, 2008-12-30)
js\plu.js (2046, 2009-03-11)
51aspx源码必读.txt (2571, 2009-10-23)
Admin.aspx (3474, 2009-03-11)
Admin.aspx.cs (3993, 2009-10-23)
ajaxcomment.sln (1544, 2009-10-23)
ajaxcomment.suo (16896, 2009-10-23)
Comment.aspx (75, 2009-03-11)
Comment.aspx.cs (2317, 2009-10-23)
from.gif (4945, 2007-07-18)
index.html (2303, 2009-10-23)
VerifyCode.aspx (448, 2007-12-21)
App_Code (0, 2009-10-23)
css (0, 2009-03-11)
DB_51aspx (0, 2009-10-23)
images (0, 2009-03-11)
js (0, 2009-03-11)

近期下载者

相关文件


收藏者