2012年7月30日 星期一

window.open在ie顯示錯誤訊息為不正確的引數解決方式

最近在實作案子測試的時候發現window.open這個method.
在IE不能正常的運作,但其他的瀏覽器正常(FireFox,Chrome)
google了一下找到解答.原來是在IE的時候window.open的name Parameter不能有空白.

資料來源:
window.open in IE (invalid argument)

參考:
Window open() Method

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();