<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>解決：window.open()を使いつつIEでRefererを渡す方法 へのコメント</title>
	<atom:link href="http://blog.justoneplanet.info/2007/07/18/windowopen%e3%82%92%e4%bd%bf%e3%81%84%e3%81%a4%e3%81%a4ie%e3%81%a7referer%e3%82%92%e6%b8%a1%e3%81%99%e6%96%b9%e6%b3%95/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.justoneplanet.info/2007/07/18/windowopen%e3%82%92%e4%bd%bf%e3%81%84%e3%81%a4%e3%81%a4ie%e3%81%a7referer%e3%82%92%e6%b8%a1%e3%81%99%e6%96%b9%e6%b3%95/</link>
	<description>日々勉強</description>
	<lastBuildDate>Mon, 30 Apr 2012 13:59:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>IEで確認した時にリファラが取れない場合の対処法 &#124; ミラボ より</title>
		<link>http://blog.justoneplanet.info/2007/07/18/windowopen%e3%82%92%e4%bd%bf%e3%81%84%e3%81%a4%e3%81%a4ie%e3%81%a7referer%e3%82%92%e6%b8%a1%e3%81%99%e6%96%b9%e6%b3%95/comment-page-1/#comment-40275</link>
		<dc:creator>IEで確認した時にリファラが取れない場合の対処法 &#124; ミラボ</dc:creator>
		<pubDate>Sun, 26 Feb 2012 12:13:39 +0000</pubDate>
		<guid isPermaLink="false">http://justoneplanet.sakura.ne.jp/wordpress/2007/07/18/windowopen%e3%82%92%e4%bd%bf%e3%81%84%e3%81%a4%e3%81%a4ie%e3%81%a7referer%e3%82%92%e6%b8%a1%e3%81%99%e6%96%b9%e6%b3%95/#comment-40275</guid>
		<description>[...] [アクセス解析tips] ・解決：window.open()を使いつつIEでRefererを渡す方法   &#160; tweetmeme_style = [...]</description>
		<content:encoded><![CDATA[<p>[...] [アクセス解析tips] ・解決：window.open()を使いつつIEでRefererを渡す方法   &nbsp; tweetmeme_style = [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>もっこり より</title>
		<link>http://blog.justoneplanet.info/2007/07/18/windowopen%e3%82%92%e4%bd%bf%e3%81%84%e3%81%a4%e3%81%a4ie%e3%81%a7referer%e3%82%92%e6%b8%a1%e3%81%99%e6%96%b9%e6%b3%95/comment-page-1/#comment-13149</link>
		<dc:creator>もっこり</dc:creator>
		<pubDate>Wed, 15 Jul 2009 18:55:43 +0000</pubDate>
		<guid isPermaLink="false">http://justoneplanet.sakura.ne.jp/wordpress/2007/07/18/windowopen%e3%82%92%e4%bd%bf%e3%81%84%e3%81%a4%e3%81%a4ie%e3%81%a7referer%e3%82%92%e6%b8%a1%e3%81%99%e6%96%b9%e6%b3%95/#comment-13149</guid>
		<description>みなどうやってるのだろうと検索したら辿り着きますた、
リファラーを得る目的ではないが、新しいウィンドウの表示を切り替える目的で、ウィンドウ名を利用しています。
window.name なら自分のウィンドウの名前を得られるので、
window.openの第二引数（ウィンドウ名）に特殊な名前を与えて、新しいページで参照する、という方法をとっています。
もちろん
window.open(&#039;URL&#039;, location.href,width=......)とすればよさそうですが IE では文字列の内容からエラーになるので英数とアンダーバーに置換えする必要があります。
めんどいので現在は固有のストリングをねじこんでますが、もちろん秘匿性はないので使い道は限られると思います。</description>
		<content:encoded><![CDATA[<p>みなどうやってるのだろうと検索したら辿り着きますた、<br />
リファラーを得る目的ではないが、新しいウィンドウの表示を切り替える目的で、ウィンドウ名を利用しています。<br />
window.name なら自分のウィンドウの名前を得られるので、<br />
window.openの第二引数（ウィンドウ名）に特殊な名前を与えて、新しいページで参照する、という方法をとっています。<br />
もちろん<br />
window.open(&#8216;URL&#8217;, location.href,width=&#8230;&#8230;)とすればよさそうですが IE では文字列の内容からエラーになるので英数とアンダーバーに置換えする必要があります。<br />
めんどいので現在は固有のストリングをねじこんでますが、もちろん秘匿性はないので使い道は限られると思います。</p>
]]></content:encoded>
	</item>
	<item>
		<title>オンポタメモ &#187; links for 2009-06-29 より</title>
		<link>http://blog.justoneplanet.info/2007/07/18/windowopen%e3%82%92%e4%bd%bf%e3%81%84%e3%81%a4%e3%81%a4ie%e3%81%a7referer%e3%82%92%e6%b8%a1%e3%81%99%e6%96%b9%e6%b3%95/comment-page-1/#comment-12314</link>
		<dc:creator>オンポタメモ &#187; links for 2009-06-29</dc:creator>
		<pubDate>Tue, 30 Jun 2009 02:00:41 +0000</pubDate>
		<guid isPermaLink="false">http://justoneplanet.sakura.ne.jp/wordpress/2007/07/18/windowopen%e3%82%92%e4%bd%bf%e3%81%84%e3%81%a4%e3%81%a4ie%e3%81%a7referer%e3%82%92%e6%b8%a1%e3%81%99%e6%96%b9%e6%b3%95/#comment-12314</guid>
		<description>[...]  解決：window.open()を使いつつIEでRefererを渡す方法 &#124; JustOnePlanet Admin Blog (tags: javascript+tech)   [...]</description>
		<content:encoded><![CDATA[<p>[...]  解決：window.open()を使いつつIEでRefererを渡す方法 | JustOnePlanet Admin Blog (tags: javascript+tech)   [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>admin より</title>
		<link>http://blog.justoneplanet.info/2007/07/18/windowopen%e3%82%92%e4%bd%bf%e3%81%84%e3%81%a4%e3%81%a4ie%e3%81%a7referer%e3%82%92%e6%b8%a1%e3%81%99%e6%96%b9%e6%b3%95/comment-page-1/#comment-707</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 09 Mar 2009 07:07:09 +0000</pubDate>
		<guid isPermaLink="false">http://justoneplanet.sakura.ne.jp/wordpress/2007/07/18/windowopen%e3%82%92%e4%bd%bf%e3%81%84%e3%81%a4%e3%81%a4ie%e3%81%a7referer%e3%82%92%e6%b8%a1%e3%81%99%e6%96%b9%e6%b3%95/#comment-707</guid>
		<description>すみません。。。
先に言えば良かったのですが

XMLHttpRequestを使っているのでドメインが異なる場合は
通信が出来ないのです。
従いましてウインドウが開いても何も表示されない
という事になってしまいます。

またwindow.openの引数については
http://www.tohoho-web.com/js/window.htm#open
こちらを参考にすると良いと思います。

//==================================================
ちなみにですが
子ウィンドウでIframeを使い
他ドメインのサイトを呼び出せば
確かRefererもセットされた気がします。

あまり美しい方法ではありませんが如何でしょうか？


気になったのですがりファラーは必須でしょうか？
必須でなければ通常のwindow.openでも目的は達成されると思います。


また何か問題があるようでしたら
お尋ねくださいませ☆</description>
		<content:encoded><![CDATA[<p>すみません。。。<br />
先に言えば良かったのですが</p>
<p>XMLHttpRequestを使っているのでドメインが異なる場合は<br />
通信が出来ないのです。<br />
従いましてウインドウが開いても何も表示されない<br />
という事になってしまいます。</p>
<p>またwindow.openの引数については<br />
<a href="http://www.tohoho-web.com/js/window.htm#open" rel="nofollow">http://www.tohoho-web.com/js/window.htm#open</a><br />
こちらを参考にすると良いと思います。</p>
<p>//==================================================<br />
ちなみにですが<br />
子ウィンドウでIframeを使い<br />
他ドメインのサイトを呼び出せば<br />
確かRefererもセットされた気がします。</p>
<p>あまり美しい方法ではありませんが如何でしょうか？</p>
<p>気になったのですがりファラーは必須でしょうか？<br />
必須でなければ通常のwindow.openでも目的は達成されると思います。</p>
<p>また何か問題があるようでしたら<br />
お尋ねくださいませ☆</p>
]]></content:encoded>
	</item>
	<item>
		<title>pooh より</title>
		<link>http://blog.justoneplanet.info/2007/07/18/windowopen%e3%82%92%e4%bd%bf%e3%81%84%e3%81%a4%e3%81%a4ie%e3%81%a7referer%e3%82%92%e6%b8%a1%e3%81%99%e6%96%b9%e6%b3%95/comment-page-1/#comment-696</link>
		<dc:creator>pooh</dc:creator>
		<pubDate>Mon, 09 Mar 2009 05:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://justoneplanet.sakura.ne.jp/wordpress/2007/07/18/windowopen%e3%82%92%e4%bd%bf%e3%81%84%e3%81%a4%e3%81%a4ie%e3%81%a7referer%e3%82%92%e6%b8%a1%e3%81%99%e6%96%b9%e6%b3%95/#comment-696</guid>
		<description>スクリプトを理解していないので、とても難しいです・・・汗。
URLをここにずばり書いても良いのかどうかわからないので
http://www.bbb/aaa/というサイトに、window openで
http://www.ccc/bbb/1.htmlというリンクを貼っています。
同じサーバーではありません・・・。

＜まず上述のスクリプトを読み込むなり
htmlファイルに書き込むなりします＞
ということは、http://www.ccc/bbb/a1.htmlという、スクリプトを動かしたいhtmlに書くという事で間違いないでしょうか。

それから
subWin= window.open(”&quot;,”sub”,”width=……………………….”);
”&quot;,”には、http://www.bbb/aaa/というサイトのURLを入れるのでしょうか？
”sub&quot;には、何を入れたらいいでしょうか？

色々試してみたのですが、indexとhtmlが別のサーバーにあるからなのか、うまくいきません・・・。

こんな初心者を相手にするのも大変でしょう、申し訳ありません、でも、これはすごいぞ！と思って・・・。
同じ階層ならうまくいくかも、別のhtmlで試してみます！</description>
		<content:encoded><![CDATA[<p>スクリプトを理解していないので、とても難しいです・・・汗。<br />
URLをここにずばり書いても良いのかどうかわからないので<br />
<a href="http://www.bbb/aaa/というサイトに、window" rel="nofollow">http://www.bbb/aaa/というサイトに、window</a> openで<br />
<a href="http://www.ccc/bbb/1.htmlというリンクを貼っています。" rel="nofollow">http://www.ccc/bbb/1.htmlというリンクを貼っています。</a><br />
同じサーバーではありません・・・。</p>
<p>＜まず上述のスクリプトを読み込むなり<br />
htmlファイルに書き込むなりします＞<br />
ということは、http://www.ccc/bbb/a1.htmlという、スクリプトを動かしたいhtmlに書くという事で間違いないでしょうか。</p>
<p>それから<br />
subWin= window.open(”&#8221;,”sub”,”width=……………………….”);<br />
”&#8221;,”には、http://www.bbb/aaa/というサイトのURLを入れるのでしょうか？<br />
”sub&#8221;には、何を入れたらいいでしょうか？</p>
<p>色々試してみたのですが、indexとhtmlが別のサーバーにあるからなのか、うまくいきません・・・。</p>
<p>こんな初心者を相手にするのも大変でしょう、申し訳ありません、でも、これはすごいぞ！と思って・・・。<br />
同じ階層ならうまくいくかも、別のhtmlで試してみます！</p>
]]></content:encoded>
	</item>
	<item>
		<title>pooh より</title>
		<link>http://blog.justoneplanet.info/2007/07/18/windowopen%e3%82%92%e4%bd%bf%e3%81%84%e3%81%a4%e3%81%a4ie%e3%81%a7referer%e3%82%92%e6%b8%a1%e3%81%99%e6%96%b9%e6%b3%95/comment-page-1/#comment-691</link>
		<dc:creator>pooh</dc:creator>
		<pubDate>Mon, 09 Mar 2009 04:33:40 +0000</pubDate>
		<guid isPermaLink="false">http://justoneplanet.sakura.ne.jp/wordpress/2007/07/18/windowopen%e3%82%92%e4%bd%bf%e3%81%84%e3%81%a4%e3%81%a4ie%e3%81%a7referer%e3%82%92%e6%b8%a1%e3%81%99%e6%96%b9%e6%b3%95/#comment-691</guid>
		<description>お返事頂きまして、本当に感謝しております。
がんばって、やってみたいと思います！
また、来ます！！！</description>
		<content:encoded><![CDATA[<p>お返事頂きまして、本当に感謝しております。<br />
がんばって、やってみたいと思います！<br />
また、来ます！！！</p>
]]></content:encoded>
	</item>
	<item>
		<title>admin より</title>
		<link>http://blog.justoneplanet.info/2007/07/18/windowopen%e3%82%92%e4%bd%bf%e3%81%84%e3%81%a4%e3%81%a4ie%e3%81%a7referer%e3%82%92%e6%b8%a1%e3%81%99%e6%96%b9%e6%b3%95/comment-page-1/#comment-358</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 03 Mar 2009 16:29:15 +0000</pubDate>
		<guid isPermaLink="false">http://justoneplanet.sakura.ne.jp/wordpress/2007/07/18/windowopen%e3%82%92%e4%bd%bf%e3%81%84%e3%81%a4%e3%81%a4ie%e3%81%a7referer%e3%82%92%e6%b8%a1%e3%81%99%e6%96%b9%e6%b3%95/#comment-358</guid>
		<description>コメントありがとうございます☆


まず上述のスクリプトを読み込むなり
htmlファイルに書き込むなりします。

次にhtml内の任意の要素にonclickもしくはhrefで
openWindowが動作するようにします。

その時に例えば
openWindow(&#039;test&#039;);
とすると、
記述したhtmlファイルと同じ階層にある
test.htmlがポップアップウィンドウに表示されます。

//==================================================
subWin= window.open(&quot;&quot;,&quot;sub&quot;,&quot;width=............................&quot;);
の部分とかは適宜、適当な引数を記述してください。

//==================================================
2年近く前のソースなので自分で改めてみると
ちょっと恥ずかしいですね。。。

何かご不明な点がありましたらお気兼ねなく
コメントくださいませ。。。</description>
		<content:encoded><![CDATA[<p>コメントありがとうございます☆</p>
<p>まず上述のスクリプトを読み込むなり<br />
htmlファイルに書き込むなりします。</p>
<p>次にhtml内の任意の要素にonclickもしくはhrefで<br />
openWindowが動作するようにします。</p>
<p>その時に例えば<br />
openWindow(&#8216;test&#8217;);<br />
とすると、<br />
記述したhtmlファイルと同じ階層にある<br />
test.htmlがポップアップウィンドウに表示されます。</p>
<p>//==================================================<br />
subWin= window.open(&#8220;&#8221;,&#8221;sub&#8221;,&#8221;width=&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.&#8221;);<br />
の部分とかは適宜、適当な引数を記述してください。</p>
<p>//==================================================<br />
2年近く前のソースなので自分で改めてみると<br />
ちょっと恥ずかしいですね。。。</p>
<p>何かご不明な点がありましたらお気兼ねなく<br />
コメントくださいませ。。。</p>
]]></content:encoded>
	</item>
	<item>
		<title>pooh より</title>
		<link>http://blog.justoneplanet.info/2007/07/18/windowopen%e3%82%92%e4%bd%bf%e3%81%84%e3%81%a4%e3%81%a4ie%e3%81%a7referer%e3%82%92%e6%b8%a1%e3%81%99%e6%96%b9%e6%b3%95/comment-page-1/#comment-300</link>
		<dc:creator>pooh</dc:creator>
		<pubDate>Sun, 01 Mar 2009 05:27:28 +0000</pubDate>
		<guid isPermaLink="false">http://justoneplanet.sakura.ne.jp/wordpress/2007/07/18/windowopen%e3%82%92%e4%bd%bf%e3%81%84%e3%81%a4%e3%81%a4ie%e3%81%a7referer%e3%82%92%e6%b8%a1%e3%81%99%e6%96%b9%e6%b3%95/#comment-300</guid>
		<description>すみません、javascriptをそのまま書いてしまいました。
if (document.referrer.length !=0 ){
}
else{
location.href = &quot;サイトのURL&quot;;
}
が、利用できなくなってしまいました。</description>
		<content:encoded><![CDATA[<p>すみません、javascriptをそのまま書いてしまいました。<br />
if (document.referrer.length !=0 ){<br />
}<br />
else{<br />
location.href = &#8220;サイトのURL&#8221;;<br />
}<br />
が、利用できなくなってしまいました。</p>
]]></content:encoded>
	</item>
	<item>
		<title>pooh より</title>
		<link>http://blog.justoneplanet.info/2007/07/18/windowopen%e3%82%92%e4%bd%bf%e3%81%84%e3%81%a4%e3%81%a4ie%e3%81%a7referer%e3%82%92%e6%b8%a1%e3%81%99%e6%96%b9%e6%b3%95/comment-page-1/#comment-299</link>
		<dc:creator>pooh</dc:creator>
		<pubDate>Sun, 01 Mar 2009 05:25:18 +0000</pubDate>
		<guid isPermaLink="false">http://justoneplanet.sakura.ne.jp/wordpress/2007/07/18/windowopen%e3%82%92%e4%bd%bf%e3%81%84%e3%81%a4%e3%81%a4ie%e3%81%a7referer%e3%82%92%e6%b8%a1%e3%81%99%e6%96%b9%e6%b3%95/#comment-299</guid>
		<description>index.htmlページで、window.openを利用し、メニューバーの無い画面を出すようにしたら、



が利用できなくなり、ここにたどり着いた者です。
是非、利用してみたい！と思うのですが、どの分に、新しく開きたいページのURLを入れて、どの部分に、サイトのURLを入れれば良いのか良くわからず、画面が真っ白になってしまいます。
注意事項にあった3項目は、設定しました。
どうか、ご教授お願いします！！</description>
		<content:encoded><![CDATA[<p>index.htmlページで、window.openを利用し、メニューバーの無い画面を出すようにしたら、</p>
<p>が利用できなくなり、ここにたどり着いた者です。<br />
是非、利用してみたい！と思うのですが、どの分に、新しく開きたいページのURLを入れて、どの部分に、サイトのURLを入れれば良いのか良くわからず、画面が真っ白になってしまいます。<br />
注意事項にあった3項目は、設定しました。<br />
どうか、ご教授お願いします！！</p>
]]></content:encoded>
	</item>
	<item>
		<title>Just One Planet より</title>
		<link>http://blog.justoneplanet.info/2007/07/18/windowopen%e3%82%92%e4%bd%bf%e3%81%84%e3%81%a4%e3%81%a4ie%e3%81%a7referer%e3%82%92%e6%b8%a1%e3%81%99%e6%96%b9%e6%b3%95/comment-page-1/#comment-3</link>
		<dc:creator>Just One Planet</dc:creator>
		<pubDate>Wed, 18 Jul 2007 02:00:24 +0000</pubDate>
		<guid isPermaLink="false">http://justoneplanet.sakura.ne.jp/wordpress/2007/07/18/windowopen%e3%82%92%e4%bd%bf%e3%81%84%e3%81%a4%e3%81%a4ie%e3%81%a7referer%e3%82%92%e6%b8%a1%e3%81%99%e6%96%b9%e6%b3%95/#comment-3</guid>
		<description>&lt;strong&gt;解決：window.open()を使いつつIEでRefere...&lt;/strong&gt;

■読む前に知って欲しい事

window.open()を使って他のHTMLファイルを開くと、IE以外のブラウザはちゃんとリクエストヘッダーに『Refererをつけて&lt;a href=&quot;http://blogs.yahoo.co.jp/justoneplanet/34557691.html&quot; rel=&quot;nofollow&quot;&gt; (more...)&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p><strong>解決：window.open()を使いつつIEでRefere&#8230;</strong></p>
<p>■読む前に知って欲しい事</p>
<p>window.open()を使って他のHTMLファイルを開くと、IE以外のブラウザはちゃんとリクエストヘッダーに『Refererをつけて<a href="http://blogs.yahoo.co.jp/justoneplanet/34557691.html" rel="nofollow"> (more&#8230;)</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

