Below you will find pages that utilize the taxonomy term “Ajax”
Posts
ajax跟蹤文件上傳進度條
(文件來源 http://www.ibm.com/developerworks/cn/opensource/os-php-v525/index.html)
2007 年 6 月 08 日
PHP V5.2 為開發人員添加了 hook 以利用實時跟蹤文件上傳進度的功能。本文是 系列文章(共五部分)的第 5 部分,將向您展示如何監視文件上傳並相應地編寫代碼,以及如何創建 PHP 進度條。
Posts
利用 jQuery 及 Firebug 來 debug web
(引用 https://blog.ericsk.org/archives/790)
如同原文中的回應一樣,原作者實在太聰明了。
相信常在作 Web 開發的人常常會很苦惱 debug 這件事,尤其是用了一堆 ajax 後更是不容易,雖然用「泛mozilla瀏覽器」可以裝 firebug 這個外掛來減輕一些負擔,但還是要自己去 firebug 的 console 及 DOM inspector 裡翻需要看的東西。
Posts
[AJAX] 微妙的時間差
(引用 https://blog.ericsk.org/archives/800)
Nice IE!Nice Firefox!
Nice IE
最近在寫一些會用到 AJAX 的網頁,目前使用的 JavaScript framework 是 jQuery,於是乎,會有類似這樣(方便舉例而寫)的 code:
<a href="#" onclick="$('#content').load('/url/for/XXX');">Load XXX</a> <div id="content"></div>
<p>
而 <code>/url/for/XXX</code> 這個頁面有引入一個 <code>XXX.js</code> 檔案,為了在 <code>/usr/for/XXX</code> 全部讀進 <code>div#content</code> 後作一些 event handling 的 initialization,所以我在 <code>XXX.js</code> 裡有這麼一段:
</p>
<p class="hl-surround">
<p class="hl-main">
<pre><span class="hl-reserved">function </span><span class="hl-identifier">XXX_init</span><span class="hl-brackets">(</span><span class="hl-identifier">e</span><span class="hl-brackets">) {
// 作一些 initializations.. }