<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: jQuery 學習心得筆記 (5) &#8211; Ajax (下)</title>
	<atom:link href="http://blog.ericsk.org/archives/839/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.ericsk.org/archives/839</link>
	<description>It&#039;s all about ericsk.</description>
	<lastBuildDate>Sun, 14 Mar 2010 13:00:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0-alpha</generator>
	<item>
		<title>By: azure</title>
		<link>http://blog.ericsk.org/archives/839/comment-page-1#comment-24851</link>
		<dc:creator>azure</dc:creator>
		<pubDate>Fri, 02 Oct 2009 16:49:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericsk.org/archives/839#comment-24851</guid>
		<description>不好意思~已經弄懂了~謝^^</description>
		<content:encoded><![CDATA[<p>不好意思~已經弄懂了~謝^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: azure</title>
		<link>http://blog.ericsk.org/archives/839/comment-page-1#comment-24850</link>
		<dc:creator>azure</dc:creator>
		<pubDate>Fri, 02 Oct 2009 14:15:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericsk.org/archives/839#comment-24850</guid>
		<description>您好：
在參閱了&quot;jQuery 學習心得筆記(4)Ajax(下)&quot;後，最大心得是用JSONP可自行定義success之外的函數名稱，而且回傳不再是html形式。

因此我想說回傳時能否不只回傳一筆資料，因此用您的程式改了一下，但為何永遠都只抓到一筆 ?

 while($row = mysql_fetch_array($result, MYSQL_ASSOC)){ 
 $name = $row[&quot;name&quot;];
   echo $_GET[&#039;callback&#039;].&quot;({msg: &#039;$name&#039;});&quot;;
 }</description>
		<content:encoded><![CDATA[<p>您好：<br />
在參閱了&#8221;jQuery 學習心得筆記(4)Ajax(下)&#8221;後，最大心得是用JSONP可自行定義success之外的函數名稱，而且回傳不再是html形式。</p>
<p>因此我想說回傳時能否不只回傳一筆資料，因此用您的程式改了一下，但為何永遠都只抓到一筆 ?</p>
<p> while($row = mysql_fetch_array($result, MYSQL_ASSOC)){<br />
 $name = $row["name"];<br />
   echo $_GET['callback'].&#8221;({msg: &#8216;$name&#8217;});&#8221;;<br />
 }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ericsk</title>
		<link>http://blog.ericsk.org/archives/839/comment-page-1#comment-21549</link>
		<dc:creator>ericsk</dc:creator>
		<pubDate>Wed, 01 Oct 2008 15:21:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericsk.org/archives/839#comment-21549</guid>
		<description>@1:
I think that you may remove the &quot;jsonp:&#039;processData&#039;&quot;</description>
		<content:encoded><![CDATA[<p>@1:<br />
I think that you may remove the &#8220;jsonp:&#8217;processData&#8217;&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 1</title>
		<link>http://blog.ericsk.org/archives/839/comment-page-1#comment-21548</link>
		<dc:creator>1</dc:creator>
		<pubDate>Wed, 01 Oct 2008 15:17:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericsk.org/archives/839#comment-21548</guid>
		<description>please could you tell me how to write JSP for the following Line:

echo $_GET[&#039;callback&#039;].&quot;({msg: &#039;$res&#039;});&quot;;

I use 
out.println(callback + &quot;({msg: Hello &quot; + gender+ &quot; &quot; + name + &quot;})&quot;);

As a result of this, the callback function is never be called?</description>
		<content:encoded><![CDATA[<p>please could you tell me how to write JSP for the following Line:</p>
<p>echo $_GET['callback'].&#8221;({msg: &#8216;$res&#8217;});&#8221;;</p>
<p>I use<br />
out.println(callback + &#8220;({msg: Hello &#8221; + gender+ &#8221; &#8221; + name + &#8220;})&#8221;);</p>
<p>As a result of this, the callback function is never be called?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: [jQuery] AJAX 學習筆記 (一) 如何使用 JSON 驗證使用者表單 &#124; 小惡魔 - 電腦技術 - 生活日記 - 美食介紹 - AppleBOY</title>
		<link>http://blog.ericsk.org/archives/839/comment-page-1#comment-21369</link>
		<dc:creator>[jQuery] AJAX 學習筆記 (一) 如何使用 JSON 驗證使用者表單 &#124; 小惡魔 - 電腦技術 - 生活日記 - 美食介紹 - AppleBOY</dc:creator>
		<pubDate>Mon, 22 Sep 2008 04:14:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericsk.org/archives/839#comment-21369</guid>
		<description>[...] 參考網站： PHP::JSON in PHP http://visualjquery.com/1.1.2.html jQuery 學習心得筆記 (4) - Ajax (上) jQuery 學習心得筆記 (5) - Ajax (下) [...]</description>
		<content:encoded><![CDATA[<p>[...] 參考網站： PHP::JSON in PHP <a href="http://visualjquery.com/1.1.2.html" rel="nofollow">http://visualjquery.com/1.1.2.html</a> jQuery 學習心得筆記 (4) &#8211; Ajax (上) jQuery 學習心得筆記 (5) &#8211; Ajax (下) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yehchge</title>
		<link>http://blog.ericsk.org/archives/839/comment-page-1#comment-21065</link>
		<dc:creator>yehchge</dc:creator>
		<pubDate>Tue, 09 Sep 2008 02:59:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericsk.org/archives/839#comment-21065</guid>
		<description>謝謝,可以了, 我改寫如下:
function processData(data) {
   ...
   $(&#039;#btn&#039;).attr(’disabled’,false); &lt;== 這樣改寫就OK了!
   }, 3000);
}</description>
		<content:encoded><![CDATA[<p>謝謝,可以了, 我改寫如下:<br />
function processData(data) {<br />
   &#8230;<br />
   $(&#8216;#btn&#8217;).attr(’disabled’,false); &lt;== 這樣改寫就OK了!<br />
   }, 3000);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ericsk</title>
		<link>http://blog.ericsk.org/archives/839/comment-page-1#comment-21064</link>
		<dc:creator>ericsk</dc:creator>
		<pubDate>Tue, 09 Sep 2008 02:29:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericsk.org/archives/839#comment-21064</guid>
		<description>@yehchge
你應該要直接去拿你要作用的對象，
而不是透過 event object 去取 target 喔</description>
		<content:encoded><![CDATA[<p>@yehchge<br />
你應該要直接去拿你要作用的對象，<br />
而不是透過 event object 去取 target 喔</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yehchge</title>
		<link>http://blog.ericsk.org/archives/839/comment-page-1#comment-21063</link>
		<dc:creator>yehchge</dc:creator>
		<pubDate>Tue, 09 Sep 2008 02:26:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericsk.org/archives/839#comment-21063</guid>
		<description>這個範例中,執行到
function processData(data) {
   .....
      $(e.target).attr(&#039;disabled&#039;,false); &lt;== e未被定義
   }, 3000); 
}
請問要如何寫, e才有辦法定義?</description>
		<content:encoded><![CDATA[<p>這個範例中,執行到<br />
function processData(data) {<br />
   &#8230;..<br />
      $(e.target).attr(&#8216;disabled&#8217;,false); &lt;== e未被定義<br />
   }, 3000);<br />
}<br />
請問要如何寫, e才有辦法定義?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ericsk</title>
		<link>http://blog.ericsk.org/archives/839/comment-page-1#comment-20378</link>
		<dc:creator>ericsk</dc:creator>
		<pubDate>Wed, 30 Jul 2008 12:37:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericsk.org/archives/839#comment-20378</guid>
		<description>@Citypig
我覺得會不會是你的 request 有 cache 住了呢？
應該是 request 送不到（也就是回應不是 2xx）就會 error 了</description>
		<content:encoded><![CDATA[<p>@Citypig<br />
我覺得會不會是你的 request 有 cache 住了呢？<br />
應該是 request 送不到（也就是回應不是 2xx）就會 error 了</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Citypig</title>
		<link>http://blog.ericsk.org/archives/839/comment-page-1#comment-20377</link>
		<dc:creator>Citypig</dc:creator>
		<pubDate>Wed, 30 Jul 2008 12:20:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericsk.org/archives/839#comment-20377</guid>
		<description>請問站長:
要如何才能觸發 jQuery 裡 &quot;error:&quot; 的事件?!
因為我就算把 msg.php 從 Server 上刪除也不會發生錯誤訊息，只是一直沒結果!!</description>
		<content:encoded><![CDATA[<p>請問站長:<br />
要如何才能觸發 jQuery 裡 &#8220;error:&#8221; 的事件?!<br />
因為我就算把 msg.php 從 Server 上刪除也不會發生錯誤訊息，只是一直沒結果!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
