ããã«ã¡ã¯ãå¼·ãUIã¯ãã¿ã³ãæ¨ã¦ããã¹ãã¼ã¬ã³ã«Scrapboxãéçºãã¦ãã¾ããshokaiã§ãshokai.icon
æ¦è¦ æ¬è¨äºã¯ãHTTP ã¯ã©ã¤ã¢ã³ãã©ã¤ãã©ãªã§ãã axios ã® v1.0.0 ãæºãæãã¦ãªãªã¼ã¹ããããããä½ãã©ãå¤ãã£ãã®ãããã¤ã°ã¬ã¼ã·ã§ã³ãã¦ãè¯ãã®ãã«ã¤ãã¦å人çã«èª¿ã¹ã¦ã¾ã¨ããçµæã«ãªãã¾ãã TL;DR axios ã® v1.0.0 ã¯ãããã±ã¼ã¸ã®ã¢ãã³åã«åããç¯ç®ã¨ãã¦ã®ãã¼ã¸ã§ã³ã¨ãããã v1.0.0 ã§ã¯å¤æ°ã®ãã°ä¿®æ£ã¨ãããã¤ãã®å°è¦æ¨¡ã®æ©è½è¿½å ãã¾ã¨ãã¦åãè¾¼ã¾ãã ç ´å£çå¤æ´ãéæ¨å¥¨åã¯å°ãªãããããããåºæ¬çãªä½¿ãæ¹ãæåã大ããå¤ããè¦æ¨¡ã®å¤æ´ã¯ãªã ä¸æ¹ã§åçã«è¯ããªãå¤åããªãã®ã§ãæ¥ãã§ãããçç±ããªã å ¬å¼ãã¤ã°ã¬ã¼ã·ã§ã³ã¬ã¤ãã¯è¨äºå·çæç¹ã§ã¯æä¾ããã¦ããªã axios ã«ã¤ã㦠axios ã¯ãJavaScript åãã® HTTP ã¯ã©ã¤ã¢ã³ãã©ã¤ãã©ãªã®ä¸ç¨®ã§ããã®ç¨®ã®ããã±ã¼ã¸ã¨ãã¦ã¯æ¯è¼çå¤ãããæ®åãã¦ããèèã©ã¤ãã©
ãã©ã¦ã¶ããAmazon S3ã«ç´æ¥ãã¡ã¤ã«ãã¢ãããã¼ãããã å æ¥ãAmazon S3ã«ãã¡ã¤ã«ãã¢ãããã¼ãããWebã¢ããªãä½ããã¨ãã¦è²ã 調ã¹ã¦ããã¨ãããS3ã«CORSã¨ããä»æ§ã®ã¯ãã¹ãã¡ã¤ã³ã¢ã¯ã»ã¹ã®è¨å®ããããã¨ã«ãã£ã¦ããã©ã¦ã¶ããç´æ¥S3ã«ã¢ãããã¼ããããæ¹æ³ã«ãã©ãçãã¾ããããã ããã®æ¹æ³ã使ãã«ããã£ã¦ã¯CORSã¨ããã¯ãã¹ãã¡ã¤ã³ã¢ã¯ã»ã¹ã®ä»æ§ããã¡ãã¨ç解ãã¦ãããæ¹ãè¯ãããã§ããã®ã§ãã¾ãã¯CORSã«ã¤ãã¦èªåãªãã«æ´çãã¦ã¿ã¾ããã ãªããå¼ç¤¾ã®æ¨ªç°ãCORSã¨S3ã«ã¤ãã¦ã®è¨äºã以åæ¸ãã¦ãã¾ãã®ã§ãS3ã®CORSãµãã¼ãã«é¢ããæ¦è¦ãç¥ãããæ¹ã¯ãã¡ããã覧ä¸ããã CORS(Cross-Origin Resource Sharing)ã«ããã¯ãã¹ãã¡ã¤ã³éä¿¡ã®å¾åã¨å¯¾ç CORS ãã©ã¦ã¶ã§Ajaxéä¿¡ãè¡ãéã«ã¯ãåä¸çæå ããªã·ã¼(Same
Railsã¢ããªãã¹ããã¢ããªãªã©ããã使ããããã«ããå ´åãã¾ãã¯Ajaxã®ãªã¯ã¨ã¹ãã§ãã°ã¤ã³ã§ããããã«ããå¿ è¦ãããã¾ãã ãã®æ¹æ³ã«ã¤ãã¦èª¿ã¹ã¦ã¿ã¾ããã ç°å¢ Ruby on Rails 3.2.13 Devise 2.2.4 Deviseã®è¨å® 以ä¸ã®2ã¤ã®è¨å®ãconfig/initializers/devise.rbã«è¿½å ãã¾ãã config.http_authenticatable_on_xhr = false config.navigational_formats = ["*/*", :html, :json] SessionsController Deviseã®SessionsControllerãç¶æ¿ãã¦ã以ä¸ã®ããã«Ajaxç¨ã®ãã¸ãã¯ã追å ãã¾ãã class User::SessionsController < Devise::SessionsContro
ã¬ãªã¬ãªã¹ã³ã¼ãéçºãã¼ã ã«ãã �ææ°Webååãæè¡ã¡ã¢ ( Ruby, Rails, node.js ) ã§ã Backbone.js(http://documentcloud.github.com/backbone/)ã2,3ã¶æ触ã£ã¦ã¿ã¦ãå°å ¥ãã¦è¯ãã£ããã¨ãã¾ã¨ãã¾ãã Backbone.jsåä½ã§ã®å¨åã¯ããã¾ã§ã§ã¯ãªãããããã¾ããããServerå´ãå«ããè¨è¨ææ³ã絡ãã¦èããã¨å¤§ããªå¹æãæå¾ ã§ãã¾ãï¼ãµã¼ãã¼å´ãå«ããæ§é æ¹é©ãå ¨ä½çã«å¿ è¦ã«ãªãã¨ã¯æãã¾ããã»ã»ã»ï¼ã Viewã¨Controllerã®çµå強度ä½ä¸ = Viewã®ã¢ããªåviewã¨controllerã1対1対å¿ã ã£ãé Railsåä½ã§ä½æãã¦ããå ´åãViewã«ãã¸ãã¯ãå ¥ããããªã以ä¸ã ãã®Viewã§å¿ è¦ãªå¤æ°ãªã©ã¯ãå ¨ã¦Controllerã«æ¸ãå¿ è¦ãããã¾ããã ãã®ç¶æ ã§ã¯ãContro
Despite the many JavaScript libraries that are available today, I cannot find one that makes it easy to add keyboard shortcuts(or accelerators) to your javascript app. This is because keyboard shortcuts where only used in JavaScript games - no serious web application used keyboard shortcuts to navigate around its interface. But Google apps like Google Reader and Gmail changed that. So, I have crea
Ajaxãã¼ãã£ã³ã°æã«ä½¿ããç»åã¸ã§ãã¬ã¼ã¿ã¼ãè²ã ãã£ããããªã®ã§ã¾ã¨ãã¦ã¿ã¾ããã ããããç´°ããã¨ããããä»ãµã¤ãã¨éããã®ã使ã£ã¦ç¬èªè²ãåºãããã¨ããå ´åã«ã沢山ããã¨é¸æè¢ãåºããã¾ããã Preloaders.net ã¡ãã£ã¨å¤ãã£ããã¶ã¤ã³ããé¸ãã§ã¸ã§ãã¬ã¼ãå¯è½ã Ajax Loading ãã¶ã¤ã³ãããèæ¯è²ãåæ¯è²ãé¸ãã§ã¸ã§ãã¬ã¼ãã§ããã Loadinfo.net å¤æ°ã®ãµã³ãã«ããã¯ãªãã¯ã§å¥½ããªãã®ãä½ããã種é¡å¤ãã§ã Webscriptlab 500ã§è¦ããªããªã£ã¦ãããã 120+ Free Ajax Activity Indicator Gif Icons ã¸ã§ãã¬ã¼ã¿ã¼ã§ã¯ãªããã©ãµã³ãã«å¤æ° ä»ã«ããã£ããæãã¦ããããã¨ãããããã§ãã
JavaScript 2.0 æ¯æ´ãã¼ã«ãXML 2 JSON serviceãã£ã¦ä½ï¼ XML ã JSON ã«å¤æãããµã¼ãã¹ã§ãããã®æè¡ãç¨ãããã¨ã§ã ã¯ãã¹ãã¡ã¤ã³å¶éãè¶ ã㦠JSON å½¢å¼ã§ XML å½¢å¼ã®ãã¼ã¿ãå©ç¨ãããã¨ãå¯è½ã¨ãªãã¾ãã JSON 㯠XML ã¨æ¯è¼ã㦠JavaScript ä¸ã§é常ã«æ±ãããããããã³ããæ´ãã°ç°¡åã«èªåã®ãµã¤ãã§å©ç¨ã§ãã¾ãã æ¢ã«å¹¾ã¤ãã®ãµã¤ãã§å®è£ ããã¦ãã¾ãããä¸ç¹å®å¤æ°ã®æ¹ã«ãµã¼ãã¹æä¾ããããã«è² è·å¯¾çãæ½ããXML 2 JSON service ãã¼ã¿ãµã¼ãã¹ãå ¬éãããã¨ã«ãã¾ããã æè¿è¯ãèã Ajax ã¨ã¯ä½ãéãã®ï¼ æè¿ãæµè¡ãã¾ãã£ã¦ãã Web 2.0 ã¨å¼ã°ãããã®ã®åºç¤æè¡ã®ï¼ã¤ã¨ã㦠Ajax ãããããã¾ããAjax ã¯å¤§å¤ä¾¿å©ãªæè¡ãªã®ã§ãããã»ãã¥ãªãã£ã®è¦³ç¹ããèªãã¡ã¤ã³ã¸ã®ã¢ã¯ã»ã¹ãã
What is this? Adds "Access-Control-Allow-Origin: *" in the response header to everywhere. How To Use Please get these urls via XMLHttpRequest (level 2) Available browsers: Firefox 3.5+, Chrome 3+, and Safari 4+ (Note: IE 8+ has XDomainRequest instead of XMLHttpRequest) Request examples: http://allow-any-origin.appspot.com/http://news.google.com/news?ned=us&topic=h&output=rss Restrictions Suddenly
ãã®ããã°ã¯lifehackerãå«ãgawkerã¡ãã£ã¢ç³»ãµã¤ãã®#!URLã¸ã®ç§»è¡ãæ¹å¤ãã¦ããã http://isolani.co.uk/blog/javascript/BreakingTheWebWithHashBangs/ 以ä¸ãisolaniã¨ãã³ã°ã®è¦è§£ããã£ã¡ãæ··ãã«ç´¹ä»ããã lifehackerä»ã®gawkerã¡ãã£ã¢ãµã¤ããæ°æ¥åã«é·æéã«ããã³ã¢ã¯ã»ã¹ä¸è½ã«ãªã£ãã(å³å¯ã«è¨ãã¨ãã¼ã¸å ã®ã³ã³ãã³ãã¢ã¯ã»ã¹ä¸è½ã«ãªã£ã) #!URLãã¼ã¹ã®ãµã¤ãã¯JavaScriptã«ã¨ã©ã¼ãããã¨ã³ã³ãã³ããä¸åãã¼ãããã®ã£ãºãã¼ãç¶æ ã«ãªã£ã¦ãã¾ãããã ã #!ã«ã¤ã㦠ã#!ãã¯ä½ã§å¼ã¶ã®ï¼ shebangã¨ç¶´ãããã Hash=# Bang=!ã®ç¥ çºé³ããã¨ãã·ãã³ãã¨ãã£ãã¨ãããã(ã¡ãªã¿ã«Unixã®#!ã¨ã¯ç¡é¢ä¿) 以ä¸ã#URLãã¯ï¼ ãµã¤ãå ã®ãã±ã¼ã·ã§ã³æ
jquery ãããã¼ã¿ãphpã«POSTã§éä¿¡ããã¨æååããçºçãã¦ãã¾ãã¾ãã jquery å´ã¯ä¸è¨ã®ãããªã³ã¼ãã«ãªã£ã¦ãã¾ãã $.ajax({ type: "POST", url : "hogehoge.php", data: { 'moge':'æ¥æ¬èªã®ããã¹ã' }, success: function(request) { $("#view").empty().append(request); } }); ãã®jqueryã§ããã¹ããéä¿¡ããã¨ãhogehoge.phpå´ã§ã¯æ¥æ¬èªé¨åãã \xe6\x88\x90\xe7\x8a\xac\xe3\x81\xae\xe4\xbd\x93\xe9\x87\x8dãã®ãããªã16é²æ°ï¼ã®æååã«ãªã£ã¦åºã¦ãã¦ãã¾ãã¾ãã â»æåã³ã¼ãã¯ããããUTF-8ã§è¡ãªã£ã¦ãã¾ãã ä½ãããã§ã¨ã³ã³ã¼ãããã¦ããããã ã¨ã¯æãã®ã§ãã
pjax is a jQuery plugin that uses ajax and pushState to deliver a fast browsing experience with real permalinks, page titles, and a working back button. pjax works by fetching HTML from your server via ajax and replacing the content of a container element on your page with the loaded HTML. It then updates the current URL in the browser using pushState. This results in faster page navigation for tw
WebSocket ãã12æ12æ¥ã«ã¤ãã«RFCã«ãªãã¾ããï¼RFC6455)ãããã¹ã転éã ãã§ãªãããã¤ããªã¼è»¢éããµãã¼ããããã³ãã¯ã·ã§ã³ããã¼ãããããã® ping/pongãªã©ã³ã³ããã¼ã«ãã¬ã¼ã ãå®ç¾©ããã¾ãããrfcã«ãªãéç¨ã§æ§ã ãªãã¼ã¸ã§ã³ã¨ããã®å®è£ ç³»ãåºã¦ãã¾ãã®ã§ãããã®ãã´ã·ã¨ã¼ã·ã§ã³ã®ä»çµã¿ãå ¥ã£ã¦ãããã以åã¯å²ã¨èªç±ã«ä½¿ãããã ã£ã subprotocolããIANAã«ã¬ã¸ã¹ãã¬ã¼ã·ã§ã³ãå¿ è¦ã«ãªã£ããã¨ããªããªããã£ãããããããã³ã«ã«ä»ä¸ãã£ã¦ããå°è±¡ã§ãã ãã¦ãä»å¹´æå¾ã¨ãªããä»æ¥ã®ãã¹ãã§ã¯ããã®WebSocketã«ãããä»å¾ã®Webã¯ã©ããªã£ã¦ããã®ãã«ã¤ãã¦ãåãæè¿æãã¦ããå¦æ³ãæ¸ãé£ãã¦ã¿ã¾ãã WebSocketã¨ã¯ããã£ããä½ãªã®ãï¼ ãã¦ãWebSocketã¨ã¯ããã£ããä½ãªã®ã§ããããï¼ãã®åã«å¯¾ãã¦ãä¸è¬çã«ã¯ã Webã§P
å£ä¸ historyã¨Ajaxã¨ããã°ãJavaScriptããããç¨åº¦ä»»æã§historyã®ã¨ã³ããªãpushã§ããhistory.pushStateã¨ããhistory.replaceStateã¯æ¢ã«å¤§åæåã«ãªã£ãæãããã ç´ æ´ãããæªæ¥ã§ã¯ãå ¨ã¦ã®ãã©ã¦ã¶ã«pushStateãä¹ã£ã¦ãã¦ãlocation.hashã使ã£ãAjaxé·ç§»ã許ãããã®ã¯10å¹´åã®ãã©ã¦ã¶ã¾ã§ã ããã¼ãã¨ãããããã¼ãªä¸çãå®ç¾ããã®ã ãããããä»ç¾å¨ã§ã¯ã¾ã pushStateã«å¯¾å¿ãã¦ããªããã©ã¦ã¶ã®ã·ã§ã¢ãå¤ããAjaxã«ããæ¬ä¼¼ç»é¢é·ç§»ãã¢ãªã¢ãªè¡ããããªãµã¤ãã§ã¯pushStateã®ããç°å¢ããªãç°å¢ã®ä¸¡æ¹ãèæ ®ãã¦ããå¿ è¦ãããã (ã¡ãªã¿ã«ãè¦ä»¶ã«ãã£ã¦ã¯ãpushStateããªããã©ã¦ã¶ã¯é常ã®é·ç§»ã§ææ ¢ããï¼ãã¨ããå²ãåããå ¨ç¶ããã ã¨æã) å ã«è¨ã£ã¦ããã¨ããã®è¨äºã¯é·ãã§ãã ç°
ãã®ä½å¹´ãã§Webã¢ããªã±ã¼ã·ã§ã³ã¯ããµã¼ãä¸ã®ã¿ã§ããã°ã©ã ãåä½ãããã®ãããå¤ãã®JavaScriptã³ã¼ããWebãã©ã¦ã¶ã§åä½ããèå¾ã§ãµã¼ãã¨é£æºãã¦ããªãããã¤ã¹ã ã¼ãºãªæä½æãæä¾ãããã®ã¸ã¨é²åãã¦ããããã®ãã¨ã¯ãWebãã©ã¦ã¶ä¸ã«æªæã®ã¹ã¯ãªãããéãè¾¼ããã¹ã¯ãªããæ³¨å ¥ï¼XSSï¼ãæ»æããããé²æ¢ãã¥ãããæªç¨ã®æ¸å¿µããã大ããªãã®ã«å¤åããããæ¬ç¨¿ã¯ãWebã¢ããªã±ã¼ã·ã§ã³ã«Ajaxçã®é²åããããããæè¡ã«ã¤ãã¦æ¯ãè¿ãã¨ã¨ãã«ãã¹ã¯ãªããæ³¨å ¥å¯¾çãèæ ®ãã¹ãæ°ããªæèã«ã¤ãã¦è«ãããã®ã§ããã Ajaxï¼Asynchronous JavaScript and XMLï¼[1]ã¯ãå¿ è¦ã¨ãªããã¼ã¿ãéåæã§Webãµã¼ãããåãå¯ãã¤ã¤ãWebãã©ã¦ã¶ã®ç»é¢ä¸ã§ãªããããªæä½æ§ãæä¾ããå½¢æ ã®JavaScriptããã°ã©ã ã®ãã¨ã§ããããã¤ã¦ã®ãã©ã¦ã¶ã«ããã¦ã¯ãã®
Dev fest 2020 taiwan how to debug microservices on kubernetes as a pros (ht...
æ¨æ¥ã®æ¥è¨ã®ç¶ãã§ãAjaxã«åºæãªã»ãã¥ãªãã£åé¡ã«ã¤ãã¦æ¤è¨ãã¾ããã¿ã¤ãã«ã¯XSSã¨ãªã£ã¦ãã¾ãããä»åç´¹ä»ããèå¼±æ§ã¯XSSã§ã¯ããã¾ããã ä½ããªããåºç¤ããå¦ã¶PHPã«ããWebã¢ããªã±ã¼ã·ã§ã³å ¥éXAMPP/jQuery/HTML5ã§ä½ãã¤ãããã®WeãããAjaxãå©ç¨ããã¢ããªã±ã¼ã·ã§ã³ã®æ¦å¿µå³ãå¼ç¨ãã¾ãï¼æ¬æ¸P20ã®å³1-23ï¼ã Ajaxã®ã¢ããªã±ã¼ã·ã§ã³ã§ã¯ãXMLHttpRequestã¡ã½ããçã§ãã¼ã¿ãè¦æ±ãããµã¼ãã¼ã¯XMLãJSONãã¿ãåºåãæååãªã©é©å½ãªå½¢å¼ã§è¿ãã¾ãããã©ã¦ã¶å´JavaScriptã§ã¯ããã¼ã¿å½¢å¼ããã³ã¼ããã¦ããã¾ãã¾ãªå¦çã®å¾ãHTMLã¨ãã¦è¡¨ç¤ºãã¾ãã以ä¸ã«ãAjaxã®ãªã¯ã¨ã¹ãããµã¼ãã¼ã«å±ããå¾ã®å¦çã®æµãã説æãã¾ãã ãµã¼ãã¼å´ã§ãã¼ã¿ãä½æãåå¾ ãã¼ã¿ä¼éç¨ã®å½¢å¼ï¼XMLãJSONãã¿ãåºåãæååçï¼ã«ã¨ã³ã³ã¼ã
ãã®ã¨ã³ããªã§ã¯ãããPHPã®å ¥éæ¸ãé¡æã¨ãã¦ãAjaxã¢ããªã±ã¼ã·ã§ã³ã®èå¼±æ§ã«ã¤ãã¦æ¤è¨ãã¾ããå ¨3åã¨ãªãäºå®ã§ãã ãã®ã¨ã³ããªãæ¸ãããã£ãã twitterããã¿ã¬ã³ããã¡ããã ããã¦ãä½ããªããåºç¤ããå¦ã¶PHPã«ããWebã¢ããªã±ã¼ã·ã§ã³å ¥éXAMPP/jQuery/HTML5ã§ä½ãã¤ãããã®Weã¨ããæ¬ãèªã¿ã¾ãããææã¯ä»¥ä¸ã®éãã§ãã ã¿ã¬ã³ãæ°ã®ä¸»å¼µã®ããã«ãæ¬æ¸ã¯ã»ãã¥ãªãã£ãä¸åèæ ®ãã¦ããªã 主ãªèå¼±æ§ã¯ãXSSãSQLã¤ã³ã¸ã§ã¯ã·ã§ã³ãä»»æã®ãµã¼ãã¼ãµã¤ãã»ã¹ã¯ãªããå®è¡ï¼ã¢ãããã¼ãçµç±ï¼ãã¡ã¼ã«ãããã¤ã³ã¸ã§ã¯ã·ã§ã³ç èå¼±æ§ä»¥åã®åé¡ã¨ãã¦ãµã³ãã«ã¹ã¯ãªããã®å質ãä½ãããããã°ããªãã¨åããªãã¹ã¯ãªãããå¤æ°ãã£ã ä¸è¨ã«é¢é£ãã¦ãæµç¨å ã®ã½ã¼ã¹ããããã°ç¨ã®alertãªã©ãã³ã¡ã³ãã¨ãã¦æ®ã£ã¦ãã¦çã ãã ä»æãã®æ°´æºã¯ãªããã¼ã¨æãã¾ããã以å
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}