Open main menu

CDOT Wiki β

Changes

Learning Collaborative Development Lab Fall 2008 Results

624 bytes added, 00:44, 11 September 2008
no edit summary
var urlString = url.replace("{QUERY}", query);
Utils.openUrlInBrowser(urlString);
}
})
</pre>
and another for getting NASDAQ stock quotes:
<pre>
CmdUtils.CreateCommand({
name: "nasdaq",
author: { name: "Zaid Ghansar" },
description: "Shows current NASDAQ stock value.",
help: "searches for a stocks current vallue at NASDAQ using google",
takes: {"search stock": noun_arb_text},
preview: function( pblock, searchquery ) {
pblock.innerHTML = "<img src='http://www.buylow-sellhigh.com/images/NASDAQ_logo.gif' /> Will Search For: " + searchquery.text;
},
execute: function( query ) {
var url = "http://finance.google.com/finance?client=ob&q=NASDAQ:" + query.text;
Utils.openUrlInBrowser(url);
}
})
1
edit