Learning Collaborative Development Lab Fall 2008 Results

From CDOT Wiki
Revision as of 12:39, 9 September 2008 by Pplam3 (talk | contribs)
Jump to: navigation, search

Place any and all common results, code, notes here.

Zenit-Wiki Search by Ezadkiel Marbella:

 name: "zenit/wiki specific search:",
 takes: {"search zenit/wiki term": noun_arb_text},
 preview: function( pblock, wikiquery ) {
   pblock.innerHTML = "Will Search For: " + wikiquery.text;
 execute: function( wikiquery ) {
  var url = "http://zenit.senecac.on.ca/wiki/index.php/Special:Search?search={QUERY}&go=Go"
  var query = wikiquery.text;
  var urlString = url.replace("{QUERY}", query);

This is my submission. I am assuming we are encouraged to reuse code wherever possible. When using the search it is recommended that you separate the terms by + signs as that is what the goggle interface inserts between search terms. I found that it works when spaces are used as well though.

--John64 16:24, 9 September 2008 (UTC)

/*This function is based off Ezadkiel Marbella's code
 name: "zenit-google-search:",
 takes: {"search terms seperated by a '+' sign": noun_arb_text},
 preview: function( pblock, googlequery ) {
   pblock.innerHTML = "Will Search For: " + googlequery.text;
 execute: function( googlequery ) {
  var urlPrefix = "http://www.google.ca/search?hl=en&q=site%3Azenit.senecac.on.ca%2Fwiki+"
  var urlSuffix = "&btnG=Search&meta="
  var query = googlequery.text;
  var urlString = urlPrefix + query + urlSuffix;

--Patrick Lam

This command opens up the ChatZilla extension and connect to moznet

 name: "irc",
 icon: "https://addons.mozilla.org/en-US/firefox/images/addon_icon/16",
 preview: "Starts ChatZilla 0.9.83 and connects to irc://moznet/",
 execute: function() {
   Utils.openUrlInBrowser( "irc://moznet/" );

This command goes to any users blog at Blogspot

 name: "blog",
 takes: {"user": noun_arb_text},
 icon: "http://pplam3.blogspot.com/favicon.ico",
 preview: "Goes to (user).blogspot.com",
 execute: function( directObj  ) {
   Utils.openUrlInBrowser( "http://" + directObj.text + ".blogspot.com" );

This command goes to either Weekly Schedule or the Planet blog

 name: "osd",
 takes: {"blog": noun_arb_text},
 preview: "Goes to OSD600 Weekly Schedule.
By typing 'blog' after, it goes to the Planet's Blog", execute: function( directObj ) { if( directObj == null) { Utils.openUrlInBrowser( "http://zenit.senecac.on.ca/wiki/index.php/DPS909_and_OSD600_Fall_2008_Weekly_Schedule" ); } else { Utils.openUrlInBrowser( "http://zenit.senecac.on.ca/~chris.tyler/planet/" ); } } })