<?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; jQuery</title>
	<atom:link href="http://www.pkphp.com/tag/jquery/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>关于jquery在windows XP下IE7窗口位置溢出窗口的bug</title>
		<link>http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/</link>
		<comments>http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 15:30:13 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[位置]]></category>
		<category><![CDATA[窗口]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=520</guid>
		<description><![CDATA[今天在做一个项目中用到了jquery插件thickbox3.1插件，发现了一个bug，在windows XP下使用IE7，当弹出窗口比较大时，窗口的下面部分会超出ie窗口，而且没有滚动条，怎么也无法看到窗口的全部部分。

经过查找，最后在国外的网站看到了一位朋友修正了这个问题。具体的修正过程看这里吧

如果你也在使用thickbox3.1请使用...<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%2F12%2F19%2Fjquery-title-bug%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F22%2Fjquery-windowsxp-ie7-bug%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[bug]jquery无法操作网页title标题内容</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%2F07%2F04%2Fjquery-ajax-in-zend-framework%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F22%2Fjquery-windowsxp-ie7-bug%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%2F2009%2F09%2F17%2Fthickbox-ie6-ie7-ie8-bug%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F22%2Fjquery-windowsxp-ie7-bug%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">thickbox在IE6,IE7,IE8下窗口不在中间的bug修复</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%2F08%2F22%2Fjquery-windowsxp-ie7-bug%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jQuery 技巧总结</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插件thickbox3.1插件，发现了一个bug，在windows XP下使用IE7，当弹出窗口比较大时，窗口的下面部分会超出ie窗口，而且没有滚动条，怎么也无法看到窗口的全部部分。</p>
<p>经过查找，最后在国外的网站看到了一位朋友修正了这个问题。具体的修正过程看<a href="http://jamazon.co.uk/web/2008/03/17/thickbox-31-ie7-positioning-bug/" target="_blank" rel="nofollow">这里吧</a></p>
<p>如果你也在使用thickbox3.1请使用下列文件任选其一覆盖你的thickbox.js文件即可！</p>
<ul>
<li><a href="http://jamazon.co.uk/files/js/thickbox.patch.js" rel="nofollow">thickbox.patch.js</a></li>
<li><a href="http://jamazon.co.uk/files/js/thickbox.patch.pack.js" rel="nofollow">thickbox.patch.pack.js</a></li>
</ul>
<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/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>
<li><a href='http://www.pkphp.com/2008/07/27/windows-live-writer-%e6%b5%8b%e8%af%95%ef%bc%81/'>windows live writer 测试！</a></li>
</ul>
<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="thickbox 设置图片大小" style="font-size: 13px;">thickbox 设置图片大小</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="thickbox3.1 窗口大小" style="font-size: 13px;">thickbox3.1 窗口大小</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="php apache ie7 bug" style="font-size: 13px;">php apache ie7 bug</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="thickbox窗口位置" style="font-size: 13px;">thickbox窗口位置</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="jquery 位置 bug" style="font-size: 13px;">jquery 位置 bug</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="thickbox 图片大小" style="font-size: 13px;">thickbox 图片大小</a>(3)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="thickbox3.1 ie" style="font-size: 13px;">thickbox3.1 ie</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="thickbox.patch.js -jamazon" style="font-size: 13px;">thickbox.patch.js -jamazon</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="jquery图片大小" style="font-size: 13px;">jquery图片大小</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="thickbox 窗口大小可调整" style="font-size: 13px;">thickbox 窗口大小可调整</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="thickbox 滚动条 IE7" style="font-size: 13px;">thickbox 滚动条 IE7</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="thickbox设置图片大小" style="font-size: 13px;">thickbox设置图片大小</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="thickbox 溢出" style="font-size: 13px;">thickbox 溢出</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="图片大小 设置thickbox" style="font-size: 13px;">图片大小 设置thickbox</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="jquery window 自动调整位置" style="font-size: 13px;">jquery window 自动调整位置</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%2F12%2F19%2Fjquery-title-bug%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F22%2Fjquery-windowsxp-ie7-bug%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[bug]jquery无法操作网页title标题内容</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%2F07%2F04%2Fjquery-ajax-in-zend-framework%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F22%2Fjquery-windowsxp-ie7-bug%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%2F2009%2F09%2F17%2Fthickbox-ie6-ie7-ie8-bug%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F22%2Fjquery-windowsxp-ie7-bug%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">thickbox在IE6,IE7,IE8下窗口不在中间的bug修复</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%2F08%2F22%2Fjquery-windowsxp-ie7-bug%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jQuery 技巧总结</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/08/22/jquery-windowsxp-ie7-bug/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>jQuery AJAX in Zend Framework</title>
		<link>http://www.pkphp.com/2008/07/04/jquery-ajax-in-zend-framework/</link>
		<comments>http://www.pkphp.com/2008/07/04/jquery-ajax-in-zend-framework/#comments</comments>
		<pubDate>Fri, 04 Jul 2008 12:58:44 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[zend framework]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=144</guid>
		<description><![CDATA[研究一篇老外的文章：在zend framework中使用jquery


I have posted a sample code on my wiki on how to submit variables to an action controller. The sample code contains a niffty jQuery plugin - the jQuery Calendar.

Click here for the tutorial.

Update (05-07-2008): Since this post has been get...<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%2F06%2F24%2Fzend-framework-v15-%25E4%25B8%25AD%25E7%259A%2584%25E6%2596%25B0%25E7%2589%25B9%25E6%2580%25A7%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F04%2Fjquery-ajax-in-zend-framework%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Zend Framework V1.5 中的新特性</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%2F08%2F27%2Fzend-framework-exception%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F04%2Fjquery-ajax-in-zend-framework%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">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%2F03%2F24%2Fzend-framework-mvc%25E6%25B5%2581%25E7%25A8%258B%25E5%259B%25BE%25E8%25BD%25AC%25E5%25B8%2596%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F04%2Fjquery-ajax-in-zend-framework%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Zend Framework MVC流程图[转帖]</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%2F04%2F01%2F%25E3%2580%2590%25E8%25BD%25AC%25E5%25B8%2596%25E3%2580%2591zend-framework%25E4%25B8%25ADajax%25E7%259A%2584%25E4%25B8%2580%25E4%25B8%25AA%25E4%25BD%25BF%25E7%2594%25A8%25E6%258A%2580%25E5%25B7%25A7%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F04%2Fjquery-ajax-in-zend-framework%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【转帖】Zend Framework中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>研究一篇老外的文章：在zend framework中使用jquery    ,原文见</p>
<ul> http://blog.ekini.net/2007/08/28/jquery-ajax-in-zend-framework/</ul>
<p>I have posted a sample code on my wiki on how to submit variables to an action controller. The sample code contains a niffty jQuery plugin &#8211; the jQuery Calendar.</p>
<p>Click here for the tutorial.</p>
<p>Update (05-07-2008): Since this post has been getting a lot of traffic and the tutorial to my wiki is not that good, I have decided to update this page and post a simpler and shorter tutorial.</p>
<p>So here it is…</p>
<p>The Javascript will look something like this:<br />
<code lang="php"><br />
//For Edit Action<br />
function editnote(notes_id)<br />
{<br />
//a sample loading image thingy<br />
$(‘#notes_entry_id’).prepend(&quot;&lt;div id=&quot;’loading’&quot;&gt;&lt;a&gt;&lt;/a&gt;&lt;/div&gt;&quot;);<br />
//Get notes from database - in ZF, notes = controller and getnoteforedit = action<br />
$.post(baseUrl+&quot;/notes/getnoteforedit&quot;,{<br />
notes_id: notes_id<br />
}, function(data){<br />
$(‘#loading’).remove();<br />
obj = window.eval(data);<br />
$(‘#textarea_id’).val(obj[‘notes’]);<br />
}, &quot;json&quot;); //this returns JSON.<br />
}<br />
</code><br />
Then my controller would look something like this:<br />
<code lang="php"><br />
/**<br />
* Get note for action<br />
*<br />
*/<br />
public function getnoteforeditAction()<br />
{<br />
$this-&gt;_helper-&gt;layout-&gt;disableLayout();    //disable layout<br />
$this-&gt;_helper-&gt;viewRenderer-&gt;setNoRender(); //suppress auto-rendering<br />
//the 2 lines above are very important. this action would return html tags from the layout and will look for a phtml file. we disable the layout and suppress auto-rendering of the phtml view files SO that our JSON will be echoed properly to the Javascript…<br />
require_once(‘models/Notes.php’);<br />
require_once(‘models/UsersNotes.php’);<br />
try {<br />
if (!$this-&gt;_request-&gt;isPost()) {<br />
throw new Exception(‘Invalid action. Not post.’);<br />
}<br />
$Notes = new Notes();<br />
$data = array();<br />
if ($result = $Notes-&gt;fetchRow("notes_id=".$Notes-&gt;getAdapter()-&gt;quote($_POST[‘notes_id’])."")-&gt;toArray()) {<br />
$data[‘notes_id’]             = $result["notes_id"];<br />
$data[‘notes’]                = $result["notes"];<br />
$data[‘datetime_posted’] = $result["datetime_posted"];<br />
$data[’status’]               = $result["status"];<br />
$json = Zend_Json::encode($data);    //basically, $data array will also be available in the JS.<br />
} else {<br />
throw new Exception(‘Note ID not found.’);<br />
}<br />
echo $json; //this will echo JSON to the Javascript<br />
unset($json);<br />
unset($data);<br />
} catch (Exception $e) {<br />
echo $e-&gt;getMessage();<br />
}<br />
}<br />
</code></p>
<p>That’s about it… <img src='http://www.pkphp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
The $data that was encoded using Zend_JSON in the controller/action can now be accessed in the Javascript after you call the eval().<br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/06/24/zend-framework-v15-%e4%b8%ad%e7%9a%84%e6%96%b0%e7%89%b9%e6%80%a7/'>Zend Framework V1.5 中的新特性</a></li>
<li><a href='http://www.pkphp.com/2010/01/09/zend-framework-render-intro/'>[转]详细介绍php Zend Framework中的render使用方法</a></li>
<li><a href='http://www.pkphp.com/2008/09/10/%e4%bb%8a%e6%97%a5%e5%88%b0%e5%8d%97%e4%ba%ac%e4%b8%8a%e7%bd%91%ef%bc%8c%e5%8f%91%e7%8e%b0ff%e5%81%b6%e5%b0%94%e6%89%93%e5%bc%80%e7%9a%84%e7%bd%91%e9%a1%b5%e5%87%ba%e7%8e%b0%e5%a6%82%e4%b8%8b%e4%bb%a3/'>今日到南京上网，发现偶尔打开的网页出现如下代码</a></li>
<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/2008/08/27/zend-framework-exception/'>zend framework错误或者异常信息捕捉</a></li>
</ul>
<a href="http://www.pkphp.com/2008/07/04/jquery-ajax-in-zend-framework/" title="zend framework ajax" style="font-size: 13px;">zend framework ajax</a>(78)<a href="http://www.pkphp.com/2008/07/04/jquery-ajax-in-zend-framework/" title="zend framework layout" style="font-size: 13px;">zend framework layout</a>(8)<a href="http://www.pkphp.com/2008/07/04/jquery-ajax-in-zend-framework/" title="jquery ajax after post" style="font-size: 13px;">jquery ajax after post</a>(1)<a href="http://www.pkphp.com/2008/07/04/jquery-ajax-in-zend-framework/" title="zend framework" style="font-size: 13px;">zend framework</a>(3)<a href="http://www.pkphp.com/2008/07/04/jquery-ajax-in-zend-framework/" title="jquery zend framework" style="font-size: 13px;">jquery zend framework</a>(6)<a href="http://www.pkphp.com/2008/07/04/jquery-ajax-in-zend-framework/" title="zendframework" style="font-size: 13px;">zendframework</a>(2)<a href="http://www.pkphp.com/2008/07/04/jquery-ajax-in-zend-framework/" title="zend ajax" style="font-size: 13px;">zend ajax</a>(25)<a href="http://www.pkphp.com/2008/07/04/jquery-ajax-in-zend-framework/" title="Zend jquery" style="font-size: 13px;">Zend jquery</a>(37)<a href="http://www.pkphp.com/2008/07/04/jquery-ajax-in-zend-framework/" title="zend framework tutorial" style="font-size: 13px;">zend framework tutorial</a>(1)<a href="http://www.pkphp.com/2008/07/04/jquery-ajax-in-zend-framework/" title="http://www.pkphp.com/2008/07/04/jquery-ajax-in-zend-framework/" style="font-size: 13px;">http://www.pkphp.com/2008/07/04/jquery-ajax-in-zend-framework/</a>(2)<a href="http://www.pkphp.com/2008/07/04/jquery-ajax-in-zend-framework/" title="zendframework Ajax" style="font-size: 13px;">zendframework Ajax</a>(9)<a href="http://www.pkphp.com/2008/07/04/jquery-ajax-in-zend-framework/" title="zend framework php pk" style="font-size: 13px;">zend framework php pk</a>(1)<a href="http://www.pkphp.com/2008/07/04/jquery-ajax-in-zend-framework/" title="tutorial zend framework V1.6" style="font-size: 13px;">tutorial zend framework V1.6</a>(1)<a href="http://www.pkphp.com/2008/07/04/jquery-ajax-in-zend-framework/" title="ajax in zend framework" style="font-size: 13px;">ajax in zend framework</a>(1)<a href="http://www.pkphp.com/2008/07/04/jquery-ajax-in-zend-framework/" title="jquery in zend framework" style="font-size: 13px;">jquery in zend framework</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%2F06%2F24%2Fzend-framework-v15-%25E4%25B8%25AD%25E7%259A%2584%25E6%2596%25B0%25E7%2589%25B9%25E6%2580%25A7%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F04%2Fjquery-ajax-in-zend-framework%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Zend Framework V1.5 中的新特性</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%2F08%2F27%2Fzend-framework-exception%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F04%2Fjquery-ajax-in-zend-framework%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">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%2F03%2F24%2Fzend-framework-mvc%25E6%25B5%2581%25E7%25A8%258B%25E5%259B%25BE%25E8%25BD%25AC%25E5%25B8%2596%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F04%2Fjquery-ajax-in-zend-framework%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Zend Framework MVC流程图[转帖]</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%2F04%2F01%2F%25E3%2580%2590%25E8%25BD%25AC%25E5%25B8%2596%25E3%2580%2591zend-framework%25E4%25B8%25ADajax%25E7%259A%2584%25E4%25B8%2580%25E4%25B8%25AA%25E4%25BD%25BF%25E7%2594%25A8%25E6%258A%2580%25E5%25B7%25A7%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F04%2Fjquery-ajax-in-zend-framework%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【转帖】Zend Framework中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>]]></content:encoded>
			<wfw:commentRss>http://www.pkphp.com/2008/07/04/jquery-ajax-in-zend-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery 技巧总结</title>
		<link>http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/</link>
		<comments>http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/#comments</comments>
		<pubDate>Tue, 27 May 2008 10:17:18 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[技巧]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=50</guid>
		<description><![CDATA[一、简介
1.1、概述
随着WEB2.0及ajax思想在互联网上的快速发展传播，陆续出现了一些优秀的Js框架， 其中比较著名的有Prototype、YUI、jQuery、mootools、Bindows以及国内的JSVM框架等，通过将这些JS框架应用到我们 的项目中能够使程序员从设计和书写繁杂的JS应用中解脱出来，将关注点转向功能需求而非实现细节上，从而提...<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%2F09%2F07%2Fjquery-for-ajax-loading-message%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%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 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%2F03%2F24%2Fjquery%25E6%258A%2580%25E5%25B7%25A7%25E5%25BA%2594%25E7%2594%25A8%25E5%25B0%258F%25E7%25BB%2593%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%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%2F2008%2F08%2F22%2Fjquery-windowsxp-ie7-bug%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于jquery在windows XP下IE7窗口位置溢出窗口的bug</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%2F07%2F04%2Fjquery-ajax-in-zend-framework%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%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  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><strong>一、简介</strong><br />
<strong>1.1、概述</strong><br />
随着WEB2.0及ajax思想在互联网上的快速发展传播，陆续出现了一些优秀的Js<span class="t_tag" onclick="tagshow(event)">框架</span>， 其中比较著名的有Prototype、YUI、jQuery、mootools、Bindows以及国内的JSVM框架等，通过将这些JS框架应用到我们 的项目中能够使程序员从设计和书写繁杂的JS应用中解脱出来，将关注点转向功能需求而非实现细节上，从而提高项目的开发速度。<br />
jQuery是继prototype之后的又一个优秀的Javascript框架。它是由 John Resig 于 2006年初创建的，它有助于简化 JavaScript™ 以及Ajax编程。有人使用这样的一比喻来比较prototype和jQuery：prototype就像Java，而jQuery就像ruby.它是一 个简洁快速灵活的JavaScript框架，它能让你在你的网页上简单的操作文档、处理事件、实现特效并为Web页面添加Ajax交互。<br />
<strong>它具有如下一些特点</strong>：</p>
<ul type="1">
<li>代码简练、语义易懂、学习快速、文档丰富。</li>
<li>jQuery是一个轻量级的脚本，其代码非常小巧，最新版的JavaScript包只有20K左右。</li>
<li>jQuery支持CSS1-CSS3,以及基本的xPath。</li>
<li>jQuery是跨浏览器的，它支持的浏览器包括IE 6.0+, FF 1.5+, Safari 2.0+, Opera 9.0+。</li>
<li>可以很容易的为jQuery扩展其他功能。</li>
<li>能将JS代码和HTML代码完全分离，便于代码和维护和修改。</li>
<li>插件丰富，除了jQuery本身带有的一些特效外，可以通过插件实现更多功能，如表单验证、tab导航、拖放效果、表格排序、DataGrid，树形菜单、图像特效以及ajax上传等。</li>
</ul>
<p>jQuery的设计会改变你写JavaScript代码的方式，降低你学习使用JS操作网页的复杂度，提高网页JS开发效率，无论对于js初学者还是资深专家，jQuery都将是您的首选。<br />
jQuery适合于设计师、开发者以及那些还好者，同样适合用于商业开发，可以说jQuery适合任何JavaScript应用的地方，可用于不同的Web应用程序中。<br />
官方站点：<a href="http://jquery.com/" target="_blank" rel="nofollow">http://jquery.com/</a> 中文站点：<a href="http://jquery.org.cn/" target="_blank" rel="nofollow">http://jquery.org.cn/</a><br />
<strong>1.2、目的</strong><br />
通过学习本文档，能够对jQuery有一个简单的认识了解，清楚JQuery与其他JS框架的不同，掌握jQuery的常用语法、使用技巧及注意事项。<br />
<strong>二、使用方法</strong><br />
在需要使用JQuery的页面中引入JQuery的js文件即可。<br />
例如：&lt;script type=&#8221;text/<span class="t_tag" onclick="tagshow(event)">javascript</span>&#8221; src=&#8221;js/jquery.js&#8221;&gt;&lt;/script&gt;<br />
引入之后便可在页面的任意地方使用jQuery提供的语法。<br />
<strong>三、学习教程及参考资料</strong><br />
请参照《jQuery中文API手册》和<a href="http://jquery.org.cn/visual/cn/index.xml" target="_blank" rel="nofollow">http://jquery.org.cn/visual/cn/index.xml</a><br />
推荐两篇不错的jquery教程：《jQuery的起点教程》和《使用 jQuery 简化 Ajax 开发》<br />
<strong>四、语法总结和注意事项</strong><strong>1、关于页面元素的引用</strong><br />
通过jquery的$()引用元素包括通过id、class、元素名以及元素的层级关系及dom或者xpath条件等方法，且返回的对象为jquery对象（集合对象），不能直接调用dom定义的方法。<br />
<strong>2、jQuery对象与dom对象的转换</strong><br />
只有jquery对象才能使用jquery定义的方法。注意dom对象和jquery对象是有区别的，调用方法时要注意操作的是dom对象还是jquery对象。<br />
普通的dom对象一般可以通过$()转换成jquery对象。<br />
如：$(document.getElementById(&#8220;msg&#8221;))则为jquery对象，可以使用jquery的方法。<br />
由于jquery对象本身是一个集合。所以如果jquery对象要转换为dom对象则必须取出其中的某一项，一般可通过索引取出。<br />
如：$(&#8220;#msg&#8221;)[0]，$(&#8220;div&#8221;).eq(1)[0]，$(&#8220;div&#8221;).get()[1]，$(&#8220;td&#8221;)[5]这些都是dom对象，可以使用dom中的方法，但不能再使用Jquery的方法。<br />
以下几种写法都是正确的：<br />
$(&#8220;#msg&#8221;).html();<br />
$(&#8220;#msg&#8221;)[0].innerHTML;<br />
$(&#8220;#msg&#8221;).eq(0)[0].innerHTML;<br />
$(&#8220;#msg&#8221;).get(0).innerHTML;<br />
<strong>3、如何获取jQuery集合的某一项</strong><br />
对于获取的元素集合，获取其中的某一项（通过索引指定）可以使用eq或get(n)方法或者索引号获取，要注意，eq返回的是jquery对象，而get (n)和索引返回的是dom元素对象。对于jquery对象只能使用jquery的方法，而dom对象只能使用dom的方法，如要获取第三个&lt; div&gt;元素的内容。有如下两种方法：<br />
$(&#8220;div&#8221;).eq(2).html();              //调用jquery对象的方法<br />
$(&#8220;div&#8221;).get(2).innerHTML;       //调用dom的方法属性<br />
<strong>4、同一函数实现set和get</strong><br />
Jquery中的很多方法都是如此，主要包括如下几个：</p>
<p>$(&#8220;#msg&#8221;).html();              //返回id为msg的元素节点的html内容。<br />
$(&#8220;#msg&#8221;).html(&#8220;&lt;b&gt;new content&lt;/b&gt;&#8221;);<br />
//将“&lt;b&gt;new content&lt;/b&gt;” 作为html串写入id为msg的元素节点内容中,页面显示粗体的new content<br />
$(&#8220;#msg&#8221;).text();              //返回id为msg的元素节点的文本内容。<br />
$(&#8220;#msg&#8221;).text(&#8220;&lt;b&gt;new content&lt;/b&gt;&#8221;);<br />
//将“&lt;b&gt;new content&lt;/b&gt;” 作为普通文本串写入id为msg的元素节点内容中,页面显示&lt;b&gt;new content&lt;/b&gt;<br />
$(&#8220;#msg&#8221;).height();              //返回id为msg的元素的高度<br />
$(&#8220;#msg&#8221;).height(&#8220;300&#8243;);       //将id为msg的元素的高度设为300<br />
$(&#8220;#msg&#8221;).width();              //返回id为msg的元素的宽度<br />
$(&#8220;#msg&#8221;).width(&#8220;300&#8243;);       //将id为msg的元素的宽度设为300<br />
$(&#8220;input&#8221;).val(&#8220;);       //返回表单输入框的value值<br />
$(&#8220;input&#8221;).val(&#8220;test&#8221;);       //将表单输入框的value值设为test<br />
$(&#8220;#msg&#8221;).click();       //触发id为msg的元素的单击事件<br />
$(&#8220;#msg&#8221;).click(fn);       //为id为msg的元素单击事件添加函数<br />
同样blur,focus,select,submit事件都可以有这两种调用方法<br />
<strong>5、集合处理功能</strong><br />
对于jquery返回的集合内容无需我们自己循环遍历并对每个对象分别做处理，jquery已经为我们提供的很方便的方法进行集合的处理。<br />
包括两种形式：</p>
<p>$(&#8220;p&#8221;).each(function(i){this.style.color=['#f00','#0f0','#00f']<em>})<br />
//为索引分别为0，1，2的p元素分别设定不同的字体颜色。<br />
$(&#8220;tr&#8221;).each(function(i){this.style.backgroundColor=['#ccc','#fff'][i%2]})<br />
//实现表格的隔行换色效果<br />
$(&#8220;p&#8221;).click(function(){alert($(this).html())})<br />
//为每个p元素增加了click事件，单击某个p元素则弹出其内容<br />
<strong>6、扩展我们需要的功能</strong><br />
$.extend({<br />
min: function(a, b){return a &lt; b?a:b; },<br />
max: function(a, b){return a &gt; b?a:b; }<br />
});       //为jquery扩展了min,max两个方法<br />
使用扩展的方法（通过“$.方法名”调用）：<br />
alert(&#8220;a=10,b=20,max=&#8221;+$.max(10,20)+&#8221;,min=&#8221;+$.min(10,20));<br />
<strong>7、支持方法的连写</strong><br />
所谓连写，即可以对一个jquery对象连续调用各种不同的方法。<br />
例如：<br />
$(&#8220;p&#8221;).click(function(){alert($(this).html())})<br />
.mouseover(function(){alert(&#8216;mouse over event&#8217;)})<br />
.each(function(i){this.style.color=['#f00','#0f0','#00f']<em>});<br />
<strong>8、操作元素的样式</strong><br />
主要包括以下几种方式：<br />
$(&#8220;#msg&#8221;).css(&#8220;background&#8221;);              //返回元素的背景颜色<br />
$(&#8220;#msg&#8221;).css(&#8220;background&#8221;,&#8221;#ccc&#8221;)       //设定元素背景为灰色<br />
$(&#8220;#msg&#8221;).height(300); $(&#8220;#msg&#8221;).width(&#8220;200&#8243;);       //设定宽高<br />
$(&#8220;#msg&#8221;).css({ color: &#8220;red&#8221;, background: &#8220;blue&#8221; });//以名值对的形式设定样式<br />
$(&#8220;#msg&#8221;).addClass(&#8220;select&#8221;);       //为元素增加名称为select的class<br />
$(&#8220;#msg&#8221;).removeClass(&#8220;select&#8221;);       //删除元素名称为select的class<br />
$(&#8220;#msg&#8221;).toggleClass(&#8220;select&#8221;);       //如果存在（不存在）就删除（添加）名称为select的class<br />
<strong>9、完善的事件处理功能</strong><br />
Jquery已经为我们提供了各种事件处理方法，我们无需在html元素上直接写事件，而可以直接为通过jquery获取的对象添加事件。<br />
如：<br />
$(&#8220;#msg&#8221;).click(function(){alert(&#8220;good&#8221;)})    //为元素添加了单击事件<br />
$(&#8220;p&#8221;).click(function(i){this.style.color=['#f00','#0f0','#00f']<em>})   //为三个不同的p元素单击事件分别设定不同的处理<br />
jQuery中几个自定义的事件：<br />
（1）hover(fn1,fn2)：一个模仿悬停事件（鼠标移动到一个对象上面及移出这个对象）的方法。当鼠标移动到一个匹配的元素上面时，会触发指定的第一个函数。当鼠标移出这个元素时，会触发指定的第二个函数。<br />
//当鼠标放在表格的某行上时将class置为over，离开时置为out。<br />
$(&#8220;tr&#8221;).hover(function(){<br />
$(this).addClass(&#8220;over&#8221;);<br />
},<br />
function(){<br />
$(this).addClass(&#8220;out&#8221;);<br />
});<br />
（2）ready(fn):当DOM载入就绪可以查询及操纵时绑定一个要执行的函数。<br />
$(document).ready(function(){alert(&#8220;Load Success&#8221;)})<br />
//页面加载完毕提示“Load Success”,不同于onload事件，onload需要页面内容加载完毕（图片等），而ready只要页面html代码下载完毕即触发。与$(fn)等价<br />
（3）toggle(evenFn,oddFn): 每次点击时切换要调用的函数。如果点击了一个匹配的元素，则触发指定的第一个函数，当再次点击同一元素时，则触发指定的第二个函数。随后的每次点击都重复对这两个函数的轮番调用。<br />
//每次点击时轮换添加和删除名为selected的class。<br />
$(&#8220;p&#8221;).toggle(function(){<br />
$(this).addClass(&#8220;selected&#8221;);<br />
},function(){<br />
$(this).removeClass(&#8220;selected&#8221;);<br />
});<br />
（4）trigger(eventtype): 在每一个匹配的元素上触发某类事件。<br />
例如：<br />
$(&#8220;p&#8221;).trigger(&#8220;click&#8221;);       //触发所有p元素的click事件<br />
（5）bind(eventtype,fn)，unbind(eventtype): 事件的绑定与反绑定<br />
从每一个匹配的元素中（添加）删除绑定的事件。<br />
例如：<br />
$(&#8220;p&#8221;).bind(&#8220;click&#8221;, function(){alert($(this).text());});<br />
//为每个p元素添加单击事件<br />
$(&#8220;p&#8221;).unbind();       //删除所有p元素上的所有事件<br />
$(&#8220;p&#8221;).unbind(&#8220;click&#8221;)       //删除所有p元素上的单击事件</em></em></em></p>
<p><em><em><em><strong>10、几个实用特效功能</strong><br />
其中toggle()和slidetoggle()方法提供了状态切换功能。<br />
如toggle()方法包括了hide()和show()方法。<br />
slideToggle()方法包括了slideDown()和slideUp方法。<br />
<strong>11、几个有用的jQuery方法</strong><br />
$.browser.浏览器类型：检测浏览器类型。有效参数：safari, opera, msie, mozilla。如检测是否ie：$.browser.isie，是ie浏览器则返回true。<br />
$.each(obj, fn)：通用的迭代函数。可用于近似地迭代对象和数组（代替循环）。<br />
如<br />
$.each( [0,1,2], function(i, n){ alert( &#8220;Item #&#8221; + i + &#8220;: &#8221; + n ); });<br />
等价于：<br />
var tempArr=[0,1,2];<br />
for(var i=0;i&lt;tempArr.length;i++){<br />
alert(&#8220;Item #&#8221;+i+&#8221;: &#8220;+tempArr<em>);<br />
}<br />
也可以处理json数据，如<br />
$.each( { name: &#8220;John&#8221;, lang: &#8220;JS&#8221; }, function(i, n){ alert( &#8220;Name: &#8221; + i + &#8220;, Value: &#8221; + n ); });<br />
结果为：<br />
Name:name, Value:John<br />
Name:lang, Value:JS<br />
$.extend(target,prop1,propN)：用一个或多个其他对象来扩展一个对象，返回这个被扩展的对象。这是jquery实现的继承方式。<br />
如：<br />
$.extend(settings, options);<br />
//合并settings和options，并将合并结果返回settings中，相当于options继承setting并将继承结果保存在setting中。<br />
var settings = $.extend({}, defaults, options);<br />
//合并defaults和options，并将合并结果返回到setting中而不覆盖default内容。<br />
可以有多个参数（合并多项并返回）<br />
$.map(array, fn)：数组映射。把一个数组中的项目(处理转换后)保存到到另一个新数组中，并返回生成的新数组。<br />
如：<br />
var tempArr=$.map( [0,1,2], function(i){ return i + 4; });<br />
tempArr内容为：[4,5,6]<br />
var tempArr=$.map( [0,1,2], function(i){ return i &gt; 0 ? i + 1 : null; });<br />
tempArr内容为：[2,3]<br />
$.merge(arr1,arr2):合并两个数组并删除其中重复的项目。<br />
如：<br />
$.merge( [0,1,2], [2,3,4] )       //返回[0,1,2,3,4]<br />
$.trim(str)：删除字符串两端的空白字符。<br />
如：<br />
$.trim(&#8221;  hello, how are you?   &#8220;);    //返回&#8221;hello,how are you? &#8221;<br />
<strong>12、解决自定义方法或其他类库与jQuery的冲突</strong><br />
很多时候我们自己定义了$(id)方法来获取一个元素，或者其他的一些js类库如prototype也都定义了$方法，如果同时把这些内容放在一起就会引起变量方法定义冲突，Jquery对此专门提供了方法用于解决此问题。<br />
使用jquery中的jQuery.noConflict();方法即可把变量$的控制权让渡给第一个实现它的那个库或之前自定义的$方法。之后应用 Jquery的时候只要将所有的$换成jQuery即可，如原来引用对象方法$(&#8220;#msg&#8221;)改为jQuery(&#8220;#msg&#8221;)。<br />
如：<br />
jQuery.noConflict();<br />
// 开始使用jQuery<br />
jQuery(&#8220;div   p&#8221;).hide();<br />
// 使用其他库的 $()<br />
$(&#8220;content&#8221;).style.display = &#8216;none&#8217;;</em></em></em></em><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/2008/08/22/jquery-windowsxp-ie7-bug/'>关于jquery在windows XP下IE7窗口位置溢出窗口的bug</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>
<li><a href='http://www.pkphp.com/2008/07/04/jquery-ajax-in-zend-framework/'>jQuery AJAX in Zend Framework</a></li>
</ul>
<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="zend framework mootools jquery 冲突" style="font-size: 13px;">zend framework mootools jquery 冲突</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="jquery" style="font-size: 13px;">jquery</a>(2)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="mootools jquery比较" style="font-size: 13px;">mootools jquery比较</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="wordpress jquery冲突" style="font-size: 13px;">wordpress jquery冲突</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="mootools冲突" style="font-size: 13px;">mootools冲突</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="上傳檔案 jquery php" style="font-size: 13px;">上傳檔案 jquery php</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="何将输入框设为灰色 php" style="font-size: 13px;">何将输入框设为灰色 php</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="juqery 不换行" style="font-size: 13px;">juqery 不换行</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="propecia" style="font-size: 13px;">propecia</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="php 数组排序 树形菜单" style="font-size: 13px;">php 数组排序 树形菜单</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="jquery slidetoggle 外层高度" style="font-size: 13px;">jquery slidetoggle 外层高度</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="viagra" style="font-size: 13px;">viagra</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="jquery 单击 添加一条记录" style="font-size: 13px;">jquery 单击 添加一条记录</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="JQUERY ZEND冲突" style="font-size: 13px;">JQUERY ZEND冲突</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="mootools jquery冲突" style="font-size: 13px;">mootools jquery冲突</a>(5)<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%2F09%2F07%2Fjquery-for-ajax-loading-message%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%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 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%2F03%2F24%2Fjquery%25E6%258A%2580%25E5%25B7%25A7%25E5%25BA%2594%25E7%2594%25A8%25E5%25B0%258F%25E7%25BB%2593%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%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%2F2008%2F08%2F22%2Fjquery-windowsxp-ie7-bug%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于jquery在windows XP下IE7窗口位置溢出窗口的bug</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%2F07%2F04%2Fjquery-ajax-in-zend-framework%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%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  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/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

