{"id":901,"date":"2011-06-29T12:02:47","date_gmt":"2011-06-29T16:02:47","guid":{"rendered":"http:\/\/www.a2life.info\/w\/?p=901"},"modified":"2011-06-29T21:52:58","modified_gmt":"2011-06-30T01:52:58","slug":"901","status":"publish","type":"post","link":"https:\/\/www.a2life.info\/w\/?p=901","title":{"rendered":"JQuery\u306e.load()\u3092\u4f7f\u3063\u3066\u307f\u3066\u3000complete: \u306b\u306f\u307e\u3063\u305f\u3001\u3068\u3044\u3046\u8a71"},"content":{"rendered":"<p>Query \u30e9\u30a4\u30d6\u30e9\u30ea\u30fc\u306e\u4e2d\u306b.load()\u3068\u3044\u3046method\u304c\u3042\u308a\u3001\u3053\u308c\u3092\u4f7f\u3046\u3068\u3001WEB\u30da\u30fc\u30b8\u306e\u4e00\u90e8\u306b\u4ed6\u306e\u30da\u30fc\u30b8\u3092\u306f\u3081\u8fbc\u3080\u3001\u3068\u3044\u3046\u3053\u3068\u304c\u7c21\u5358\u306b\u3067\u304d\u308b\u3002\u3000\u305f\u3068\u3048\u3070main.html \u3068\u3044\u3046\u30da\u30fc\u30b8\u304c\u3042\u308a\u3001\u3000\u305d\u3053\u306b&lt;div id=&#8221;sections&#8221;&gt;&lt;\/div&gt; \u3068\u3044\u3046\u30bb\u30af\u30b7\u30e7\u30f3\u3092\u3064\u304f\u3063\u3066\u304a\u304d\u3001\u3000\u3053\u306e\u90e8\u5206\u306bcontent1.html\u3068\u3044\u3046\u30da\u30fc\u30b8\u3092\u5dee\u3057\u8fbc\u3080\u305f\u3081\u306b\u306f<br \/>\n$(&#8216;#sections&#8217;).load(&#8216;content1.html&#8217;);<br \/>\n\u3068\u3044\u3046javascript \u4e00\u884c\u3067\u6e08\u3080\u3002<\/p>\n<p>\u3053\u308c\u3092\u4f7f\u3048\u3070\u3001content2.html, content3.html \u306a\u3069\u3068\u3044\u3046\u30da\u30fc\u30b8\u3092\u7528\u610f\u3057\u3066\u304a\u3044\u3066\u3001Javascript\u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30bf\u30fc\u30a2\u30af\u30c6\u30a3\u30d6\u306b\uff08\u30da\u30fc\u30b8\u3092\u5168\u90e8\u30ed\u30fc\u30c9\u3057\u306a\u304a\u3059\u306e\u3067\u306f\u306a\u304f\uff09\u30da\u30fc\u30b8\u306e\u4e00\u90e8\u3060\u3051\u3092\u5dee\u3057\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u308f\u3051\u3060\u3002<\/p>\n<p>\u3053\u308c\u3063\u3066\u3001\u5df7\u306b\u3044\u3046Ajax\u3060\u304c\u3001jQuery \u306eAjax\u3000\u30b5\u30dd\u30fc\u30c8\u306f\u3000ajaxSetup \u3068\u3044\u3046object\u304c\u304c\u3042\u3063\u3066\u3001\u3053\u306e\u4e2d\u3067\u3001Ajax\u95a2\u4fc2\u306e\u8af8\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u524d\u3082\u3063\u3066\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3001\u3000\u3067\u3001\u3068\u308a\u3042\u3048\u305a<br \/>\n$.ajaxSetup({<br \/>\nbeforeSend: function() {<br \/>\n$(&#8216;#sections&#8217;).css(&#8216;visibility&#8217;,&#8217;hidden&#8217;);<br \/>\n$(&#8216;#aContainer&#8217;).css(&#8216;background&#8217;, &#8216;url(images\/ajax-loader.gif) no-repeat center&#8217;);<br \/>\n},<br \/>\ncomplete:<br \/>\n$(&#8216;#aContainer&#8217;).css(&#8216;background&#8217;,&#8217;none&#8217;);<br \/>\n}<br \/>\n});<br \/>\n\u3068\u3084\u3063\u3066\u3001\u3000\u30da\u30fc\u30b8\u3092\u30ed\u30fc\u30c9\u3057\u305f\u3068\u304d\u306b\u3001\u524d\u306e\u30da\u30fc\u30b8\u306e\u8868\u793a\u3092\u6d88\u3057\u3001\u30d0\u30c3\u30af\u30b0\u30e9\u30f3\u30c9\u306b\u30ed\u30fc\u30c9\u4e2d\u304a\u5f85\u3061\u304f\u3060\u3055\u3044\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u306f\u3063\u3066\u304a\u304d\u3001\u30ed\u30fc\u30c9\u3057\u7d42\u308f\u3063\u305f\u3068\u304d\u306b\u3001\u3053\u308c\u3092\u53d6\u308a\u9664\u304f\u3001\u3068\u3044\u3046\u3000\u52d5\u4f5c\u3092\u4ed8\u3051\u52a0\u3048\u305f\u3002<\/p>\n<p>\u3068\u3053\u308d\u304c\u5b9f\u969b\u306b\u52d5\u304b\u3057\u3066\u307f\u308b\u3068\u3001\u30ed\u30fc\u30c9\u304c\u5b8c\u4e86\u3057\u3066\u65b0\u3057\u3044\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u305f\u5f8c\u3067\u3082\u30a4\u30e1\u30fc\u30b8\u304c\u6d88\u3048\u306a\u3044\u3002\u3000\u30d6\u30e9\u30a6\u30b6\u306e\u958b\u767a\u30c4\u30fc\u30eb\u3067\u898b\u308b\u3068\u3001\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u4e0a\u3001\u30d0\u30c3\u30af\u30b0\u30e9\u30f3\u30c9\u30a4\u30e1\u30fc\u30b8\u304c\u305d\u306e\u307e\u307e\u6b8b\u3063\u3066\u3044\u308b\u3002\u3064\u307e\u308a\u3001complete: \u306e\u90e8\u5206\u304c\u52d5\u3044\u3066\u3044\u306a\u3044\u3002<\/p>\n<p>\u3053\u308c\u30672\u6642\u9593\u307b\u3069\u30cf\u30de\u3063\u305f\u308f\u3051\u3060\u304c\u3001\u3000\u7d50\u8ad6\u304b\u3089\u304b\u3044\u3066\u3057\u307e\u3046\u3002<br \/>\n\u5b9f\u306f.load()\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u306b\u306f\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u6a5f\u80fd\u304c\u3042\u308a\u3001\u3000\u3053\u308c\u3092\u4f7f\u3063\u3066\u3001\u30ed\u30fc\u30c9\u3055\u308c\u305f\u753b\u9762\u306e\u521d\u671f\u5316\u3092\u884c\u3046\u305f\u3081\u306ejavascript\u3092\u6307\u5b9a\u3057\u3066\u3044\u305f($(&#8216;#sections&#8217;).load(&#8216;content1.html&#8217;,&#8217;doSomething&#8217;)) \u306e\u3060\u304c\u3001\u3053\u308c\u304ccomplete: \u306b\u6307\u5b9a\u3055\u308c\u305f\u51e6\u7406\u3092\u7121\u52b9\u5316\u3057\u3066\u3057\u307e\u3046\u3088\u3046\u3067\u3042\u308b\u3002\u3000jQuery\u306e.load \u3068\u3000complete: \u306e\u90e8\u5206\u306e\u30de\u30cb\u30e5\u30a2\u30eb\u3092\u3058\u3063\u304f\u308a\u8aad\u3093\u3067\u305d\u3046\u3044\u3046\u7d50\u8ad6\u306b\u9054\u3057\u305f\u3002<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001Complete: event \u3067\u306f\u306a\u304f\u3000Success:event\u3000\u306b\u52d5\u4f5c\u3092\u3076\u3089\u4e0b\u3052\u3066\u89e3\u6c7a\u3002.load()\u3067\u306f\u306a\u304f\u3001.get()\u3092\u4f7f\u3046\u3068\u3059\u3063\u304d\u308a\u3057\u305d\u3046\u3060\u304c\u3001\u8a73\u3057\u304f\u8abf\u3079\u3066\u306a\u3044\u306e\u3067\u3053\u308c\u3067\u3088\u3057\u3068\u3059\u308b\u3002<\/p>\n<p>jQuery.ajaxSetup({<br \/>\nbeforeSend: function() {<br \/>\n$(&#8216;#sections&#8217;).css(&#8216;visibility&#8217;,&#8217;hidden&#8217;);<br \/>\n$(&#8216;#aContainer&#8217;).css(&#8216;background&#8217;, &#8216;url(images\/ajax-loader.gif) no-repeat center&#8217;);<br \/>\n},<br \/>\nsuccess:<br \/>\n$(&#8216;#aContainer&#8217;).css(&#8216;background&#8217;,&#8217;none&#8217;);<br \/>\n}<br \/>\n});<\/p>\n<p>$ajax \u3092\u4f7f\u3046\u3068\u3001\u3082\u3063\u3068\u304d\u3081\u7d30\u304b\u3044Ajax\u64cd\u4f5c\u304c\u3067\u304d\u308b\u305d\u3046\u3060\u304c\u3001\u73fe\u72b6\u3067\u306f\u3053\u308c\u3067\u5341\u5206\u3002<\/p>\n<p>\u4e00\u5fdc\u52d5\u3044\u3066\u3044\u308b\u8a3c\u62e0\u306f\u3000\u3053\u3053\u306b<br \/>\nhttp:\/\/shogishack.net\/modx\/pages\/assess-the-situation\/exchanging-pieces\/<\/p>\n<p>ModX\/WayFinder\u3067\u4f5c\u3063\u305f\u30e1\u30cb\u30e5\u306ea href\u90e8\u5206\u3092jquery\u3067\u4e00\u62ec\u52a0\u5de5\u3057\u3001\u305d\u308c\u305e\u308c\u306e\u30a2\u30a4\u30c6\u30e0\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001Jump\u3067\u306f\u306a\u304f\u3001.load\u304c\u547c\u3073\u51fa\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n<p>ModX\u3068\u3000jQuery \u3092\u4f7f\u3063\u305fAjax, \u306a\u304b\u306a\u304b\u76f8\u6027\u304c\u3088\u3055\u305d\u3046\u3067\u3042\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Query \u30e9\u30a4\u30d6\u30e9\u30ea\u30fc\u306e\u4e2d\u306b.load()\u3068\u3044\u3046method\u304c\u3042\u308a\u3001\u3053\u308c\u3092\u4f7f\u3046\u3068\u3001WEB\u30da\u30fc\u30b8\u306e\u4e00\u90e8\u306b\u4ed6\u306e\u30da\u30fc\u30b8\u3092\u306f\u3081\u8fbc\u3080\u3001\u3068\u3044\u3046\u3053\u3068\u304c\u7c21\u5358\u306b\u3067\u304d\u308b\u3002\u3000\u305f\u3068\u3048\u3070main.html \u3068\u3044\u3046\u30da\u30fc\u30b8\u304c\u3042\u308a\u3001\u3000\u305d\u3053\u306b&lt;div id=&#8221;sections&#8221;&gt;&lt;\/div&gt; \u3068\u3044\u3046\u30bb\u30af\u30b7\u30e7\u30f3\u3092\u3064\u304f\u3063\u3066\u304a\u304d\u3001\u3000\u3053\u306e\u90e8\u5206\u306bcontent1.html\u3068\u3044\u3046\u30da\u30fc\u30b8\u3092\u5dee\u3057\u8fbc\u3080\u305f\u3081\u306b\u306f $(&#8216;#sections&#8217;).load(&#8216;content1.html&#8217;); \u3068\u3044\u3046javascript \u4e00\u884c\u3067\u6e08\u3080\u3002 \u3053\u308c\u3092\u4f7f\u3048\u3070\u3001content2.html, content3.html \u306a\u3069\u3068\u3044\u3046\u30da\u30fc\u30b8\u3092\u7528\u610f\u3057\u3066\u304a\u3044\u3066\u3001Javascript\u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30bf\u30fc\u30a2\u30af\u30c6\u30a3\u30d6\u306b\uff08\u30da\u30fc\u30b8\u3092\u5168\u90e8\u30ed\u30fc\u30c9\u3057\u306a\u304a\u3059\u306e\u3067\u306f\u306a\u304f\uff09\u30da\u30fc\u30b8\u306e\u4e00\u90e8\u3060\u3051\u3092\u5dee\u3057\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u308f\u3051\u3060\u3002 \u3053\u308c\u3063\u3066\u3001\u5df7\u306b\u3044\u3046Ajax\u3060\u304c\u3001jQuery \u306eAjax\u3000\u30b5\u30dd\u30fc\u30c8\u306f\u3000ajaxSetup \u3068\u3044\u3046object\u304c\u304c\u3042\u3063\u3066\u3001\u3053\u306e\u4e2d\u3067\u3001Ajax\u95a2\u4fc2\u306e\u8af8\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u524d\u3082\u3063\u3066\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3001\u3000\u3067\u3001\u3068\u308a\u3042\u3048\u305a $.ajaxSetup({ beforeSend: function() { $(&#8216;#sections&#8217;).css(&#8216;visibility&#8217;,&#8217;hidden&#8217;); $(&#8216;#aContainer&#8217;).css(&#8216;background&#8217;, &#8216;url(images\/ajax-loader.gif) no-repeat center&#8217;); }, complete: $(&#8216;#aContainer&#8217;).css(&#8216;background&#8217;,&#8217;none&#8217;); } }); \u3068\u3084\u3063\u3066\u3001\u3000\u30da\u30fc\u30b8\u3092\u30ed\u30fc\u30c9\u3057\u305f\u3068\u304d\u306b\u3001\u524d\u306e\u30da\u30fc\u30b8\u306e\u8868\u793a\u3092\u6d88\u3057\u3001\u30d0\u30c3\u30af\u30b0\u30e9\u30f3\u30c9\u306b\u30ed\u30fc\u30c9\u4e2d\u304a\u5f85\u3061\u304f\u3060\u3055\u3044\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u306f\u3063\u3066\u304a\u304d\u3001\u30ed\u30fc\u30c9\u3057\u7d42\u308f\u3063\u305f\u3068\u304d\u306b\u3001\u3053\u308c\u3092\u53d6\u308a\u9664\u304f\u3001\u3068\u3044\u3046\u3000\u52d5\u4f5c\u3092\u4ed8\u3051\u52a0\u3048\u305f\u3002 \u3068\u3053\u308d\u304c\u5b9f\u969b\u306b\u52d5\u304b\u3057\u3066\u307f\u308b\u3068\u3001\u30ed\u30fc\u30c9\u304c\u5b8c\u4e86\u3057\u3066\u65b0\u3057\u3044\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u305f\u5f8c\u3067\u3082\u30a4\u30e1\u30fc\u30b8\u304c\u6d88\u3048\u306a\u3044\u3002\u3000\u30d6\u30e9\u30a6\u30b6\u306e\u958b\u767a\u30c4\u30fc\u30eb\u3067\u898b\u308b\u3068\u3001\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u4e0a\u3001\u30d0\u30c3\u30af\u30b0\u30e9\u30f3\u30c9\u30a4\u30e1\u30fc\u30b8\u304c\u305d\u306e\u307e\u307e\u6b8b\u3063\u3066\u3044\u308b\u3002\u3064\u307e\u308a\u3001complete: \u306e\u90e8\u5206\u304c\u52d5\u3044\u3066\u3044\u306a\u3044\u3002 \u3053\u308c\u30672\u6642\u9593\u307b\u3069\u30cf\u30de\u3063\u305f\u308f\u3051\u3060\u304c\u3001\u3000\u7d50\u8ad6\u304b\u3089\u304b\u3044\u3066\u3057\u307e\u3046\u3002 \u5b9f\u306f.load()\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u306b\u306f\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u6a5f\u80fd\u304c\u3042\u308a\u3001\u3000\u3053\u308c\u3092\u4f7f\u3063\u3066\u3001\u30ed\u30fc\u30c9\u3055\u308c\u305f\u753b\u9762\u306e\u521d\u671f\u5316\u3092\u884c\u3046\u305f\u3081\u306ejavascript\u3092\u6307\u5b9a\u3057\u3066\u3044\u305f($(&#8216;#sections&#8217;).load(&#8216;content1.html&#8217;,&#8217;doSomething&#8217;)) \u306e\u3060\u304c\u3001\u3053\u308c\u304ccomplete: \u306b\u6307\u5b9a\u3055\u308c\u305f\u51e6\u7406\u3092\u7121\u52b9\u5316\u3057\u3066\u3057\u307e\u3046\u3088\u3046\u3067\u3042\u308b\u3002\u3000jQuery\u306e.load \u3068\u3000complete: \u306e\u90e8\u5206\u306e\u30de\u30cb\u30e5\u30a2\u30eb\u3092\u3058\u3063\u304f\u308a\u8aad\u3093\u3067\u305d\u3046\u3044\u3046\u7d50\u8ad6\u306b\u9054\u3057\u305f\u3002 \u3068\u3044\u3046\u308f\u3051\u3067\u3001Complete: event \u3067\u306f\u306a\u304f\u3000Success:event\u3000\u306b\u52d5\u4f5c\u3092\u3076\u3089\u4e0b\u3052\u3066\u89e3\u6c7a\u3002.load()\u3067\u306f\u306a\u304f\u3001.get()\u3092\u4f7f\u3046\u3068\u3059\u3063\u304d\u308a\u3057\u305d\u3046\u3060\u304c\u3001\u8a73\u3057\u304f\u8abf\u3079\u3066\u306a\u3044\u306e\u3067\u3053\u308c\u3067\u3088\u3057\u3068\u3059\u308b\u3002 jQuery.ajaxSetup({ beforeSend: function() { $(&#8216;#sections&#8217;).css(&#8216;visibility&#8217;,&#8217;hidden&#8217;); $(&#8216;#aContainer&#8217;).css(&#8216;background&#8217;, &#8216;url(images\/ajax-loader.gif) no-repeat center&#8217;); }, success: $(&#8216;#aContainer&#8217;).css(&#8216;background&#8217;,&#8217;none&#8217;); } }); $ajax \u3092\u4f7f\u3046\u3068\u3001\u3082\u3063\u3068\u304d\u3081\u7d30\u304b\u3044Ajax\u64cd\u4f5c\u304c\u3067\u304d\u308b\u305d\u3046\u3060\u304c\u3001\u73fe\u72b6\u3067\u306f\u3053\u308c\u3067\u5341\u5206\u3002 \u4e00\u5fdc\u52d5\u3044\u3066\u3044\u308b\u8a3c\u62e0\u306f\u3000\u3053\u3053\u306b http:\/\/shogishack.net\/modx\/pages\/assess-the-situation\/exchanging-pieces\/ ModX\/WayFinder\u3067\u4f5c\u3063\u305f\u30e1\u30cb\u30e5\u306ea href\u90e8\u5206\u3092jquery\u3067\u4e00\u62ec\u52a0\u5de5\u3057\u3001\u305d\u308c\u305e\u308c\u306e\u30a2\u30a4\u30c6\u30e0\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001Jump\u3067\u306f\u306a\u304f\u3001.load\u304c\u547c\u3073\u51fa\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3002 ModX\u3068\u3000jQuery \u3092\u4f7f\u3063\u305fAjax, \u306a\u304b\u306a\u304b\u76f8\u6027\u304c\u3088\u3055\u305d\u3046\u3067\u3042\u308b\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,3],"tags":[33,8],"class_list":["post-901","post","type-post","status-publish","format-standard","hentry","category-modx","category-web-making","tag-jquery","tag-web-hosting"],"_links":{"self":[{"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=\/wp\/v2\/posts\/901","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=901"}],"version-history":[{"count":7,"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=\/wp\/v2\/posts\/901\/revisions"}],"predecessor-version":[{"id":905,"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=\/wp\/v2\/posts\/901\/revisions\/905"}],"wp:attachment":[{"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=901"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=901"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}