{"id":1023,"date":"2012-06-04T12:41:13","date_gmt":"2012-06-04T03:41:13","guid":{"rendered":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/?p=1023"},"modified":"2016-08-29T10:03:53","modified_gmt":"2016-08-29T10:03:53","slug":"%e3%82%af%e3%83%ad%e3%82%b9%e3%83%89%e3%83%a1%e3%82%a4%e3%83%b3%e3%83%aa%e3%82%af%e3%82%a8%e3%82%b9%e3%83%88","status":"publish","type":"post","link":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/?p=1023","title":{"rendered":"\u30af\u30ed\u30b9\u30c9\u30e1\u30a4\u30f3\u30ea\u30af\u30a8\u30b9\u30c8"},"content":{"rendered":"<p>(text by kondo)<\/p>\n<p>&nbsp;<\/p>\n<p>\u30af\u30ed\u30b9\u30c9\u30e1\u30a4\u30f3\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u95a2\u3057\u3066\u307e\u3068\u3081\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u53c2\u8003\u30b5\u30a4\u30c8\u3002<\/p>\n<p style=\"padding-left: 30px;\"><span style=\"color: #0000ff;\"><a href=\"http:\/\/d.hatena.ne.jp\/ushiboy\/20100901\/1283349650\"><span style=\"color: #0000ff;\">Access-Control-Allow-Origin\u8a66\u3057\u3066\u307f\u305f<\/span><\/a><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"color: #0000ff;\"><a href=\"http:\/\/blogs.msdn.com\/b\/ieinternals\/archive\/2010\/05\/13\/xdomainrequest-restrictions-limitations-and-workarounds.aspx\"><span style=\"color: #0000ff;\">XDomainRequest &#8211; Restrictions, Limitations and Workarounds<\/span><\/a><\/span><\/p>\n<p>\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8a2d\u7f6e\u3059\u308b\uff08LMS\u304c\u3042\u308b\uff09\u30b5\u30fc\u30d0\u30fc\u3068\uff0cTeX\u30bd\u30fc\u30b9\u306b\u5909\u63db\u3057\u305f\u308a\u63a1\u70b9\u3092\u5f15\u304d\u53d7\u3051\u308b\u30b5\u30fc\u30d0\u30fc\u306f\uff0c\u5225\u3005\u306e\u3082\u306e\u3068\u306a\u308b\u5834\u5408\u304c\u3042\u308b\u306e\u3067\uff0cJavascript\u304b\u3089\u306e\u30b5\u30fc\u30d3\u30b9\u306e\u8981\u6c42\u306f\u30af\u30ed\u30b9\u30c9\u30e1\u30a4\u30f3\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>IE\u4ee5\u5916\u3067\u3042\u308c\u3070\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u3082\u306e\u3068\u3057\u307e\u3059\uff08\u7279\u306b\u7279\u6b8a\u306a\u3068\u3053\u308d\u306f\u306a\u3044\u3068\u601d\u3044\u307e\u3059\uff09\u3002<\/p>\n<p style=\"padding-left: 30px;\">\u00a0$.ajax({<br \/>\nurl: target_url,\u00a0 \/\/ \u30ea\u30af\u30a8\u30b9\u30c8\u5148\u306eURL<br \/>\ntype: &#8216;post&#8217;,<br \/>\ndata: {&#8216;param&#8217;: xmlText},\u00a0 \/\/ \u9001\u308b\u30c7\u30fc\u30bf(xmlText)\u306e\u30bb\u30c3\u30c8\u3002 param \u3068\u3044\u3046\u540d\u79f0\u3002<br \/>\ntimeout:3000,<br \/>\nsuccess: a_function, \/\/ \u8fd4\u4e8b\u3092\u53d7\u4fe1\u3057\u305f\u3068\u304d\u306b\u547c\u3073\u51fa\u3059\u95a2\u6570(a_function)<br \/>\nerror:function(XMLHttpRequest, status, ethrown){<br \/>\nalert(status);\u00a0 \/\/ \u30a8\u30e9\u30fc\u51e6\u7406\u3092\u4f55\u304b\u3059\u308b<br \/>\n}<br \/>\n});<\/p>\n<p>\u8fd4\u4fe1\u306f \u3001php \u306e\u4f8b\u3067\u3059\u304c\u3001\u4e0b\u8a18\u3002\u30d8\u30c3\u30c0\u30fc\u304c\u91cd\u8981\u306a\u3088\u3046\u3067\u3059\u3002\u4ed6\u306f\u3044\u3064\u3082\u901a\u308a\u3067\u3059\u3002<\/p>\n<p style=\"padding-left: 30px;\">&lt;?php<br \/>\nheader(&#8216;Access-Control-Allow-Origin:*&#8217;);<br \/>\nheader(&#8216;Access-Control-Allow-Headers:*&#8217;);<br \/>\nheader(&#8216;Access-Control-Allow-Methods:GET, POST, OPTIONS&#8217;);<br \/>\nheader(&#8216;Content-Type: text\/plain&#8217;);<\/p>\n<p style=\"padding-left: 30px;\">\/\/ \u4f55\u304b\u306e\u51e6\u7406\u3092\u3059\u308b<\/p>\n<p style=\"padding-left: 30px;\">echo $a_text.&#8221;\\n&#8221;; \/\/ \u8fd4\u4e8b\u3092\u3059\u308b<br \/>\n?&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>IE \u3067\u3042\u308c\u3070\u3001\u901a\u4fe1\u3059\u308b\u30b5\u30fc\u30d0\u30fc\u304c\u4e21\u65b9\u3068\u3082http\u3067\u3042\u308b\u304b\u3001https\u3067\u3042\u308b\u3053\u3068\u304c\u5fc5\u8981\u306a\u69d8\u3067\u3059\u3002\u305d\u306e\u6761\u4ef6\u3092\u6e80\u305f\u3057\u305f\u5834\u5408\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u826f\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<p style=\"padding-left: 30px;\">xhr = new XDomainRequest();<br \/>\nxhr.onload = function() { a_function(xhr.responseText)};\u00a0 \/\/ \u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u53d7\u3051\u53d6\u3063\u3066\u3001\u5b9f\u884c\u3059\u308b\u95a2\u6570(a_function)\u306e\u6307\u5b9a\u3002<br \/>\nxhr.open(&#8216;POST&#8217;, target_url);\u00a0 \/\/ \u30ea\u30af\u30a8\u30b9\u30c8\u5148\u306eURL<br \/>\nxhr.send(&#8216;param=&#8217;+ a_text); \/\/ \u9001\u4fe1\u3059\u308b\u30c7\u30fc\u30bf(a_text)\u306e\u8a2d\u5b9a\u3002\u540d\u79f0\u3082\u6307\u5b9a(param \u3068\u6307\u5b9a)\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5927\u5b66\u306e\u30b5\u30fc\u30d0\u30fc\u304chttps\u3067\u7814\u7a76\u5ba4\u306e\u30b5\u30fc\u30d0\u30fc\u304chttp\u3067\u3057\u305f\u306e\u3067\u3001\u4e0a\u8a18\u3067\u306f\u901a\u4fe1\u3067\u304d\u307e\u305b\u3093\u3002\u305d\u3053\u3067\u3001\u901a\u4fe1\u306e\u6a5f\u80fd\u3092\u3082\u3064 flash \u3092\u7528\u610f\u3057\u3066\u3001IE\u3067\u3042\u308c\u3070\u3053\u306e flash \u3092\u8aad\u307f\u8fbc\u3080\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002\u4e0b\u8a18\u306b\u3067\u3066\u304f\u308b poweredbyflash \u3068\u3044\u3046flash \u3092\u5148\u306b\u8aad\u307f\u8fbc\u3093\u3067\u304a\u304d\u307e\u3059\u3002\u305d\u306e\u4e0a\u3067\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u3057\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 30px;\">var flash = (navigator.appName.indexOf (&#8220;Microsoft&#8221;) !=-1)?window[&#8220;poweredbyflash&#8221;]:document[&#8220;poweredbyflash&#8221;];<br \/>\nflash.sendRequest(a_text,target_url, &#8216;a_function&#8217;);\u00a0 \/\/ \u9001\u4fe1\u30c7\u30fc\u30bf(a_text)\u3068\u3001\u9001\u308a\u5148(target_url)\u3092\u6307\u5b9a\u3002\u8fd4\u4e8b\u3092\u53d7\u3051\u53d6\u308b\u95a2\u6570(a_function)\u3082\u6307\u5b9a\u3002<\/p>\n<p>poweredbyflash \u306e\u4e2d\u3067\u306f\u3001 sendRequest \u3068\u3044\u3046\u95a2\u6570\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u3066\u3001javascript\u304b\u3089\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u4e0b\u8a18\u306e\u3088\u3046\u306a\u5ba3\u8a00\u304c\u306a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 30px;\">ExternalInterface.addCallback(&#8220;sendRequest&#8221;, sendRequest);<\/p>\n<p>\u3042\u3068\u306f\u3001flash\u7528\u306e\u30af\u30ed\u30b9\u30c9\u30e1\u30a4\u30f3\u30dd\u30ea\u30b7\u30fc\u30d5\u30a1\u30a4\u30eb\u306b\u30b5\u30fc\u30d0\u30fc\u540d\u3092\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u3059\u3002crossdomain.xml\u3068\u3044\u3046\u540d\u79f0\u306e\u30d5\u30a1\u30a4\u30eb\u3092web\u30b5\u30fc\u30d0\u30fc\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u306b\u7528\u610f\u3057\u3066\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002kanaike.susi.oita-u.ac.jp\u3068\u3044\u3046\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u8a31\u53ef\u3059\u308b\u5834\u5408\u3067\u3059\u3002<\/p>\n<p style=\"padding-left: 30px;\">&lt;?xml version=&#8221;1.0&#8243;?&gt;<br \/>\n&lt;cross-domain-policy&gt;<br \/>\n&lt;allow-access-from domain=&#8221;kanaike.susi.oita-u.ac.jp&#8221; \/&gt;<br \/>\n&lt;\/cross-domain-policy&gt;<\/p>\n<p>\u3053\u306e\u3088\u3046\u306a\u6e96\u5099\u3092\u3057\u3066\u304a\u304f\u3068\u3001flash\u306e\u901a\u4fe1\u6a5f\u80fd\u3092\u7d4c\u7531\u3057\u3066\u3001\u30af\u30ed\u30b9\u30c9\u30e1\u30a4\u30f3\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(text by kondo) &nbsp; \u30af\u30ed\u30b9\u30c9\u30e1\u30a4\u30f3\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u95a2\u3057\u3066\u307e &#8230; <a class=\"more-link\" href=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/?p=1023\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1023","post","type-post","status-publish","format-standard","hentry","category-column"],"_links":{"self":[{"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1023"}],"version-history":[{"count":1,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1023\/revisions"}],"predecessor-version":[{"id":4200,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1023\/revisions\/4200"}],"wp:attachment":[{"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1023"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}