Facebook Share Button in Frameset

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 time to fnd an ok solution, probably because I’m not that good at Javascript. If you know of a better solution please let me know.

Facebook Share Button original code:

<a name=”fb_share” type=”icon_link” href=”http://www.facebook.com/sharer.php”>Share</a>
<script src=”http://static.ak.fbcdn.net/connect.php/js/FB.Share” type=”text/javascript”></script>

To set url and page title to that of frameset add this after above code:

document.getElementsByName(‘fb_share’)[0].setAttribute(‘href’, ‘http://www.facebook.com/sharer.php?u=’ + escape(parent.location.href) + ‘&t=’ + escape(parent.document.title));

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 meta tags as described in Facebooks documentation.

Get a Google Wave invite

I have been trying out Google Wave for a few days now and I have to say that I’m not that impressed with the user experience – it is not at all inutitive, this is obviously the type of program where you really have to read the manual! But I will give it some more time, read that manual, watch the instruction videos etc.

Anyway, I have some Google Wave invites so if you’re interested just comment here with your email and I will give away on a first come first serve basis.

Ps. I’m looking for a Voddler invite, anyone got one?

[Edit: I’m out of invites. Will post here again if I get new ones]