dojoã®IFrameProxyã§ã¯ãã¹ãã¡ã¤ã³ã§ã®XMLåå¾
ããããããããªã
http://dojotoolkit.org/~jburke/XHRIFrameProxy.html
XMLHttpRequestããã¡ã¤ã³ã®å£ãè¶ããããªãã®ã¯æ²ããäºå®ããã¹ã¦ã®ãã©ã¦ã¶ã§æ¹åãããã®ãå¾
ã¤ã®ã¯ã²ã©ãæ°ã®é·ã話ã ãããããããããªã£ã¦ãã®ã«ã¯ãããªãã®çç±ï¼ã»ãã¥ãªãã£é¢é£ï¼ããã£ãããã§ããã¾ãè¦æ±ãéãã¨ãæããªãã
ããã§ãæ¢åã®æ çµã¿ã§ã¯ãã¹ãã¡ã¤ã³ã®å£ãè¶ããããåçã¹ã¯ãªãããã¼ãã§ã®JSONã³ã¼ã«ã¿ãããªãã¯ããã¯ãåºã¦ãã¦ãããã ãã©ããã¼ã¿ã½ã¼ã¹ã¨ãªããµã¼ãå´ã§ãã¼ã¿ãJSONå½¢å¼ã§ç¨æããªãããããªãã£ãããçµå±JavaScriptãã¼ãã«é ¼ãã®ã§ä¿¡é ¼ã§ããªããµã¤ãããã¯æ°è»½ã«ãã¼ã¿ãåã£ã¦æ¥ããªãï¼âä»»æã®JavaScriptã³ã¼ããå®è¡ããã¦ãã¾ãå±éºæ§ãããï¼ãªã©ã®åé¡ããã£ãã
IframeProxyã¯ãããåé¿ãããIFRAMEã¨ãã£ã¦ãããã©ã¦ã¶ã§XMLHttpRequestã使ããªãã¨ãã®Ajaxã¨ãã¥ã¬ã¼ã·ã§ã³ã®IFRAMEãã¯ããã¯ã¨ã¯éãã®ã§æ³¨æã
ããã使ãã°ããã¼ã¿ã½ã¼ã¹å´ã§ãã¼ã¿å½¢å¼ã«æãå ¥ããå¿ è¦ã¯ãªããå¼ã³åºãå´ã«ã¯ãã¹ãã¡ã¤ã³ãããã·ã¨ãªããµã¼ãã¹ãè¨ç½®ãã¦ããå¿ è¦ããªãããããã¨ã¯ããã¼ã¿ã½ã¼ã¹ã¨åããã¡ã¤ã³å ã«ãããã·ç¨ã®HTMLãããã¦ããã ãã
ããã¦å³ã«ããã¨ãããªæããããããã«ããããªããããªã«ããè¦ããããããªãã®ã§å¤å°ééã£ã¦ãããã
é£ç¹ã¯ããã¬ã¼ã éã®ãã¼ã¿åã渡ãã«URLããã·ã¥ã使ã£ã¦ãããããURLå¶éå¤ã®å½±é¿ã§ãã¼ã¿ãåå²ããªããã°ãªãããåã渡ãã®ãã¼ã¿ãè¨å¤§ã«ãªãã¨æ§è½ã¯ãã¾ãåºãªãã ããã¨ãããã¨ã
ãã¨æ¸å¿µã¨ãã¦ããã®ã¯ãè¤æ°åæãªã¯ã¨ã¹ããããå ´åã«ç ´ç¶»ãããã¯ããªãã ãããï¼ã¨ãããã¨ãã¾ãããã¯ãã¯ã©ã¤ã¢ã³ãå´ãè¤æ°åã®ãã¬ã¼ã ã«åãã¦ãã£ããããã°ããã®ãããããªãã
dojoã¯ãã®æ¹æ³ã«ããå¼ã³åºãã dojo.io.bind ã«å ¥ããããã ãScriptSrcIOã¨ããããããããã