<?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>记录与PHP的PK经历 &#187; AJAX</title>
	<atom:link href="http://www.pkphp.com/tag/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pkphp.com</link>
	<description>PK with php!</description>
	<lastBuildDate>Fri, 27 May 2011 02:07:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>使用juqery创建加载消息Using JQuery for an Ajax loading message</title>
		<link>http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/</link>
		<comments>http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/#comments</comments>
		<pubDate>Sun, 07 Sep 2008 04:05:00 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[loading]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=533</guid>
		<description><![CDATA[The other day I needed to develop a web page that would display a “loading” message while a large and complex query ran. The solution I came up with involves using Ajax via the JQuery JavaScript library, and goes something like this:

1. Build the base page

The base page will be the one that ...<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F04%2Fjquery-ajax-in-zend-framework%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jQuery AJAX in Zend Framework</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F30%2Fgoogle-ajax-libraries-api%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Google AJAX Libraries API</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jQuery 技巧总结</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2009%2F01%2F24%2Fhow-to-determin-a-ajax-request-using-php%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP如何判断ajax请求</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>这些天我在利用jquery创建一个项目，项目中大量的使用了jquery。在实施的过程中需要利用jquery创建加载内容的对话框，下面是我的实施过程：</p>
<p><strong>1. Build the base page</strong></p>
<p>The base page will be the one that the user visits. It is responsible for showing the loading message, and providing an area for the data to be displayed. The most basic <acronym>HTML</acronym> goes something like this:</p>
<div style="border: 1px solid gray; margin: 20px 0px 10px; padding: 4px; overflow: auto; font-size: 8pt; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<div style="border-style: none; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   1:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">html</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   2:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">head</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   3:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">title</span><span style="color: #0000ff;">&gt;</span>Base page for content<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">title</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   4:</span> <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">head</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   5:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">body</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   6:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">div</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">="contentLoading"</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="contentLoading"</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   7:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">img</span> <span style="color: #ff0000;">src</span><span style="color: #0000ff;">="loading.gif"</span> <span style="color: #ff0000;">alt</span><span style="color: #0000ff;">="Loading data, please wait..."</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   8:</span> <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">div</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   9:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">div</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">="contentArea"</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">  10:</span> <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">div</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">  11:</span> <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">body</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">  12:</span> <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">html</span><span style="color: #0000ff;">&gt;</span></pre>
</div>
</div>
<p>The key sections here are the &lt;div&gt; tags on lines 06 and 09 above. The &lt;div&gt; on line 06 is the one that displays the loading message. In this case it is an image I downloaded from the <a href="http://www.ajaxload.info/" rel="nofollow">Ajaxload website</a>. The &lt;div&gt; on line 09 is the one that will be where the content that we get will be displayed.</p>
<p><strong>2. Build the page that provides the content</strong></p>
<p>The second page is the one that will be provide the content to be displayed in the &lt;div id=”contentArea”&gt; tag in the base HTML page. For my web development I use <a href="http://www.php.net" rel="nofollow">PHP</a>, but it could be any server based language that is used. A simple PHP page to confirm that the Ajax is working is as follows:</p>
<div style="border: 1px solid gray; margin: 20px 0px 10px; padding: 4px; overflow: auto; font-size: 8pt; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<div style="border-style: none; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   1:</span> <span style="color: #008000;">// get the start time</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   2:</span> $start_time = microtime(<span style="color: #0000ff;">true</span>);</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   3:</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   4:</span> <span style="color: #008000;">// sleep for four seconds</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   5:</span> sleep(4);</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   6:</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   7:</span> <span style="color: #008000;">// get the end time</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   8:</span> $end_time = microtime(<span style="color: #0000ff;">true</span>);</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   9:</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">  10:</span> <span style="color: #008000;">// print out a message</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">  11:</span> print <span style="color: #006080;">"&lt;p&gt;Call to secondary PHP page worked!&lt;/p&gt;"</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">  12:</span> print <span style="color: #006080;">"&lt;p&gt;Elapsed time: "</span> $end_time - $start_time . <span style="color: #006080;">"&lt;/p&gt;"</span></pre>
</div>
</div>
<p>The key line here is line 05. The call to the <code>sleep()</code> function will mean that the execution of the page is suspended for four seconds. In this way you can see if the Ajax is working because you will see the loading message for no more than four seconds. If it is longer, or shorter, you know something bad happened.</p>
<p><strong>3. Tying it all together with JQuery and Ajax</strong></p>
<p>To tie the two pages together using JQuery and Ajax the first thing we need to do is modify the base page slightly so the JQuery library is loaded. This is simply achieved by line 04 in the source code below:</p>
<div style="border: 1px solid gray; margin: 20px 0px 10px; padding: 4px; overflow: auto; font-size: 8pt; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<div style="border-style: none; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   1:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">html</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   2:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">head</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   3:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">title</span><span style="color: #0000ff;">&gt;</span>Base page for content<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">title</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   4:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">script</span> <span style="color: #ff0000;">src</span><span style="color: #0000ff;">="/jquery.js"</span> <span style="color: #ff0000;">type</span><span style="color: #0000ff;">="text/javascript"</span><span style="color: #0000ff;">&gt;&lt;/</span><span style="color: #800000;">script</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   5:</span> <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">head</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   6:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">body</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   7:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">div</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">="contentLoading"</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="contentLoading"</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   8:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">img</span> <span style="color: #ff0000;">src</span><span style="color: #0000ff;">="loading.gif"</span> <span style="color: #ff0000;">alt</span><span style="color: #0000ff;">="Loading data, please wait..."</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   9:</span> <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">div</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">  10:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">div</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">="contentArea"</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">  11:</span> <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">div</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">  12:</span> <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">body</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">  13:</span> <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">html</span><span style="color: #0000ff;">&gt;</span></pre>
</div>
</div>
<p>We then need to add the following JavaScript code as well:</p>
<div style="border: 1px solid gray; margin: 20px 0px 10px; padding: 4px; overflow: auto; font-size: 8pt; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<div style="border-style: none; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   1:</span> &lt;script type=<span style="color: #006080;">"text/javascript"</span>&gt;</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   2:</span> &lt;!--</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   3:</span> jQuery(<span style="color: #0000ff;">function</span>($) {</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   4:</span> $(<span style="color: #006080;">"#contentArea"</span>).load(<span style="color: #006080;">"test.php"</span>);</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   5:</span> });</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   6:</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   7:</span> $().ajaxSend(<span style="color: #0000ff;">function</span>(r,s){</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   8:</span> $(<span style="color: #006080;">"#contentLoading"</span>).show();</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   9:</span> });</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">  10:</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">  11:</span> $().ajaxStop(<span style="color: #0000ff;">function</span>(r,s){</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">  12:</span> $(<span style="color: #006080;">"#contentLoading"</span>).fadeOut(<span style="color: #006080;">"fast"</span>);</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">  13:</span> });</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">  14:</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">  15:</span> <span style="color: #008000;">//--&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">  16:</span> &lt;/script&gt;</pre>
</div>
</div>
<p>The code above adds three functions. Their jobs are as follows:</p>
<ol>
<li>When the page is ready to be manipulated, ie. fully loaded, use Ajax to load the output of the test.php page into the &lt;div id=”contentArea&gt; tag;</li>
<li>When an Ajax call starts, show the &lt;div id=”contentLoading&gt; tag; and</li>
<li>When an Ajax call completes, fade out the &lt;div id=”contentLoading&gt; tag effectively hiding the message.</li>
</ol>
<p>In this way the following workflow is achieved:</p>
<ol>
<li>The users browser loads the base HTML page;</li>
<li>Once the base HTML page is loaded an Ajax call is made to load the test.php page;</li>
<li>When the Ajax call starts the content in the &lt;div id=”contentLoading&gt; tag, the loading message, is displayed;</li>
<li>When the Ajax call finishes the output of the test.php page is put into the &lt;div id=”contentArea&gt; tag and displayed to the user. At the same time the content in the &lt;div id=”contentLoading&gt; tag is hidden.</li>
</ol>
<p>This achieved what I needed. The page shows the user that something is happening, the data is being loaded, and therefore hopefully the user is patient enough to wait until it completes and doesn’t click the refresh button or become impatient. There are a couple of caveats with this solution and they are:</p>
<ol>
<li>If the user doesn’t have JavaScript enabled they won’t see the content returned by the Ajax call because it will never happen. In a closed environment, like the one I’m developing for, this isn’t much of an issue but for a website designed for general consumption an alternative would need to be provided;</li>
<li>The use of Ajax can make it harder to diagnose display issues with your HTML because you can’t see the HTML returned by the Ajax call by using the “view source” functionality of your browser. In my case I use <a href="http://www.mozilla.com/firefox/" rel="nofollow">Firefox</a> and to see the HTML I needed to use the “View Generated Source” functionality of the excellent <a href="http://chrispederick.com/work/web-developer/" rel="nofollow">Web Developer</a> add-on; and</li>
<li>The example code uses the global AjaxSend and AjaxStop functions. This means it is not practical to have another different Ajax call on the same page.</li>
</ol>
<p>I’m sure there are other ways of doing this type of thing, by no means is this <strong>the only</strong> way. I’m still exploring the capabilities of the JQuery library and will no doubt find different ways of achieving this type of functionality. If I do, I’ll be sure to post about them here.<br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/'>关于jquery在windows XP下IE7窗口位置溢出窗口的bug</a></li>
<li><a href='http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/'>Google AJAX Libraries API</a></li>
<li><a href='http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/'>jQuery 技巧总结</a></li>
<li><a href='http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/'>thickbox在IE6,IE7,IE8下窗口不在中间的bug修复</a></li>
<li><a href='http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/'>wordpress自助插件auto blogroll V1.4 发布!</a></li>
</ul>
<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="ajaxSend(function" style="font-size: 13px;">ajaxSend(function</a>(1)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="jquery sleep time" style="font-size: 13px;">jquery sleep time</a>(2)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="jquery fade-out sensitive" style="font-size: 13px;">jquery fade-out sensitive</a>(1)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="jquery please wait" style="font-size: 13px;">jquery please wait</a>(1)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="jquery sleep" style="font-size: 13px;">jquery sleep</a>(28)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="jquery div创建a" style="font-size: 13px;">jquery div创建a</a>(1)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="javascript call jquery tag" style="font-size: 13px;">javascript call jquery tag</a>(1)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="jquery Ajax load" style="font-size: 13px;">jquery Ajax load</a>(2)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="jquery loading message" style="font-size: 13px;">jquery loading message</a>(2)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="jquery img load" style="font-size: 13px;">jquery img load</a>(2)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="jquery" style="font-size: 13px;">jquery</a>(1)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="ajax load php" style="font-size: 13px;">ajax load php</a>(1)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="jquery ajax loading" style="font-size: 13px;">jquery ajax loading</a>(5)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="jquery ajax" style="font-size: 13px;">jquery ajax</a>(1)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="juqery 图片 view" style="font-size: 13px;">juqery 图片 view</a>(1)<br /><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F04%2Fjquery-ajax-in-zend-framework%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jQuery AJAX in Zend Framework</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F30%2Fgoogle-ajax-libraries-api%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Google AJAX Libraries API</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jQuery 技巧总结</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2009%2F01%2F24%2Fhow-to-determin-a-ajax-request-using-php%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP如何判断ajax请求</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件" rel="nofollow">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table><p><div id="relatedlinks_container_div"></div>
<script language=javascript defer>
  var escFun = window.encodeURIComponent ? window.encodeURIComponent : escape;
  var relatedlinks_js = document.createElement("script");
  relatedlinks_js.setAttribute("charset", "utf-8");
  relatedlinks_js.src = "http://relatedlinks.googlelabs.com/client/client.js?url=" +
      escFun(document.URL) + "&referrer=" + escFun(document.referrer) +
      "&relatedlinks_id=10098_5845376649736343543&title=" + escFun(document.title);
  document.getElementsByTagName("head")[0].appendChild(relatedlinks_js);
</script></p> ]]></content:encoded>
			<wfw:commentRss>http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Google AJAX Libraries API</title>
		<link>http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/</link>
		<comments>http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/#comments</comments>
		<pubDate>Fri, 30 May 2008 13:37:30 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=51</guid>
		<description><![CDATA[Google 最近发布了 AJAX Libraries API。 简单说就是 Google 把一些非常流行的 JavaScript 框架放到 Google 的服务器上。这样大家来说可以充分利用 Google 的服务器资源，节省自己的网络带宽，更重要的是 Google 对这些框架进行了压缩，所以在使用 JavaScript 框架的时候速度方面有很大的提高。目前 Google 已经包含了以下的...<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2009%2F01%2F02%2Fgoogle-chart-api-show-chinese%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F30%2Fgoogle-ajax-libraries-api%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php中让Google Chart API如何显示中文</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F16%2Ftaobao-api-opening%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F30%2Fgoogle-ajax-libraries-api%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">淘宝开放了api，另我兴奋，但是研究之后，发现问题多多！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2009%2F03%2F13%2Fgoogle-chart-api%25E8%25A2%25AB%25E5%2592%258C%25E8%25B0%2590%25E4%25BA%2586%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F30%2Fgoogle-ajax-libraries-api%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Google Chart API被和谐了</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F30%2Fgoogle-ajax-libraries-api%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用juqery创建加载消息Using JQuery for an Ajax loading message</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>Google 最近发布了 <a id="r_l_7" class="external" rel="nofollow" href="http://code.google.com/apis/ajaxlibs/" target="_blank">AJAX Libraries API</a>。 简单说就是 Google 把一些非常流行的 JavaScript 框架放到 Google 的服务器上。这样大家来说可以充分利用 Google 的服务器资源，节省自己的网络带宽，更重要的是 Google 对这些框架进行了压缩，所以在使用 JavaScript 框架的时候速度方面有很大的提高。目前 Google 已经包含了以下的 JavaScript 框架：</p>
<ul>
<li>jQuery</li>
<li>prototype</li>
<li>script.aculo.us</li>
<li>MooTools</li>
<li>dojo</li>
</ul>
<p>目前可以有两种调用这些 JavaScript  框架的方法：<br />
第一种，传统的 JavaScript 调用方法：</p>
<pre><span style="color: gray;">&lt;</span><span style="color: blue;">script</span><span style="color: gray;"> </span><span style="color: blue;">src</span><span style="color: gray;"> = </span><span style="color: #8b0000;">"</span><span style="color: red;">http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.2/prototype.js</span><span style="color: #8b0000;">"</span><span style="color: gray;">&gt; &lt;/</span><span style="color: blue;">script</span><span style="color: gray;">&gt;</span></pre>
<p>第二种通过 <a id="r_l_8" class="external" rel="nofollow" href="http://code.google.com/apis/ajax/documentation/" target="_blank">Google AJAX API Loader 的 google.load() </a>方法。</p>
<pre><span style="color: gray;">&lt;</span><span style="color: blue;">script</span><span style="color: gray;"> </span><span style="color: blue;">src</span><span style="color: gray;">=</span><span style="color: #8b0000;">"</span><span style="color: red;">http://www.google.com/jsapi</span><span style="color: #8b0000;">"</span><span style="color: gray;">&gt;&lt;/</span><span style="color: blue;">script</span><span style="color: gray;">&gt;
&lt;</span><span style="color: blue;">script</span><span style="color: gray;">&gt;
</span><span style="color: #ffa500;">// Load jQuery</span><span style="color: gray;">
</span><span style="color: blue;">google</span><span style="color: gray;">.</span><span style="color: blue;">load</span><span style="color: olive;">(</span><span style="color: #8b0000;">"</span><span style="color: red;">jquery</span><span style="color: #8b0000;">"</span><span style="color: gray;">, </span><span style="color: #8b0000;">"</span><span style="color: red;">1</span><span style="color: #8b0000;">"</span><span style="color: olive;">)</span><span style="color: gray;">;
&lt;/</span><span style="color: blue;">script</span><span style="color: gray;">&gt;</span></pre>
<p>更多详细介绍请看 <a id="r_l_9" class="external" rel="nofollow" href="http://code.google.com/apis/ajaxlibs/" target="_blank">AJAX Libraries API 网站</a>。</p>
<p>作者：<a id="r_l_10" title="雪山飞猪" href="http://fairyfish.net/" target="_blank" rel="nofollow">雪山飞猪</a><br />
原文链接：<a title="Google AJAX Libraries API" href="http://fairyfish.net/2008/05/29/google-ajax-libraries-api/" rel="nofollow">Google AJAX Libraries API</a><br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/'>使用juqery创建加载消息Using JQuery for an Ajax loading message</a></li>
<li><a href='http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/'>thickbox在IE6,IE7,IE8下窗口不在中间的bug修复</a></li>
<li><a href='http://www.pkphp.com/2008/09/25/%e5%85%a8%e7%90%83%e9%a6%96%e9%83%a8google-android%e6%89%8b%e6%9c%ba%e9%9c%87%e6%92%bc%e5%8f%91%e5%b8%83%ef%bc%81/'>全球首部Google Android手机震撼发布！</a></li>
<li><a href='http://www.pkphp.com/2008/09/21/%e6%b7%98%e5%ae%9dapi%e5%81%9a%e5%87%ba%e6%9d%a5%e7%9a%84%e4%b8%9c%e8%a5%bf%ef%bc%81/'>淘宝api做出来的东西！</a></li>
<li><a href='http://www.pkphp.com/2008/09/16/taobao-api-opening/'>淘宝开放了api，另我兴奋，但是研究之后，发现问题多多！</a></li>
</ul>
<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="php ajax google" style="font-size: 13px;">php ajax google</a>(1)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="google jsapi" style="font-size: 13px;">google jsapi</a>(2)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="国内 使用google AJAX API的站点" style="font-size: 13px;">国内 使用google AJAX API的站点</a>(1)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="google jsapi twitter" style="font-size: 13px;">google jsapi twitter</a>(1)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="taobao api ajax" style="font-size: 13px;">taobao api ajax</a>(2)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="Google AJAX Libraries API" style="font-size: 13px;">Google AJAX Libraries API</a>(1)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="google api" style="font-size: 13px;">google api</a>(3)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="jquery google api" style="font-size: 13px;">jquery google api</a>(1)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="google api ajax php" style="font-size: 13px;">google api ajax php</a>(1)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="google ajax" style="font-size: 13px;">google ajax</a>(1)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="jquery simple Tree api" style="font-size: 13px;">jquery simple Tree api</a>(1)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="wordpress Google AJAX Libraries" style="font-size: 13px;">wordpress Google AJAX Libraries</a>(1)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="php google ajax api image" style="font-size: 13px;">php google ajax api image</a>(1)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="ajax api image" style="font-size: 13px;">ajax api image</a>(1)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="yii framework taobao api" style="font-size: 13px;">yii framework taobao api</a>(1)<br /><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2009%2F01%2F02%2Fgoogle-chart-api-show-chinese%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F30%2Fgoogle-ajax-libraries-api%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php中让Google Chart API如何显示中文</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F16%2Ftaobao-api-opening%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F30%2Fgoogle-ajax-libraries-api%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">淘宝开放了api，另我兴奋，但是研究之后，发现问题多多！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2009%2F03%2F13%2Fgoogle-chart-api%25E8%25A2%25AB%25E5%2592%258C%25E8%25B0%2590%25E4%25BA%2586%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F30%2Fgoogle-ajax-libraries-api%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Google Chart API被和谐了</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F30%2Fgoogle-ajax-libraries-api%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用juqery创建加载消息Using JQuery for an Ajax loading message</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件" rel="nofollow">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

