奥深ãJavaScriptï¼Ajaxï¼ã®ä¸ç
ä»ã¾ã§Servlet+JSPã®æ¡ä»¶ã°ããæ°å¹´éãã£ã¦ãããããJavaScriptãªã大æµç解ãã¦ããã¨æã£ã¦ããå®éãAjaxãã¿ãéåæãµã¼ãã¼éä¿¡ããã£ããã¨ããã£ããããããã®æ¹æ³ãå¤ãããããã®ã¤ã¡ã¼ã¸ã ã£ãã
å®éã«èª¿æ»ãå§ãã¦ã¿ã¦ããã£ãã俺ãæªãã£ããJavaScriptãçãè¦ã¦ããã
確ãã«ãAsynchronous JavaScript+CSS+DOM+XMLHttpRequestãã¯ãä»ã¾ã§ã®åæéä¿¡ã主ã¨ãã¦ããWebã¢ããªã±ã¼ã·ã§ã³ã®å¸¸èãè¦ãããããããã®ééåæéä¿¡äºã
ã®é¨åã¯ã©ãã§ãããã
ã½ã¬ãããéè¦ãªã®ã¯ãä»ã¾ã§ãªãï¼ä¸å®éãã¦ï¼ä½¿ããªãã£ããªãã¸ã§ã¯ãããã¯ãªè¨è¿°ã®æ¹æ³ãã©ã¤ãã©ãªã®æ§ç¯ãDOMã«ããç»é¢è¡¨ç¤ºã®åçå
¥ãæ¿ããããã¦ãããã«ãã£ã¦å¯è½ã«ãªãã¦ã¼ã¶ããªãã£ã®é«ãUIã§ããã
ãããéè¦ãªã®ãã¨ããã¨ãã«ãã³ã¤ã¤ãã¨ããåããã¨ããããè¨ãå¬ããäºã§ã¯ãªããä½ãã®ã¡ããã£å¤§å¤ã¨è¨ãæ²ããäºå®ã
ã¤ã³ã¿ã¼ãããã§ã¯å°å³ããã«ã¬ã³ãã¼ããã¨ãAjaxããµãã ãã«ä½¿ãã¾ãã£ããã®ç»é¢ãå·¥æ°ã©ãã ãããã£ã¦ãã ãã¨è¨ããããªãæ§ãªãµã¼ãã¹ãç¡åã§æä¾ããã¾ãã£ã¦ãããä»æã®ã客ããã¯ç¡ç¥ã§ã¯ãªãã®ã§ããããªãµã¼ãã¹ãã¿ã¦ããã¡ã®âÃããããªUIã«ããã使ããããããããã¨ããäºã«ãªãã
åè¿°ã®ãããªç»é¢ã¯ãã¤ã³ã¿ã¼ãããã§ã®åºååå ¥ã主ãªå©çã¨ãã¦ããä¼æ¥ãã競åãµã¼ãã¹ãä¹±ç«ãããªãã§èªãã®ãµã¼ãã¹ãæããåºããã®ã«ãããããã«è³æºãéä¸ãããçµæã¨ãã¦å ¬éããã¦ããã®ã ããããªç»é¢ããæ°åæ©è½ã®æ¥åã·ã¹ãã ã«é©ç¨ããã¨è¨ããããã¨æãã¨é³¥èãç«ã¤ãã§ãè¨ããã¡ãããã ãããªãã
Ajaxã®ç»é¢ã¯ä»ã¾ã§ã¨åãå·¥æ°ã®æè¦ã§è¦ç©ããã¨å°çãè¦ãã®ã¯ç¢ºå®ãã§ãã ããã¨è¨ã£ã¦
客ããããã©ãã ããéããããã°åºæ¥ã¾ããï¼ã 俺ãã¾ã ãããã¾ãããåºæ¥ãæã«ãããã¾ããã
ã£ã¦è¨ãããã«ãè¡ããªãã
ãããã©ããã£ã¦è¦ç©ããã®ãè¯ããã¨è¨ãããã¨â¦ã©ãããã°ãããã ãããªããé天äºã®FPæ³ã¨ããèããã°ãããã ããããGoogle Calendarãªãã¦ãã¡ã¤ã³ã®ç»é¢ã§ããã¦ãã®ãã¨ãåºæ¥ããã ããã©ãã ãå·¥æ°ããã£ããã¨ãå
¬éãã¦æ¬²ãããªãã
å®è£
ã®æ¹æ³ãã1ã¤ã®ç»é¢ã1人ãããããããã¤ã¾ã§ãã£ã¦ãçµãããªãããªã1æ©è½ã¥ã¤ãã©ã§èµ°ãã®ãï¼ãã¹ãããããã ãªãã£ã¦ãåºæ¥ãªããããããï¼ç»é¢ã¨ããã¯ã¨ã³ãã«ã¯åããã¨ãã¦ãç»é¢ã ãã§ã1人ã§ä½ããã¨ã¯å°åºæãããã¹ã¯ãªããï¼é¢æ°ï¼ãã¨ã¨ããªã®ãï¼
Ajaxã§ç»é¢ãä½ã£ã¦ãä¼ç¤¾ã¯ã©ããã£ã¦ããã ãããªããã©ããã£ã¦ããã§ããï¼
Ãâ³ç»é¢çµ±æ¬ããã°ã©ãã¼ã¨ãããã¦ããã®äººãç»é¢æ°äººãããã¯ã¨ã³ãæ°äººãä¸æããã¨åããããâ¦ãªãã¨ãä½ããããªï¼ã£ã¦ãããã®ä½ãæ¹ã£ã¦ä½ãã§èªãã ãããªâ¦ããJoel on Softwareã ããããä¸çªä¸æãããããããªï¼