<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Javascript &#8211; Tjitjing Blog</title>
	<atom:link href="http://localhost/index.php/tag/javascript/feed" rel="self" type="application/rss+xml" />
	<link>https://blog.tjitjing.com/</link>
	<description>This is my blog on technology related stuff and on occation other things too...</description>
	<lastBuildDate>Wed, 25 Nov 2009 14:40:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.16</generator>
	<item>
		<title>Facebook Share Button in Frameset</title>
		<link>https://blog.tjitjing.com/index.php/2009/11/facebook-share-button-in-frameset.html</link>
					<comments>https://blog.tjitjing.com/index.php/2009/11/facebook-share-button-in-frameset.html#comments</comments>
		
		<dc:creator><![CDATA[Max]]></dc:creator>
		<pubDate>Wed, 25 Nov 2009 14:40:29 +0000</pubDate>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Javascript]]></category>
		<guid isPermaLink="false">http://blog.tjitjing.com/?p=211</guid>

					<description><![CDATA[I spent a lot of time today figuring out how to get the Facebook Share Button to work in a frameset and display the frameset Url and Title instead of the Url and Title of the frame the button was placed in. I thought this should be very easy but it took me quite some&#8230; <a class="more-link" href="https://blog.tjitjing.com/index.php/2009/11/facebook-share-button-in-frameset.html">Continue reading <span class="screen-reader-text">Facebook Share Button in Frameset</span></a>]]></description>
										<content:encoded><![CDATA[<p>I spent a lot of time today figuring out how to get the <a href="http://www.facebook.com/facebook-widgets/share.php" target="_blank" rel="noopener noreferrer">Facebook Share Button</a> to work in a frameset and display the frameset Url and Title instead of the Url and Title of the frame the button was placed in. I thought this should be very easy but it took me quite some time to fnd an ok solution, probably because I&#8217;m not that good at Javascript. If you know of a better solution please let me know.</p>
<p>Facebook Share Button original code:</p>
<blockquote><p>&lt;a name=&#8221;fb_share&#8221; type=&#8221;icon_link&#8221; href=&#8221;http://www.facebook.com/sharer.php&#8221;&gt;Share&lt;/a&gt;<br />
&lt;script src=&#8221;http://static.ak.fbcdn.net/connect.php/js/FB.Share&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;</p></blockquote>
<p>To set url and page title to that of frameset add this after above code:</p>
<blockquote><p>&lt;script&gt;<br />
document.getElementsByName(&#8216;fb_share&#8217;)[0].setAttribute(&#8216;href&#8217;, &#8216;http://www.facebook.com/sharer.php?u=&#8217; + escape(parent.location.href) + &#8216;&amp;t=&#8217; + escape(parent.document.title));<br />
&lt;/script&gt;</p></blockquote>
<p>One problem with directing Facebook direct to the frameset url is that it cannot find Content Summary and Image but I think this can be fixed by adding some <a href="http://wiki.developers.facebook.com/index.php/Facebook_Share/Specifying_Meta_Tags" target="_blank" rel="noopener noreferrer">meta tags as described in Facebooks documentation</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.tjitjing.com/index.php/2009/11/facebook-share-button-in-frameset.html/feed</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
