16. Htmlãè¦ã¦ãåãããªã<header> <h1> bad ajax sample. </h1> - doesn't care about states ;-( - </header> <nav> <ul> <li><a href="/0">semantics</a></li> <li><a href="/1">offline</a></li> <li><a href="/2">device</a></li> <li><a href="/3">connectivity</a></li> </ul> </nav> <article> </article> </body>
githubã§ã¯ããã¨ãã°ãã¡ã¤ã«ãªã¹ããããã¡ã¤ã«ãã¯ãªãã¯ããã¨ããªãããã«æ¨ªã«ã¹ã©ã¤ããã¦ãã¡ã¤ã«ãªã¹ãã®ãã¥ã¼ãããã¡ã¤ã«ã®ä¸èº«ã®ãã¥ã¼ã«é·ç§»ãããããªãä»æã®webappã¨ãã¦ã¯å½ããåã®ãããªãªã·ã£ã¬ãªãã¨ããã¦ããã®ã ããããè¦ãã¨URLèªä½ãæ¸ãæãã£ã¦ãã¦ããã¡ã¤ã«ãªã¹ãã®URLãããã¡ã¤ã«ã示ãURLã«å¤ãã£ã¦ãããããã¯ãããªãã¨æã£ã¦ããã®ã ãããããããã¨ãpjaxã¨è¨ãã®ã ã¨æãã¦ããã£ãã ããããã®ã¯URLã®fragment (#ã®ãã¨ã®é¨å)ãæ¸ãæãã¦ããæ¹æ³ãããã¯window.location.hashã§JavaScriptããåç §ã§ããããããã¼ã¸ããã¼ããããããããèªã¿åã£ã¦æç»ãå¤ãããé£ç¹ã¯JavaScriptãåããªãã¨ãã¡ã ã¨ãããã¨ã§ããããããã©ã¦ã¶ãwget/curlã®ãããªãã¼ã«ã¨ã®ç¸æ§ãæªããã¨ãããããã以ä¸ã«æ·±å»ãªã®ã¯ãã½
pjaxã®åã«pushStateã¨ã¯ Ajaxã¨jQueryã®èª¬æã¯ä¸è¦ã¨ãã¦ãpushStateã¨ã¯ãªãããã pushStateã使ã£ã¦ãã©ã¦ã¶ã®å±¥æ´ã«å¯¾ããæä½ãããHTMLã®ä¸é¨ã®ã¿ãæ¸ãæããåä½ã§ããã©ã¦ã¶ã®æ»ãï¼é²ãæ©è½ãå®ç¾ã§ããæ¹æ³ã®ã²ã¨ã¤ãAjaxãªãã¼ã¸ãåç¾ãããã¤URLãè¦æ £ããæ¹æ³ã§èªç¶ã«permalinkã表ç¾ã§ããã æåãªã¨ããã§ã¯GitHubã§ä½¿ããã¦ãã¢ã¬ã hash fragment (/#!/) ãã©ã¦ã¶ã®å±¥æ´ãæ©è½ããããããURL ã® fragment (#) ã使ã£ã¦Ajaxãªãã¼ã¸ãå®ç¾ããæ¹æ³ãä¸ææãã¦ã¯ããããæããããããããªãã#!ãURLæ¹å¤ - karasuyamatenguã®æ¥è¨ ãªã©åççãªåè«ããããããããå°å ¥ããã®ã¯ããããããã¨ããã æåãªã¨ããã§ã¯Twitterã§ä½¿ããã¦ãããã®åä»è ã pjaxã¨ã¯ pjax
ã¡ã³ããã³ã¹
ãç¥ãã
é害
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}