<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>曾华水的博客 &#187; jQuery</title>
	<atom:link href="http://www.mrzeng.com/tag/jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mrzeng.com</link>
	<description>NO.1 or Nothing</description>
	<lastBuildDate>Wed, 07 Sep 2011 12:47:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>jQuery的Ajax在表单上的运用</title>
		<link>http://www.mrzeng.com/post/jquery-ajax-form-example.html</link>
		<comments>http://www.mrzeng.com/post/jquery-ajax-form-example.html#comments</comments>
		<pubDate>Sun, 18 Oct 2009 15:50:18 +0000</pubDate>
		<dc:creator>zenghuashui</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.mrzeng.com/?p=95</guid>
		<description><![CDATA[jQuery的特点是它的使用起来简单，下面介绍一个今天写的表单实例。 1、引入jQuery。 2、验证和提交的代码 function Check() { //验证 if($("#mobile").val()=="" &#124;&#124;$("#uniquecode").val()=="" &#124;&#124; $("#textCode").val()=="" ) { alert("手机号、唯一码、验证码不得为空"); return false; } else { return true; } } function LoginSuccess() { $.post("get_check.php",{"mobile":$("#mobile").val(),"uniquecode":$("#uniquecode").val(),"textCode":$("#textCode").val()},function(data) { alert(data); $("#mobile").val(""); $("#uniquecode").val(""); $("#textCode").val(""); $("#randomcode").attr("src","doimg.php"); }) } function Login() { if(Check()) { LoginSuccess(); } } $(document).ready(function() { $("#submitbutton").click(function(){ Login(); }) }) 3、DEMO http://vip.peaksport.com 随机日志jqGrid进阶教程：1、jqGrid的样式无法正确显示的原因和解决办法jqGrid引入后，执行，常常会碰到css无法像官方的demo一样正常显示，特别是字体还有一些弹出框， 例如 [caption id="attachment_407" [...]]]></description>
			<content:encoded><![CDATA[<p>jQuery的特点是它的使用起来简单，下面介绍一个今天写的表单实例。<br />
 1、引入jQuery。</p>
<p>2、验证和提交的代码</p>
<pre class="prettyprint">
function Check() {
	//验证
	if($("#mobile").val()=="" ||$("#uniquecode").val()=="" || $("#textCode").val()==""  ) {
		alert("手机号、唯一码、验证码不得为空");
		return false;
	} else {
		return true;
	}

}

function LoginSuccess() {
	$.post("get_check.php",{"mobile":$("#mobile").val(),"uniquecode":$("#uniquecode").val(),"textCode":$("#textCode").val()},function(data) {
		alert(data);
		$("#mobile").val("");
		$("#uniquecode").val("");
		$("#textCode").val("");
		$("#randomcode").attr("src","doimg.php");
	})

}

function Login() {
	if(Check()) {
		LoginSuccess();
	}
}

$(document).ready(function() {
	$("#submitbutton").click(function(){
		Login();
	})
})
</pre>
<p>3、DEMO <a href="http://vip.peaksport.com">http://vip.peaksport.com</a></p>
<h3  class="related_post_title">随机日志</h3><ul class="related_post"><li><a href="http://www.mrzeng.com/post/struts-2-annotations-example-1.html" title="Struts 2注解实例二">Struts 2注解实例二</a><br /><small>这个例子将继续前面讲的例子

Here we will see the same hello user example with the following changes.


	Our Action class ends with the world Action and does not implement com.opensymphony.xwork2.Action. 
	We...</small></li><li><a href="http://www.mrzeng.com/post/jqgrid-base-study-3.html" title="jqGrid基础学习：3jqGrid与后台的交互（基于struts2）">jqGrid基础学习：3jqGrid与后台的交互（基于struts2）</a><br /><small>jqGrid与后台的交互方式如下：
载入时，jqGrid以POST或GET方式（用定义）向服务器发起数据载入请求，服务器根据请求传递给jqGrid；
传递的参数如下：
page ：指示需要查询第几页的数据。
rows ：指示每页显示的记录条数。
sidx ：指示查询排序的条件，这是一个字符串，可能是数据库表字段或者是POJO对象的属性名。这需要程序来处理。
sord ：指示查询排序的方...</small></li><li><a href="http://www.mrzeng.com/post/sql-server-jdbc.html" title="SQL Server的JDBC驱动问题">SQL Server的JDBC驱动问题</a><br /><small>最近公司换服务器把数据库从SQL Server 2005 升级到 SQL Server 2008。这样，以这个数据库对接的两个系统全部瘫痪，无法进行数据库对接。
首先立即判断是是数据库的驱动问题，好不容易从网上找到了了驱动，下载下来，发现里面有两个文件一个是sqljdbc.jar，另外一个是sqljdbc4.jar,于是将驱动换掉，两个全部导进去，加到CLASSPATH路径，发现，还是不行。两个...</small></li><li><a href="http://www.mrzeng.com/post/jqgrid-base-study-7.html" title="jqGrid基础学习：7jqGrid中使用分页">jqGrid基础学习：7jqGrid中使用分页</a><br /><small>jqGrid分页首先要在页面设置一个DIV的层。例如,在第一章就提到的





同时，要在jqGrid的配置中加入

jQuery("#grid_id").jqGrid({
...
   pager : '#pager',
...
});


参照第二章
效果如下
[caption id="attachment_327" align="alignnone" wi...</small></li><li><a href="http://www.mrzeng.com/post/jqgrid-css.html" title="jqGrid进阶教程：1、jqGrid的样式无法正确显示的原因和解决办法">jqGrid进阶教程：1、jqGrid的样式无法正确显示的原因和解决办法</a><br /><small>jqGrid引入后，执行，常常会碰到css无法像官方的demo一样正常显示，特别是字体还有一些弹出框，

例如
[caption id="attachment_407" align="alignnone" width="300" caption="CSS变样"][/caption]
这种问题的原因多半是因为html的标准问题，即其写法为




如果要让样式正常，要采用写法如下...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.mrzeng.com/post/jquery-ajax-form-example.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

