Changes

Jump to: navigation, search

Learning Collaborative Development Lab Fall 2008 Results

839 bytes added, 22:30, 10 September 2008
no edit summary
I'll probably continue to work on it. Add some dynamic CSS to the preview div. <br />
--[[User:Cbishop2|Cbishop2]] 01:05, 10 September 2008 (UTC)
----
<b>Searches WebMD with given keyword</b>
by [[User:AaronMT|AaronMT]]<br />
 
<b>Usage:</b> health <i>keyword phrase</i>
<pre>CmdUtils.CreateCommand(
{
name: "health",
homepage: "http://webmd.com",
author: { name: "Aaron Train", email: "aaron.train@gmail.com" },
description: "Takes keyword phrase and searches WebMD (Web Medical Dictionary)",
help: "health <i>keyword phrase</i>",
icon: "http://img.webmd.com/dtmcms/live/images/favicon/webmd.ico",
takes: {"Enter a noun": noun_arb_text},
preview: function(pblock, keywordPhrase)
{
pblock.innerHTML = "Search the WebMD by entering any phrase <b>" + keywordPhrase.text + "</b>"
},
 
execute: function(keywordPhrase)
{
var searchURL = "http://www.webmd.com/search/search_results/default.aspx?query=" + keywordPhrase.text;
Utils.openUrlInBrowser(searchUrl);
}
});
</pre>
1
edit

Navigation menu