Open main menu

CDOT Wiki β

Changes

Learning Collaborative Development Lab Fall 2008 Results

645 bytes added, 16:15, 12 September 2008
no edit summary
//Added some personal sites
//Rewrote preview messages
 
---
== Share a webpage on Facebook! ==
[[User:tjbro]]
This command allows a user to share a web page on Facebook. Although I couldn't get the preview to act the way I orginally had in mind I'm going to continue working on it in hopes of avoiding the pop-up window.
 
CmdUtils.CreateCommand(
{
name: "share-fb:",
preview: function( pblock, wikiquery ) {
pblock.innerHTML = "Share this page on Facebook!";
},
author: {name: "Thomas Brown"},
execute: function() {
window.open("http://www.new.facebook.com/sharer.php?u=" + context.focusedWindow.document.location,"Share on Facebook","menubar=no,width=600,height=360,toolbar=no");
}
})
1
edit