2005-08-01ãã1ã¶æéã®è¨äºä¸è¦§
ç§èåã«ã»ã¨ãã©è¡ããªããªã£ãã®ã¨åæ§ãªçç±ã§ãç¥ç°ã®æ¬å±è¡ã«ãæ» å¤ã«è¡ããªããæµæ¯å¯¿ã®æé£å ãæ¸è°·ã®ããã¯ãã¡ã¼ã¹ãã§ããã¦ãéã«åãããããã«Amazonããããæ¨æ¥ãâã¤ãã§âããã£ãã®ã§ä¹ ã ã«ç¥ç°ç¥ä¿çºã«å¯ã£ã¦ã¿ããæéããªãã£ããããæâ¦
ããã°ã¯è¡¨å±¤ï¼ã¤ã¾ãææ°ã®ã¨ã³ããªï¼ããèªã¾ããªãå¾åãããããã念ã®ãããªã³ã¯ãå¼µã£ã¦ããããå ´æåãã ããã¦ãã£ã8æ8æ¥ã®ã¨ã³ããªãããã°ã©ãã®ããã®JavaScript (1)ï¼å ¨è¬çãªãã¨ã注æäºé ãªã©ããæ¸ã足ãã¾ãããã
æ¨æ¥ãè¦åºããªãã®ã¨ã³ããªã¼ãä½ã£ã¦ãã¾ãã¾ãããè¦ãç®ã§ã¯ãè¦åºãã½ãã¯ãªã®é¨åããã£ãã®ã ãã©ããã®å®ä½ã¯åãªã段è½ã ã£ãã®ã§ããï¼ãã¬ãã¥ã¼ç»é¢ããã³ãã¼ï¼ãã¼ã¹ãããããã§ãï¼ãçµæçã«ãæ¸ããå 容ã®URL㯠/m-hiyama/20050830ã®å½¢ãâ¦
JavaScriptã§ãé¢ç½ããªãã¨æãããã¨ã®ã²ã¨ã¤ã¯ããããããã¨ãâãªãã¸ã§ã¯ãæ§é ã«å¯¾ãã¦ï¼ãªãã¸ã§ã¯ãæ§é ã®ä¸ã§âè¡ããããã¨ã§ããé¢æ°ã®æ¦å¿µãã®ãã®ãé¢æ°ã®ã³ã³ãã¤ã«ã¨å®è¡ã®ã¡ã«ããºã ããªãã¸ã§ã¯ãæ§é ã¨æ·±ãçµã³ã¤ãã¦ãã¾ããä»åã®å å®¹ï¼ â¦
[追è¨]ï¼ æéãã§è¦åºããªãã®ã¨ã³ããªã¼ãä½ã£ã¦ãã¾ãã¾ãããæ¢ã« /m-hiyama/20050830 ã¨ããURLã¸ã®ããã¯ãã¼ã¯ãåå¨ãã¦ããããã§ããããã®URLã®æå¹æ§ã¯å¤ãããªãã®ã§ãä»ãè¦åºãã追å ãã¾ãããå®éã«ã¨ã³ããªã¼ãæ¸ããæå»ã¯åå10æãããâ¦
æè¿ã®è¨èªå¦çç³»ã§ã¯ãã³ã³ãã¤ã©ã¨ã¤ã³ã¿ããªã¿ã®åºå¥ããã«ãããªã£ã¦ãã¾ãã対話çå¦çç³»ã§ããå é¨ã§ã¯ã³ã³ãã¤ã©ãèµ°ã£ã¦ãããã¨ãå¤ãããã§ããJavaScriptãããã³ã³ãã¤ã©ãã¤ã³ã¿ããªã¿ãï¼ããå¤æãã«ããå®è¡å½¢æ ã§ãããããããã³ã³ãã¤ã©â¦
ååã®ç´æ¥çãªç¶ãã§ãããã¤ã¯ãã¢ããªã±ã¼ã·ã§ã³ã®ã½ããã¦ã§ã¢ã¨ãã¦ã®ç¹å¾´ãåæ²ãã¦ããã¾ãï¼é ç®ã®é çªã¯æãã¦ããï¼ã å®è£ è¨èªï¼JavaScript å®è¡ç°å¢ï¼Webãã©ã¦ã¶ ç»é¢è¡¨ç¤ºï¼ãã©ã¦ã¶ã®HTMLã¬ã³ããªã³ã°æ©è½ã使ã ã¤ãã³ãï¼ãã©ã¦ã¶ãçæããâ¦
å¤ä¼ã¿ãçµãã£ãããããªãã¦ãå¤ä¼ã¿ã¯ãªãã£ããææãã¾ãã«æ è¡ã«åºãããæ¥ã ã£ãã®ã ãã©ã次ç·ãç±ãåºãã¦ãã¾ãã¾ãããé¡ã®è¼ªéããããããã¢ã´ãªãã²ã³ããã¿ããã§ãé¡ã¨é¦ã®å¢ç®ããããã«ããæããã¯ããããã§ãããããµã風éªãããã«ãâ¦
åºãããæºåã§æ©èµ·ããã¾ããããããã ããã®ã§ä¸éå端ãªè¨è¿°ã§ãããmicro*ã·ãªã¼ãºãã®3ï¼ã®æçï¼ãæ稿ãã¦ããåºçºãã¾ãããã¤ã¯ãã¢ããªã±ã¼ã·ã§ã³ï¼microapplicationï¼ã¨ã¯ãã¨ããããã¯ãã¤ã¯ãææ¸ãæ±ãããã°ã©ã ã ã¨å®ç¾©ã§ãã¾ããããããâ¦
"micro"ã¨ãã形容è©ã«ãmicroformatsã®èå¾ã«ããç念ãè¾¼ãããã¦ãããã¨ããï¼ã²ãã£ã¨ããã¨åã®åæãªï¼åæã«åºã¥ãããã®ç念ã«æ²¿ã£ãããã¢ãã«ã®ç·ç§°ã¨ãã¦micro*ãææ¡ãã¾ããããããååããã¦ã¨ãmicro*ã®ã¯ã¤ã«ãã«ã¼ãé¨ã«documentsãä»£å ¥â¦
15æ¥ã¨ã19æ¥ã¨ãã«æ¸ããããã«ã22æ¥ããã¯å¤ä¼ã¿ã§ãããçã®æéãã¾ã¼ä¼ã¿ã¿ãããªãã®ã ã£ããã©ãæ±äº¬ã«ããããæ¥ã«ä¸åãããã¯äºåæã«æ¥ã¦ãããã¡ãã£ã¨é åºãã¦ãæ¥é±æ«ã«å¸°ã£ã¦ãã¾ãã
ã¨ãç¬ã転ãã¦ãã¾ãã¾ãããå·ä¿£ããã®ãã®è¨äºã§ããè¨äºã®ä¸é¨ã ããå¼ç¨ããã®ã¯ããã¸ãã«ä¸é©åã§ããããããæ¿ç¥ã§ãåãã¦ã±ãå ´æã¯ããã§ãããã©ã±ããå ã¯åãæ¿å ¥ï¼ [XMLãã¼ã¿ãã¼ã¹éçºæ¹æ³è«ã®è¶£æ¨ã¯] ã¤ã¾ããæ¢åæè¡ãã¹ã±ã¼ãã´ã¼ãã«â¦
microformatsããã©ããã¦"micro"ã¨ããè¨èãé¸ãã ã®ããã©ããè ã«è½ã¡ãªãæãããã¾ãããï¼ã ã£ã¦ãMicrosoftã ã£ã¦microã ããï¼æ¦ç°ã®è¿æ³å ±åãMicroformats (ã¨Semantic Webï¼ãã¨Amazon Web ãµã¼ãã¹ ããã°ãMicroformats éåããå¼ç¨ãã¦ã¿ã¾â¦
åã¯ããçã§ãããã¦ãã¯æ±äº¬ã«ãã¾ãã帰çãæ è¡ããçãã¯ããã¦äºå®ãç«ã¦ã¾ããããããã°ãâéããªæ±äº¬ã楽ãããâã¨ããå°è±¡ããã£ãã®ã§ãããã©ããæè¿ã¯ããçã§ããã¾ãéããªæãã¯ãã¾ããããéè·¯ã«è»ã¯ã¾ã°ããé»è»ã空ãã¦ãã -- ã¨ããâ¦
ãçã®æéã¯åºãããªãã§ãã¾ãï¼22æ¥ããã®é±ã¯åºãããäºå®ï¼ãã§ããåä¾ãè¿å ´ã«ã¤ãã¦è¡ããããã¯ããããã§ãæ¨æ¥ã¯ç§èåã®äº¤éåç©é¤¨ã«è¡ã£ã¦ãã¾ãããï¼æã£ãããæ··ãã§ããï¼ã¦ãã®åéã¯é»è»å¥½ãï¼ã ããããåä¾ã¯ã¿ããªå¥½ãï¼ã ããã交éâ¦
ãã¨ããé åãJavaScriptã®for/inã§åæã§ããªãããªãã§ï¼ãã®ä»¶ã調ã¹ã¦ãããã¡ã«é¢ç½ããµã¤ããçºè¦ãã¾ããâ "... No, Internet Explorer did not handle it properly"ãããã«ã¯ãIEã®navigator.pluginsã®ä¸å ·åï¼æå¾ ã©ããã§ã¯ãªããã¨ï¼ã«ã¤ãã¦æ¸â¦
ååã®æå¾ã§ãã次åã¯ãªãã¸ã§ã¯ãæ§é ã«ã¤ãã¦ã§ãããã¨äºåããã®ã§ãããã«å¾ãã¾ããâãªãã¸ã§ã¯ãã°ã©ãJavaScripã®ãªãã¸ã§ã¯ãã¯æ å ±ãæ©è½æ§ãæã£ã¦ãã¾ããããããã®æ å ±ï¼æ©è½æ§ã¯ãå¿ ãååãçµç±ãã¦ã¢ã¯ã»ã¹ããã¾ããããã§ååã¨ã¯ããâ¦
IE6ã§ã®è©±ã§ããnavigator.mimeTypesï¼clientInformation.mimeTypesã§ãåãï¼ã¨ãããªãã¸ã§ã¯ããã次ã®ãããªfor/inæã§åæãããã¨ããã¨ã¨ã©ã¼ãçãã¾ãã for (var p in navigator.mimeTypes) { // pã§ä½ããã }é åãªãã¸ã§ã¯ãã§ãã£ãã¨ãã¦ããâ¦
以åãã¯ã¦ãªããã¯ãã¼ã¯ã®ãããªSBSã¯ãã³ã¡ã³ããåªä»ã¨ããã³ãã¥ãã±ã¼ã·ã§ã³ã§ããããã¨ãããããªè©±ãããã¾ãããï¼ä¾ï¼http://satoshi.blogs.com/life/2005/06/post_5.htmlï¼ãã§ãããåèªèº«ã¯SBSã¨ã¯ç¸æ§ãæªãã¦ãã¾ã使ããªãã®ã§ãâid:m-hiyaâ¦
ãããªãããã¯ãä¸è¬çãªå³è§£æ³ã¨ãã¦ã便å©ã ã¨æããä¾ãã°ã証æå³ã¯ãããªããã風ã«æããã»ããããããããã
ä»å¹´ã®ç²ååã»é«æ ¡éçã«å®®å´ããèå¿ã¦ã«ã¹ã©ã¨ããå¦æ ¡ãåºå ´ãã¦ããããããä¸åãã§è¦ã¾ãããã¦ã«ã¹ã©ãâ¦ããªãã ãã®ãªã¤ãããé¿ãããã¿ããããã®é ãããã£ããã¿ããããªãããã¦ã¼ã³ã¨ã£ããã¦ã«ã¹ã©ãã£ã¦ãªãã ã£ãï¼ï¼ ã¦ã«ã¹ã©ãã³ãããâ¦
ãæ°çç§å¦ãã®ç¹éãã¢ã¸ã¥ã©ã¤ã ã£ããfinal coalgebraã£ã¦ãã·ã¹ãã ã®ã¢ã¸ã¥ã©ã¤ç©ºéã¿ãããªãã®ãããªãããããæ¯ãèãåå¤é¡ãã¢ã¸ã¥ã©ã¤ç©ºéã®1ç¹ã¨ãã
æ¡ã®å®ãJavaScripçéã§ãç¨èªæ³ã¯æ··ä¹±ãã¦ã¾ããã¼ãåã¯ãè¨è使ãã«ã¯å²ã¨ç¥çµè³ªãªã»ãã§ãç¨èªã®æ´çã試ã¿ããé èªãããããã¦ãâ¦â¦ããã§ãããæ··ä¹±ãå©é·ããããã¨ããããªãã¨ã以åã®ç§çã¡ã¢ã§ãæ¸ãã¾ããï¼ããã¼ãç¨èªæ³ã¯é£ããï¼ãï¼ãä»åâ¦
ãã¼ã¯ã¼ããã_ã¿_ã´_ã©_è£ ç½®ãï¼ã¢ã³ãã¹ã³ã¢é¤ãï¼æ¤ç´¢ããã®ã¢ã¯ã»ã¹ããããã«å¤ããã§ããã3ã¶æãããç¶ãã¦ããç¾è±¡ã§ãããæè¿ããã«æè»ãããã£ã¦ãã¾ããåããã_ã¿_ã´_ã©_è£ ç½®ãã«è¨åãã¦ããã®ã¯2åãããªãã¦ãã©ã¡ããããããäºã¯è¨ã£â¦
JavaScriptã¯ãåã®ãªãè¨èªã ãã¨è¨ããã¦ãã¾ããããã¯ãå¤æ°ã«åã宣è¨ããå¿ è¦ããªãï¼ç¾ç¶ã§ã¯ã§ããªãï¼ãã¨ã§ãããããããã¼ã¿ã«ã¯åãããã¾ãããã£ã¦ããã¼ã¿ã®åé¡ä½ç³»ã¨ãã¦ã®åã·ã¹ãã ãããã¯ãã§ããã¨ã¯ããããã¬ããJavaScriptã®ãã¨â¦
ãã®ã¨ã³ããªã¼ã®æ¥ä»ã¯2005-08-08ã§ãããããã¯åç®ä¸ã®ãã®ã§ãå®éã¯å¾ããæ¸ã足ãã¦ãã¾ããããã§ãå®éã«æ¸ããæ¥ä»ãå°è¦åºãã«è¨è¼ãã¦ã¾ããâäºåç¥èãã¾ãã¯å¯¾è±¡èªè ï¼éè«ä»ãï¼ 2005-08-31è¨ãã®ã·ãªã¼ãºï¼ä¸é£ã®ã¨ã³ããªï¼ã®é¡åã«ã¯ãããâ¦
ã¸ã¸ã¤ã®æç¿ãã§ãJavaScriptãåå¼·ä¸ã§ãããã¾ãããã®åæ©ã¯ãçµå±ããã©ã¦ã¶ãã¼ã¹RIAãããã®ãããªãã¨ãéãã©ã¦ã¶ãã¼ã¹ã®ãªããã¯ã©ã¤ã¢ã³ãã¸ã®æå¾ ã失ã£ã¦ãã¾ã£ããã§ãããçæçã»ç¾å®çãªçã¨ãã¦ã¯ãAjaxçãªææ³ã«ããRIAãªã®ããªããã¨â¦
ããããè©æ¬ºã®ã¡ã¼ã«çã¦ãããã§ãããæé¢ã¯æ¬¡ã®ãããªæãï¼ ãç¡æ²æ±°ãã¦ã¾ã¼ããã¡ã¼ã«ã¢ãã¬ã¹ãå¤ããã¾ããã[ã¡ã¼ã«ã¢ãã¬ã¹]ã¾ãã¯[Webãã¼ã¸URL]ã¾ã§ãé£çµ¡ãã ãããï¼ç½²åã¯ãªãï¼ ããã£ã誰ããªï¼ãã¨æã£ã¦ããã¨ããããé£çµ¡ãã¦ã¿ãããâ¦
ãããããããªãJavaScriptãï¼[2005-08-08ã«è¿½è¨]ï¼ã³ã¡ã³ããèªãã§ãã ããããï¼JavaScriptã«ãããªãã¸ã§ã¯ãæåããã°ã©ãã³ã°ã«é¢ãã¦ã¯ãä¾ãã°ãï¼å¤ãè¨äºã§ããï¼ç³äºåããã«ãã解説ãªã©ãããã¾ããåºæ¬ã¯ãã³ã³ã¹ãã©ã¯ã¿é¢æ°ãå®ç¾©ãããâ¦
ä¸æãï¼[追è¨]ï¼ ãã©ã¦ã¶æè¡ã¨ã¯å¥ã®ï¼ãªããã¯ã©ã¤ã¢ã³ãæè¡ãå°ãçãä¸ããã¾ãããä¾ãã°ãCurlã«ã¯åã注ç®ã¨æå¾ ããã¦ãã¾ãããããã©ãããã©ã¦ã¶ãã¼ã¹ã®RIAï¼Rich Internet Applicationï¼å´ã«æ¯ãåã¯ããæ»ã£ã¦ããããã§ããããã§ãã©ã¦ã¶â¦