[geeklogjp-devel 713] Issue 102 in geeklog-jp: IEで記事の編集のエディタで投稿モードを変更すると、スクリプトエラーが出で投稿モードが変更できない

アーカイブの一覧に戻る

geekl****@googl***** geekl****@googl*****
2009年 10月 20日 (火) 02:33:56 JST


Comment #23 on issue 102 by taharaxp: IEで記事の編集のエディタで投稿モードを 
変更すると、スクリプトエラーが出で投稿モードが変更できない
http://code.google.com/p/geeklog-jp/issues/detail?id=102

なるほど、IEには対応していないプロパティまたはメソッドを使用してしまったんで 
すね^^;
では、mystral-kkさんの情報を参考にして・・・、

         if (document.addEventListener) {    // W3C DOM 2
             var navlistcount =  
document.getElementById('navlist').childElementCount;
         } else if (document.attachEvent) {  // Internet Explorer
             var navlistcount =  
document.getElementById('navlist').childNodes.length;
         }
         showhideEditorDiv("editor", navlistcount - 6);

こうするとうまく動くようです。
ちなみに、IEの判別方法は、Twitterプラグインのtwitter.jsを参考にさせていただ 
きました。

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings




Geeklogjp-devel メーリングリストの案内
アーカイブの一覧に戻る