Archive for category Jquery, Mootools
[jQuery] 1.3.2 和 1.4 的比較
Posted by Chowky in Jquery, Mootools, News on January 20, 2010
jQuery 近來都差不多成為最多人用的javascript framework 了。
近來jQuery 推出新的release 1.4. 聽聞 performance 改善了很多。
No. of Function Calls (因為減少了很多不必要 method 的call,可能就是大大改善performance 的原因)

dom 的insertion 看來需要的時間真是快了很多 (ie 系列快了很多)

Read the rest of this entry »
[CSS] Radioactive Buttons (Safari 4.x, Google Chrome Only)
Posted by Chowky in Design, Jquery, Mootools, News on December 7, 2009
就近聖誕,當然要加入一些聖誕元素呢~~。
這個demo 就教你利用webkit 的css animation 去做一個閃閃下的button~~..
因為是利用了webkit 的關係,所以~~…..只可以做到safari, google chrome show 到出來。
做法就很簡單 (當然是因為利用了css 的animation)
Read the rest of this entry »
Appcelerator Titanium 一個很有趣的工具 + 比較
Posted by Chowky in AIR, Jquery, Mootools, Mac, News, Opensource, RIA, iPhone on October 15, 2009
雖然chowky 已經知道這個工具很久,不過覺得這套工具未成熟,所以沒有理會。 直至今天嘗試開發專為 iphone 的 web。在找尋的過程之中,又看到這個工具,看來已經比之前好成長了不少。於是,今天就看看是怎樣的東西~
首先是titanium 是 opensource,另外這件東的 concept 其實不錯的,真的有點似adobe air,mobile, desktop 的version 都有buildin 的sqlite support。 主要的分別,titanium 就是compiled and run in native OS,所以分為,mobile version, desktop version and web version ,而 ADOBE AIR 就放在flash platform / AIR 之中。而titanium 就比adobe air 走快了一步,支援了mobile (iphone and andriod) ,所以都有些人認為是air 的最大的competitor (為什麼沒有m$ 的silverlight,不入流呢)。

8 種 Outlook like AJAX Calendar Components 的介紹和看法
Posted by Chowky in Jquery, Mootools, RIA on September 4, 2009
chowky 覺得類似 outlook , ical 的 AJAX 的calendar好似很散,所以決定整理一下。
1. Day Pilot
這是一個為ASP.NET 而寫的一個component。成熟程度好高。還備有schedule 的 version 。
有Lite (免費,但功能會少一點)和P和Pro (當然要收錢的) version 。


Source: http://www.daypilot.org
2. dhtmlxScheduler
這都是一個很成熟的component. 非常smooth。有齊daily , weekly, monthly,commercial application 其實是必定要完整的。否則一定沒有人買。
不過如果你個想寫的都要是GNU (opensource) 才可以免費使用這個calendar ,否則就要收錢了。(Dual Licensing 亦不能用的呢)
Demo: http://dhtmlx.com/docs/products/dhtmlxScheduler/livedemo.shtml
Source: http://dhtmlx.com/docs/products/dhtmlxScheduler/
小心IE7 javascript 的 getElementById Method 的問題
Posted by Chowky in Articles, Jquery, Mootools, News on August 6, 2009
1. 要注意用相同的 name and id attributes for Form Inputs
chowky 很久以前都覺得奇怪,不過這是因為IE系列和其他不同的browser的分別,ie 是會search 左name attribute先,再search id attribute,但是其他browser是不會的。所以兩個attributes 都要用相同的名。避免發生問題
1 | <input type="text" name="full_address" id="address" value="5th Avenue" /> |
2. 不要放name attribute 在form tag 入面。
和上面的情況非常相似,要避免IE的問題。
不過chowky 不知道name 是deprecated (哈)
Also, the name attribute for forms is deprecated in XHTML Strict, so it’s not best practice anyhow. The name attribute was added to form elements in older sites, so if you’re trying to debug a getElementById issue in IE7 on some inherited code, there could be a conflict occurring due to this fact.
1 2 | <form id="contact_form"> </form> |
Sticky (Fixed) SideNav Layout with CSS
Posted by Chowky in Articles, Jquery, Mootools on August 5, 2009
完成圖

構成的structure

HTML tag
1 2 3 4 | <div class="container"> <div id="sidenav><!--Fixed Sidenav Goes Here--></div> <div id="content"><!--Content Goes Here--></div> </div> |
利用簡單的技巧,
把sidenav 的加上position 和fix的properties.
position: fixed;
float: left;
CSS
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | .container { width: 980px; margin: 0 auto; overflow: hidden; background: url(container_stretch.gif); font-size: 1.2em; position: relative; } #sidenav { width: 300px; position: fixed; /*--Fix the sidenav to stay in one spot--*/ float: left; /*--Keeps sidenav into place when Fixed positioning fails--*/ } #content { float: right; /*--Keeps content to the right side--*/ width: 640px; padding: 0 20px 20px; } |
可惜ie6不支援fixed position property
所以要workaround..
1 2 3 4 5 | *html #sidenav { position: absolute; left: expression( ( 0 ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) 'px' ); top: expression( ( 0 ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) 'px' ); } |
[AIR] jQuery Browser
Posted by Chowky in AIR, Jquery, Mootools, RIA on July 28, 2009
又一個新的air application。
jQuery 都採用air來implement這個api browser。
可見,外國的對air的接受性真係比想像中好。

Read the rest of this entry »









Recent Comments