<?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.dengor.com/archives/tag/jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dengor.com</link>
	<description>努力往上  只为看得更远一点点......</description>
	<lastBuildDate>Mon, 06 Feb 2012 08:59:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Jquery使用php进行ajax调用例子</title>
		<link>http://www.dengor.com/archives/763.html</link>
		<comments>http://www.dengor.com/archives/763.html#comments</comments>
		<pubDate>Sat, 10 Apr 2010 07:04:24 +0000</pubDate>
		<dc:creator>dengor</dc:creator>
				<category><![CDATA[网站程序]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.dengor.com/?p=763</guid>
		<description><![CDATA[使用Jaquery结合php可以很方便实现ajax调用。 下面是一个例子： HTML代码： &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#60;html&#62; &#60;head&#62; &#60;title&#62; TEST &#60;/title&#62; &#60;meta name=&#8221;generator&#8221; content=&#8221;editplus&#8221; /&#62; &#60;meta name=&#8221;author&#8221; content=&#8221;" /&#62; &#60;meta name=&#8221;keywords&#8221; content=&#8221;" /&#62; &#60;meta name=&#8221;description&#8221; content=&#8221;" /&#62; &#60;script type=&#8221;text/javascript&#8221; src=&#8221;jquery-1.2.6.pack.js&#8221;&#62;&#60;/script&#62; &#60;script type=&#8221;text/javascript&#8221;&#62; &#60;!&#8211; $(document).ready( function () { $(&#8216;#btn&#8217;).click ( function () { $.ajax({ url: &#8216;http://localhost/call.php&#8217;, type: &#8216;POST&#8217;, data:&#8217;name=&#8217;+$(&#8216;#name&#8217;).val(), dataType: &#8216;html&#8217;, timeout: 1000, error: function(){ alert(&#8216;Error loading XML [...]]]></description>
			<content:encoded><![CDATA[<div id="blog_text">
<p>使用Jaquery结合php可以很方便实现ajax调用。 下面是一个例子：</p>
<p>HTML代码：<span id="more-763"></span></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<blockquote><p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt; TEST &lt;/title&gt;<br />
&lt;meta name=&#8221;generator&#8221; content=&#8221;editplus&#8221; /&gt;<br />
&lt;meta name=&#8221;author&#8221; content=&#8221;" /&gt;<br />
&lt;meta name=&#8221;keywords&#8221; content=&#8221;" /&gt;<br />
&lt;meta name=&#8221;description&#8221; content=&#8221;" /&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;  src=&#8221;jquery-1.2.6.pack.js&#8221;&gt;&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
&lt;!&#8211;<br />
$(document).ready( function () {<br />
$(&#8216;#btn&#8217;).click ( function () {<br />
$.ajax({<br />
url: &#8216;http://localhost/call.php&#8217;,<br />
type: &#8216;POST&#8217;,<br />
data:&#8217;name=&#8217;+$(&#8216;#name&#8217;).val(),<br />
dataType: &#8216;html&#8217;,<br />
timeout: 1000,<br />
error: function(){<br />
alert(&#8216;Error loading XML document&#8217;);<br />
},<br />
success: function(html){<br />
$(&#8216;#text&#8217;).html(html);<br />
}<br />
});<br />
});<br />
})<br />
//&#8211;&gt;<br />
&lt;/script&gt;<br />
&lt;/head&gt;&lt;body&gt;<br />
&lt;div id=&#8221;text&#8221;&gt;&lt;/div&gt;<br />
&lt;input type=&#8221;text&#8221; id=&#8221;name&#8221; name=&#8221;name&#8221; /&gt;<br />
&lt;input type=&#8221;button&#8221; value=&#8221;DO IT .&#8221; id=&#8221;btn&#8221;/&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></blockquote>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>call.php代码</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<blockquote><p>&lt;?php<br />
$name = $_POST['name'];<br />
echo &#8220;you say : &#8220;.$name;</p>
<p>?&gt;</p></blockquote>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p></div>
<div  class="related_post_title">相关文章</div><ul class="related_post"><li><a href="http://www.dengor.com/archives/1328.html" title="一个PHP木马的代码">一个PHP木马的代码</a></li><li><a href="http://www.dengor.com/archives/1301.html" title="lnmp安装后进程优化">lnmp安装后进程优化</a></li><li><a href="http://www.dengor.com/archives/1162.html" title="使用PHP的header函数修改网页的输出编码">使用PHP的header函数修改网页的输出编码</a></li><li><a href="http://www.dengor.com/archives/1023.html" title="显示Deprecated: Assigning the return value of new by reference is deprecated in解决办法">显示Deprecated: Assigning the return value of new by reference is deprecated in解决办法</a></li><li><a href="http://www.dengor.com/archives/903.html" title="修改PHP运行内存memory大小的几种方法">修改PHP运行内存memory大小的几种方法</a></li><li><a href="http://www.dengor.com/archives/855.html" title="PHP即时输出内容">PHP即时输出内容</a></li><li><a href="http://www.dengor.com/archives/809.html" title="分享一个PHP的google翻译接口GTranslate">分享一个PHP的google翻译接口GTranslate</a></li><li><a href="http://www.dengor.com/archives/798.html" title="PHP处理html简单好工具-simplehtmldom">PHP处理html简单好工具-simplehtmldom</a></li><li><a href="http://www.dengor.com/archives/789.html" title="php运行超时分步执行的简单方法">php运行超时分步执行的简单方法</a></li><li><a href="http://www.dengor.com/archives/449.html" title="Cpanel中的cron定时执行任务使用方法">Cpanel中的cron定时执行任务使用方法</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.dengor.com/archives/763.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jquery中value属性的使用方法</title>
		<link>http://www.dengor.com/archives/253.html</link>
		<comments>http://www.dengor.com/archives/253.html#comments</comments>
		<pubDate>Sat, 10 Oct 2009 03:48:00 +0000</pubDate>
		<dc:creator>dengor</dc:creator>
				<category><![CDATA[网站程序]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[value]]></category>
		<category><![CDATA[出错]]></category>

		<guid isPermaLink="false">http://www.dengor.com/?p=253</guid>
		<description><![CDATA[&#160;&#160;&#160; Jquery中我们经常要用到获取元素的value, 因为Jquery的易用性, 我们经常想当然地使用,就容易出错. 如有一个&#60;input name=&#34;ip&#34; id=&#34;ip&#34; value=&#34;value&#34;&#62; 为了取得value,可能会样写&#160; $(&#34;#ip&#34;).value; 其实上面的写法是错的, 正确的写法是&#160; $(&#34;#ip&#34;).val(); 同样的道理 改变value值应该是: $(&#34;#ip&#34;).val(&#34;new value&#34;);&#160; 记录一下,以免下次再出错&#160; &#160; 本页链接:&#160; http://www.dengor.com/archives/253.html 相关文章Jquery使用php进行ajax调用例子Jquery实现同级元素区别对待]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp; Jquery中我们经常要用到获取元素的value, 因为Jquery的易用性, 我们经常想当然地使用,就容易出错.</p>
<p>如有一个<span style="color: rgb(0, 0, 255);">&lt;input name=&quot;ip&quot; id=&quot;ip&quot; value=&quot;value&quot;&gt;</span></p>
<p>为了取得value,可能会样写&nbsp;<span style="color: rgb(255, 0, 0);"> $(&quot;#ip&quot;).value;</span><br />
其实上面的写法是错的, 正确的写法是&nbsp; <span style="color: rgb(255, 0, 0);">$(&quot;#ip&quot;).val();</span></p>
<p>同样的道理 改变value值应该是: <span style="color: rgb(255, 0, 0);">$(&quot;#ip&quot;).val(&quot;new value&quot;);</span>&nbsp; </p>
<p>记录一下,以免下次再出错&nbsp; <img src='http://www.dengor.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p>本页链接:&nbsp; <a href="http://www.dengor.com/archives/253.html" target="_blank"><span id="sample-permalink">http://www.dengor.com/archives/253.html</span></a></p>
<div  class="related_post_title">相关文章</div><ul class="related_post"><li><a href="http://www.dengor.com/archives/763.html" title="Jquery使用php进行ajax调用例子">Jquery使用php进行ajax调用例子</a></li><li><a href="http://www.dengor.com/archives/87.html" title="Jquery实现同级元素区别对待">Jquery实现同级元素区别对待</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.dengor.com/archives/253.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jquery实现同级元素区别对待</title>
		<link>http://www.dengor.com/archives/87.html</link>
		<comments>http://www.dengor.com/archives/87.html#comments</comments>
		<pubDate>Fri, 31 Jul 2009 13:11:55 +0000</pubDate>
		<dc:creator>dengor</dc:creator>
				<category><![CDATA[平面美化]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[js]]></category>

		<guid isPermaLink="false">http://www.dengor.com/?p=87</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;&#160; 对一个没有确定数目的element,&#160;&#160; 如果有的元素跟其它的不一样,处理起来很麻烦.&#160; 比如一个网站的导航菜单,我们希望在第每个菜单项的中间加个&#160; &#124; 来分隔, 这样的情形如果每项都用相同的style, 最后的一个也会出现一个分隔, 显然这不是我们所想要的. 所以你必须到程序中设置输出最后一项时,使用不同的Class.&#160; 这样程序和页面两个方面都要更改. &#160;&#160;&#160;&#160; 其实如果我们用Jquery的强大元素选择能力,完全可以不用去修改程序,只要在页面和加上几行JS代码就可以实现. &#160;前提是页面载入了jquery, 加入以下代码: $(document).ready(function() { $(&#34;#menu li:last&#34;).addClass(&#34;noseptation&#34;); }); &#160;&#160;&#160;&#160; 其中的$(&#34;#menu li:last&#34;)就是选择了id为menu的区块最后一个&#60;li&#62; ,后面就是加上一个class,这个class设置没有分隔符就行了. 我们可以看出, &#160;&#160;&#160;&#160; 这种方法很简单, 还可以选择first,second,third&#8230;last,都可以加上不同的class. 确实很方便. &#160; 相关文章让superfish在IE6不被遮住用js解决广告代码载入慢的问题JavaScript字符处理函数Jquery使用php进行ajax调用例子Iframe之间传值和数据的方法CSS样式id和class属性优先级问题用CSS隐藏文字方法的比较用CSS强制改变链接的颜色如何写没有链接目标的超链接Jquery中value属性的使用方法]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 对一个没有确定数目的element,&nbsp;&nbsp; 如果有的元素跟其它的不一样,处理起来很麻烦.&nbsp; 比如一个网站的导航菜单,我们希望在第每个菜单项的中间加个&nbsp; | 来分隔, 这样的情形如果每项都用相同的style, 最后的一个也会出现一个分隔, 显然这不是我们所想要的. 所以你必须到程序中设置输出最后一项时,使用不同的Class.&nbsp; 这样程序和页面两个方面都要更改.</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; 其实如果我们用Jquery的强大元素选择能力,完全可以不用去修改程序,只要在页面和加上几行JS代码就可以实现.</p>
<p>&nbsp;前提是页面载入了jquery, 加入以下代码:</p>
<pre>
$(document).ready(function() {
	$(&quot;#menu li:last&quot;).addClass(&quot;noseptation&quot;);
});
</pre>
<p>&nbsp;&nbsp;&nbsp;&nbsp;    其中的$(&quot;#menu li:last&quot;)就是选择了id为menu的区块最后一个&lt;li&gt; ,后面就是加上一个class,这个class设置没有分隔符就行了.     我们可以看出,</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; 这种方法很简单, 还可以选择first,second,third&#8230;last,都可以加上不同的class. 确实很方便.</p>
<p>&nbsp;</p>
<div  class="related_post_title">相关文章</div><ul class="related_post"><li><a href="http://www.dengor.com/archives/1084.html" title="让superfish在IE6不被遮住">让superfish在IE6不被遮住</a></li><li><a href="http://www.dengor.com/archives/840.html" title="用js解决广告代码载入慢的问题">用js解决广告代码载入慢的问题</a></li><li><a href="http://www.dengor.com/archives/761.html" title="JavaScript字符处理函数">JavaScript字符处理函数</a></li><li><a href="http://www.dengor.com/archives/763.html" title="Jquery使用php进行ajax调用例子">Jquery使用php进行ajax调用例子</a></li><li><a href="http://www.dengor.com/archives/681.html" title="Iframe之间传值和数据的方法">Iframe之间传值和数据的方法</a></li><li><a href="http://www.dengor.com/archives/618.html" title="CSS样式id和class属性优先级问题">CSS样式id和class属性优先级问题</a></li><li><a href="http://www.dengor.com/archives/350.html" title="用CSS隐藏文字方法的比较">用CSS隐藏文字方法的比较</a></li><li><a href="http://www.dengor.com/archives/323.html" title="用CSS强制改变链接的颜色">用CSS强制改变链接的颜色</a></li><li><a href="http://www.dengor.com/archives/282.html" title="如何写没有链接目标的超链接">如何写没有链接目标的超链接</a></li><li><a href="http://www.dengor.com/archives/253.html" title="Jquery中value属性的使用方法">Jquery中value属性的使用方法</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.dengor.com/archives/87.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

