ã¦ã¬ã¿ã³ç³»é«åçºãããã¬ã¹ã§ããè¨åãããã®ãå¯åº¦ã§ãããããé å¼µã£ã¦åããããã説æãã¦ã¿ã¾ãã
ã¦ã¬ã¿ã³ç³»é«åçºãããã¬ã¹ã§ããè¨åãããã®ãå¯åº¦ã§ãããããé å¼µã£ã¦åããããã説æãã¦ã¿ã¾ãã
AS3 㧠JSONP ãæ±ããã©ã¤ãã©ãªãã±ã£ã¨æ¢ããæãç¡ãã£ãã®ã§ä½ãã¾ããã http://svn.rails2u.com/as3rails2u/trunk/src/com/rails2u/net/JSONPLoader.as URLLoader ã¨ã»ã¨ãã©åãæãã«ä½¿ãã¾ãããã¨ãã°ã¯ã¦ãªããã¯ãã¼ã¯ã® JSONP ãªã // ãã©ã¦ã¶ã§è¡¨ç¤ºãã¦ãããã¡ã¤ã³ã®ã»ãã¥ãªãã£è¨±å¯ // swf ã®ãã¡ã¤ã³ãåããªãå¿ è¦ãªã JSONPLoader.allowCurrentDomain(); var loader:JSONPLoader = new JSONPLoader(); loader.addEventListener(Event.COMPLETE, function(e:Event):void { log(e.target.data); // target.data ã« JSO
SEã®é²å°ã§ãã 2007å¹´1æã«æ稿ãããWeb 2.0çã¢ããªã®ã»ãã¥ãªãã£ï¼æ©å¯æ å ±ã«JSONPã§ã¢ã¯ã»ã¹ãããªãã¯å¤ãã®æ¹ã«ãèªã¿ããã ãã¾ããã誤ããææãããå ã¨ã³ããªã¼ã«æ¹ä¿®ãå ãã¾ããããããªãèªã¿ã¥ããç¶æ ã«ãªã£ã¦ãã¾ã£ã¦ãã¾ããã¾ããJSONãJSONPã®ã»ãã¥ãªãã£ã«é¢ããæ°ããªè©±é¡ãSea Surfers MLã§è°è«ããã¦ããã®ãèªã¿ãèªåèªèº«ã®èªèãç解ãå¤åãã¦ããã®ã§ããã®ã¨ã³ããªã¼ã§ããä¸åº¦JSONãJSONPï¼+JavaScriptï¼ã«æ©å¯æ å ±ãå«ãããã¨ã®æ¯éã¨æ¹çãæ´çãæ¤è¨ãããã¨æãã¾ãã âJSONãJSONPãJavaScriptã«ãããã¼ã¿æä¾æã«ã»ãã¥ãªãã£å¯¾çä¸çæãã¹ãç¹å¾´ JSONãJSONPãJavaScriptã«ãããã¼ã¿æä¾æã«çæãã¹ãç¹å¾´ã¨ãã¦ããã®ãããã¯ãã¹ãã¡ã¤ã³ã¢ã¯ã»ã¹å¯è½ãã¨ãããã®ã§ããJSONPã ãã§ãªããJS
AOL OpenAuthããããã¨ããJSONPã«ããèªè¨¼ã ã¨ãé¨ãã§ããã©ãããå»å¹´ã®ï¼ï¼æã«AOL Web AIM APIãå ¬éããã¦ããã¨ãããã¨ã«ã¤ãã¦ããªãã§æ°ã¥ãã¦ãªãã£ãã®ããä¸å¹´è¿ãããããæ£å½ã«è©ä¾¡ãã¦ããªãã£ããã¨ã¯ãæ¥ãã¹ããã¨ã ã Web AIM APIã¯ã以ä¸ã®çç±ã§ç»æçããããã¯ã¡ãã£ã¨ãã¬ãã£ããªå´ããè¦ãã°åé¡å ãªAPIã§ãããããã¦ãããããWebãµã¼ãã¹APIãè¨è¨ï¼éçºãã人ãããã³Webã®ã»ãã¥ãªãã£ãèãã人ã«ã¨ã£ã¦ã¯ãå°ãªãã¨ãç¾å¨ãããã£ãWebãµã¼ãã¹ã®å®è£ ãåå¨ãã¦ãããã¨ã«ã¤ãã¦ã¯ãã¡ããã¨æ³¨è¦ãã¦ãããªããã°ãªããªãã 1. ãµã¼ãã¬ã¹ã§ã¡ãã»ã³ã¸ã£ã¼ã¢ããªãæ§ç¯ã§ãã ãããã¨ãããä¸çªç®ã«éè¦ãªãã¤ã³ããããã¯APIãªã¯ã¨ã¹ãã¨ãã¦JSONPå½¢å¼ã®ãã¤ã³ãã£ã³ã°(éæ¬æ¹æ³)ãæ¡ç¨ãã¦ãããã¨ã«ããããµã¼ãã¬ã¹ã§ã¢ããªãä½ãããã¨ã®
IEã¨Cometã®ç¸æ§ãæªãã§æ¸ããåé¡ãåé¿ããããï¼è¤æ°ãã¡ã¤ã³ã使ããã¨ã«ããï¼ ã¾ãï¼ãã®åé¡ã®ä»ã«ãï¼åä¸ãã¡ã¤ã³ã«ã¯åæ2æ¬ããæ¥ç¶ãã¯ããªãã®ã§ï¼ãã®ãã¡ã¤ã³ã§åæã«1ã¤ããé²è¦§ãããªãã¨ããåæãç¡ãéãã¯ï¼è¤æ°ãã¡ã¤ã³ã«ãã¦ãããæ¹ãè¯ãã¨è¨ããã¨ããã£ãï¼ è¤æ°ãã¡ã¤ã³ã«åããã¨ï¼ã¯ãã¹ãã¡ã¤ã³ã®å¶ç´ãããããã«Ajaxã使ããªããªãï¼ ããã§ï¼JSONPã使ãããã ãã©ãï¼ããã§ã¾ãåé¡ãï¼ï¼ï¼ Operaã§JSONPï¼Cometããã¨ï¼Cometã®å¿çãè¿ã£ã¦ããã¾ã§ï¼ãã¹ã¦ã®JavaScriptãæ¢ã¾ã£ã¦ãã¾ãï¼ ã©ãããï¼scriptã¿ã°ã§ã¹ã¯ãªãããèªã¿è¾¼ãã§ããéã¯ï¼JavaScriptã®å®è¡ãæ¢ã¾ã£ã¦ãã¾ã模æ§ï¼ ä»æ¹ãªãï¼Operaã®å ´åã¯Ajaxã使ãããã«ãã¦åé¿ï¼ï¼ï¼ ã¾ãï¼scriptã¿ã°ãä»ã足ãæ¹å¼ãªã®ã§ï¼ã¨ã©ã¼ãã§ãã¯ãåºæ¥ãªãã®ãé£ç¹ï¼
ã¦ã¬ã¿ã³ç³»é«åçºãããã¬ã¹ã§ããè¨åãããã®ãå¯åº¦ã§ãããããé å¼µã£ã¦åããããã説æãã¦ã¿ã¾ãã
GMailã®ã³ã³ã¿ã¯ããªã¹ãæ¼æ´©ã®ã¨ã³ããªã®ã¤ãã§ã«ã JSONãã¼ã¿ãscriptã¿ã°ã«ã®ãã¦é ä¿¡ãããµã¼ãã¹ï¼JSONPãªã©ï¼ã§ãéããããµã¤ãã®ã¿ã«ãããã®ãã¼ã¿ãé ä¿¡ããªãããã«ããããã«ã¯ãã¯ã©ã¤ã¢ã³ããéåºãã¦ãããªãã¡ã©æ å ±ã使ã£ã¦ãµã¼ãã¹ã³ã³ã·ã¥ã¼ãã¨ãªã£ã¦ãããµã¤ããç¹å®ãã¦ã¢ã¯ã»ã¹å¶å¾¡ããæ¹æ³ãããã ãã®æ¹æ³ã¯ãããã大é¨åã®ã¯ã©ã¤ã¢ã³ãï¼ãã©ã¦ã¶ï¼ã«å¯¾ãã¦ã¯æå¹ã§ãä¾ãã°å®éã«Google Mapsãªã©ãããã¨AppKeyãçµã¿åããã¦ãµã¤ããå¤å¥ãã¦ããã£ã½ãã®ã ãã©ãæå³çã«ãªãã¡ã©éåºãåã£ã¦ãããã©ã¦ã¶ã§ãã£ããããããã¯ãããã·ããã°ã©ã ãªã©ãèªåçã«ãªãã¡ã©ããããé¤å»ãã¦ãã¾ããããªã¯ã©ã¤ã¢ã³ãç°å¢ã«å¯¾ãã¦ã¯ç¡å¹ã«ãªã£ã¦ãã¾ãã ã¨ãããã¨ã§ããããªã¯ã©ã¤ã¢ã³ãã§ããªãã¨ããªããªãã ãããã¨èãã¦ããã¨ãã«ã¡ãã£ã¨æãã¤ããããããããããã®æ¹æ³ãªã許
æè¿æ¥æ¬ã§ã JSONP ãåºãç¥ãããããã«ãªã£ã¦ãã¾ãããJSONPã«ã¤ãã¦è©³ããã¯hail2u.net - JSONP ã snippets from shinichitomitaâs journal - JSONPã«ã¤ãã¦ãã©ããã ã§ãJSONP ãç°¡åã«ã©ã¤ãã©ãªããæ±ãã«ã¯ãdojo ãªãScriptSrcIOãprototype.js ãªã dojoã® ScriptSrcIO ã©ã¤ã¯ã«æ¡å¼µãã Dojo penetrates Prototype Dude, WTF?! ãªã©ãããã¾ãã ããããªãããæãã MochiKit ã¯éçºè ã® Bob ããã JSONP ãæå±ããã«ãããããããJSONP ãæ±ã Async ã®é¢æ°ãè¦ããããªã*1ã®ã§ä½ã£ã¦ã¿ã¾ããããã¢ã§ã¯ delicious ã® json api ãã³ã¼ã«ããã¯é¢æ°ä»ãã§å¼ã³åºã(JSONP)ã¦ããªã¹ãã
Ajax IME ã® javascript å´ãå¤§å¹ ã«æ´æ°ãã¾ãã http://ajaxime.chasen.org/ Firefox ã§ãã£ã¬ããã®ä½ç½®ãåç §ããã¨ãã blog ã«ã³ã¡ã³ããããã ãã¾ããã Firefoxã§ã¯ãtextarea ã¨ã¾ã£ããåãã¹ã¿ã¤ã«ãæã£ãè¦ããªã pre è¦ç´ ãä½ãããã®ä¸ã«ç¾å¨ã®ãã£ã¬ããã®è«çä½ç½®ã« pre ã¿ã°ã§ | ãã¤ã£ããã§ããã® pre tag ã®çµ¶å¯¾ä½ç½®ããéç®ããæ¹æ³ã§ãã£ã¬ããä½ç½®ãåå¾ã§ããããã§ããæ¿ããåããã©ãã§ãããããã使ã£ã¦ Firefox ã§ã®åä½ãã¹ã ã¼ãºã«ãªãã¾ããããããã¨ããããã¾ãã ãã¨ãXmlHTTPRequest ãã JSONP ã«ãããã³ã«ãå¤ãã¾ããããã®çµæãime.js ãèªã¿è¾¼ãã ãã§ãã®ãµã¤ãã®ãã¹ã¦ã® textare 㨠inputbox ã AjaxIME çµç±ã§å ¥åã§ãããã
ã³ã¼ã«ããã¯é¢æ°ãæå®ããå½¢ã®JSONPã¸forã«ã¼ããªã©ã§è¤æ°åãªã¯ã¨ã¹ãããå ´åãã³ã¼ã«ããã¯é¢æ°ã®å®è¡ãããé ã¯forã«ã¼ãã§åããé ã¨ä¸è´ããã¨ã¯éããªã(Operaé¤ã)ããã®ããä½çªç®ã«ãªã¯ã¨ã¹ãããçµæã«å®è¡ãããã³ã¼ã«ããã¯é¢æ°ãªã®ãã¨ãã£ãå¦çç¶æ³ãã³ã¼ã«ããã¯é¢æ°å ã§ç¥ããã¨ãé¢åã ã£ãããã(ä¸å¯è½ã¨ããããã§ã¯ãªããå¤å)ããããããã¦åæãªã¯ã¨ã¹ãã«ãããã¨ã§ã©ãã«ããã¦ã¿ããã¨ããã話ã åæãªã¯ã¨ã¹ãããããã«ã¯ãforã«ã¼ããªã©ã§JSONPã¸ã®ãªã¯ã¨ã¹ããä¸æ°ã«å¦çããã®ã§ã¯ãªãããªã¯ã¨ã¹ããã²ã¨ã¤ã«çãã¦ã³ã¼ã«ããã¯é¢æ°å ã§æ¬¡ã«é²ãã¨ãã£ãå½¢ã§å®è£ ãããè¯ãããã»ã»ã»ã¨ã¢ã¤ãã£ã¢ããã½ãã¤æ±ãã¦ä¸åéã®äººã«è²°ã£ãã ã¤ã¾ãã var urls = [ 'http://del.icio.us/feeds/json/cho45', 'http://del.ic
JSON and the Dynamic Script Tag: Easy, XML-less Web Services for JavaScript December 21, 2005 Jason Levitt Making requests to third-party web services from an AJAX application is a pain, but new web services that offer the option of returning JSON (JavaScript Object Notation) instead of XML can provide significant relief. In fact, if you make web services requests using the dynamic script tag appr
ååã®ã¨ã³ããªã§è§¦ããJSONPãååºã¯Remote JSON - JSONPã¨ããMochiKitã®ä¸ã®äººã«ããã¨ã³ããª(å¤åãä¸è¨ã§è¨ããªããJSONãã¼ã¿ãæ¬å¼§ã§ããã£ãä¸ã§ãã£ã¡ãæå®ããæååãé ã«ã¤ãã¦è¿ãã¦ãï¼ãã¨ãããã®ãæç« ã§èª¬æããã¨ããããããã ã¤ã¾ãã http://example.com/data.json?jsonp=beverly_hills ã¨ãªã¯ã¨ã¹ããããã beverly_hills({ foo: 'This is foo.', bar: 'This is bar.', foobar: 'This is foobar.' }); ã¨è¿ããã¾ãã http://example.com/data.json?jsonp=beverly_hills%5B90210%5D ã¨ãªã¯ã¨ã¹ããããã beverly_hills[90210]({ foo: 'This
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}