SWFObjectã使ã£ãExternalInterfaceã¾ã¨ãã®ç¶ãã§ãã ååã¯ExternalInterface.call ã§ASâJSã®éä¿¡ãåºæ¥ãã¨ããã¾ã§ã§ãããä»åã¯éã«ãJSããASé¢æ°ãå¼ã³åºãã¨ãã [â¦]
ã¯ããã« ãã®è¨äºã¯ãã«ã¤ãã¯ãé¢ç½æ³äººã°ã«ã¼ã Advent Calendar 2024ã®12æ¥ç®ã®è¨äºã§ãã ããã«ã¡ã¯ãã«ã¤ãã¯ãã³ãæå±ã®ãµã¼ãã¼ãµã¤ãã¨ã³ã¸ãã¢ã®æåã¨ç³ãã¾ãã æ¬è¨äºã®ãã¼ãã¯Laravel filamentãç¨ãã管çç»é¢ä½æã§ãã 管çç»é¢ãç°¡åã«ä½ããFilamentã®åºæ¬çãªä½¿ãæ¹ã¨è¦ä»¶ãã¡ããã¨æ±ºããã«è¦åãçºè»ãããã¶ã¤ãã£ã¦ãã¾ãFilamentãªãã§ã¯ã®åé¡ãæ¸ãã¦ããããã¨æãã¾ãã Laravel Filamentã¨ã¯ filamentphp.com ã¾ãPHPã®ãã¬ã¼ã ã¯ã¼ã¯ã¨ãã¦Laravelãããããã®æ¡å¼µããã±ã¼ã¸ãFilamentã§ãã 管çç»é¢ãä½ãããã®æ©è½ãè±å¯ã«æã£ã¦ãã¾ãã ã¾ããä»åã¯è§¦ãã¾ããããµã¼ãã¼ãµã¤ãã®è¨è¿°ã®ã¿ã§ããã³ãã®åçãªå¶å¾¡ãããæ©è½ãç¨æããã¦ãã¾ãã ç°å¢æ§ç¯ ç°å¢æ§ç¯ã«ã¤ãã¦ã¯ãã¡ããåèã«ãã
æè¿ã§ã¯Ajaxã®æµè¡ãããï¼JavaScriptã®ã©ã¤ãã©ãªãããªãå å®ãã¦ãã¾ããããããã®ã©ã¤ãã©ãªã®é¢æ°ãå§ãã¨ããJavaScriptã®é¢æ°ãï¼Flashã ã¼ãã¼ããå¼ã¶ãã¨ãã§ããã°ï¼Flashã ã¼ãã¼ã ãã§ã¯å®ç¾ãé£ããå¦çãæå¤ã«ç°¡åã«ã§ãã¦ãã¾ããã¨ãããã¾ãã ã ã¼ãã¼ã表示ãã¦ããHTMLããã¥ã¡ã³ãã®URIãåå¾ãã ããã¾ãã¦ããã§ã¨ããããã¾ããæ¬å¹´ããããããé¡ããããã¾ãã ãã¦ãã¦ï¼å³1ã®ã ã¼ãã¼ã§ã¯ï¼ã ã¼ãã¼ã表示ãã¦ããHTMLãã¡ã¤ã«ã®URIï¼URLï¼ã表示ãã¦ãã¾ãã å³1ï¼ã ã¼ãã¼ã表示ãã¦ããHTMLãã¡ã¤ã«ã®URIãåå¾ããã ã¼ãã¼ï¼ã¯ãªãã¯ããã¨ã ã¼ãã¼ã表示ãã¾ãï¼ Flashã ã¼ãã¼ã§ã¯ï¼ã ã¼ãã¼èªèº«ã®URIã¯ã_urlããããã£ãã使ã£ã¦åå¾ã§ãã¾ããï¼ã ã¼ãã¼ã表示ãã¦ããHTMLãã¡ã¤ã«ã®URIã¾ã§ã¯åå¾ã§ãã¾ãããã§ã¯ï¼å³1ã®ã
JavaScriptã¨ActionScriptã®æ©ã¨ãªãExternalInterfaceããªããªãè¨ãäºãèãã¦ããã¾ããã§ãããããªãBKãã¨ããããã¾ã¨ãã¦ããã®ã§ãåèã«ãã¦ãã ããã allowScriptAccess=alwaysã«ãã å¥ãã¡ã¤ã³ããèªã¿è¾¼ãã ãã®ãåä½ããããå ´åã«ã¯alwaysã«ãã objectã¿ã°ã®IDã«ã¯å¿ ã"external"ã¨ããæåãå ¥ããªããã°ãããªã IEã§ã¯æ¬¡ã®ãããªãã¿ã¼ã³ã«ãªã£ã¦ããªãã¨addCallbackãåä½ããªããæ£è¦è¡¨ç¾ã§/.*external.*/ ä¾ãã°externalHoge HTMLã®ãã©ã¼ã ã¿ã°ã®ä¸ã«å ¥ãã¦ã¯ãããªã IEã§ã¯formã¿ã°ã®ãªãã«objectã¿ã°ãå ¥ã£ã¦ããã¨åããªã ã¹ã¯ãªããã§åçã«è¦ç´ ã追å ããå ´åã«ã¯æ³¨æãå¿ è¦ ä¾ãã°objectã¿ã°ã®ã³ã³ããã§ããdivã¿ã°ãçæããç´å¾ã«objectã¿ã°
ããã£ãããããã£ããããããï¼ï¼ï¼ï¼ ãããããã£ã¨ããã£ããåå ãã ExternalInterfaceã«ãããã«ã¦ãFirefoxã®ã¿ãExternalInterface.callbackã§ç»é²ããé¢æ°ãã³ã¼ã«ã§ããªãåå (not a function ã«ãªãï¼ãã HTML,JavaScriptã®ç·¨éã¯ãDreamweaver8ã§è¡ã£ã¦ããã å½ç¶ãswfãæ¿å ¥ããã¨ãIEã®ã¯ãªãã¯ããªãã¨ã¢ã¯ãã£ãã«ãªããªããã¤ã«å¯¾å¦ããããã®ãAC_FL_RunContent()ã¨ããã®ããèªåçã«æ¿å ¥ããããã¤ã¾ããObjectã¿ã°ãembedã¿ã°ãåçã«åºåãã¦ããããåé¿ããã®ã§ããã ExternalInterfaceãåããå ´åãhtmlä¸ã«æ¿å ¥ããswfã«å¯¾ãã¦ã objectã«ã¯ãidããembedã«ã¯nameå±æ§ãä»ãããã®ååãç¨ãã¦ãswfä¸ã®é¢æ°ã«ã¢ã¯ã»ã¹ãããä¾ãã°
2008å¹´5æ13æ¥ JavaScriptããFlashã®é¢æ°ãå¼ã¶ï¼getURLã§ãªãExternalInterfaceã使ç¨ããå©ç¹ SEã®ç«¹æã§ãã å¼ç¤¾ã®Google Analyticsã確èªããã¨ãä¸è¨ã®è¨äºãçµæ§è¦ããã¦ããããã§ãã â¼JavaScriptããFlashã®é¢æ°ãå¼ã¶ - Flash Java Script Integration Kit https://www.ark-web.jp/blog/archives/2006/02/javascriptflash_1.html ä¸è¨ã®ããã°ã§ã¯ãJavaScriptã¨Flashãé£æºãããããã«ãosflash: Flash JavaScript Integration Kitãã使ç¨ãã¦ãã¾ãããã§ããããã®è¨äºã¯2006å¹´ã¨å¤ããªã£ã¦ãããç¾å¨ç§ãå®éã«å©ç¨ãã¦ããã©ã¤ãã©ãªã¨ã¯ç°ãªããããæ°ãã«è¨äºãæ¸ããã¨ã«
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}