Show me the code! – By Davanum Srinivas

August 27, 2008

[Ubiquity] Load and use external javascript (Yahoo.js)

Filed under: Uncategorized — Davanum Srinivas @ 9:40 pm

Looks like we can use CmdUtils.injectJavascript to use an existing remote javascript such as the ones from Yahoo. following works like a charm!

    name: "browser",
    homepage: "",
    author: {
        name: "Davanum Srinivas",
        email: "davanum AT"
    description: "sniff browser",
    preview: function(pblock, statusText) {
        	Utils.safeWrapper(function() {
            	pblock.innerHTML = "Gecko engine revision number : " + 
    execute: function(statusText) {}

1 Comment »

  1. Hi,
    I’m trying to include the jqSOAPClient plugin by doing something like this, but I keep getting an error, saying SOAPObject is undefined…

    Any ideas?

    name: “fly-to”,
    description: “returns flights to a city from a city”,
    takes: {“to”: noun_arb_text},
    modifiers: {“from”: noun_arb_text},

    execute: function(to, modifiers) {

    var soapBody = new SOAPObject(“testObject”);


    Comment by Mike — September 4, 2008 @ 3:11 pm

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at

%d bloggers like this: