2012年7月30日 星期一

jQuery radio buttons的Change event在IE8不能正常運作的解法

今天實作某個案子的時候發現jQuery 中的radio button change event在IE8中不能正常的運作.
在google上找到了如下的寫法,可以解決這個問題;

$("#myid").bind($.browser.msie ? 'propertychange': 'change', function(){...});


資料來源:
http://www.jamesrandell.com/?p=223

2012年7月11日 星期三

PHP教學參考網站

1.參考資源一
http://emn178.pixnet.net/blog/post/78014066

待續....

線上寫Code的服務

1.JS
http://jsfiddle.net/

2.PHP
http://codepad.viper-7.com/

待續....

關閉小視窗並 Refresh 母視窗

來源:http://it.nekounya.com/javascript-close-window-and-refresh-parent-window.html

有兩個寫法

1.寫法一

<Script>
window.opener.location.reload(true);
window.self.close();</Script>


2.相容性比較高的寫法
window.opener.location.reload(true);
window.opener=null; window.open("","_self");window.close();