Really strainge. i tried you code on my machine (first i downloaded dojo.js
from the site you pointed out, moved to my ~/Sites folder and renamed to
dojo.js) and it showed true on the preview pane.

Which version of Ubiquity? Can you try with the latest rc?

On Tue, Dec 23, 2008 at 8:00 PM, Robin Howlett <[email protected]>wrote:

>
> CmdUtils.CreateCommand({
>    name: "dojo",
>    description: "test dojo",
>    preview: function(pblock, statusText) {
>        CmdUtils.injectJavascript("http://localhost/dojo/dojo.js";,
>            Utils.safeWrapper(function() {
>                pblock.innerHTML = CmdUtils.getWindowInsecure
> ().dojo.isBrowser;
>            })
>        );
>    },
>    execute: function(statusText) {}
> });
>
> ================
>
> I wrote the above in the Command Editor - all that happens is that tab
> is 'redirected' to localhost (white screen - not sure what it's
> looking for as it doesn't find anything). I edit it to use
> http://o.aolcdn.com/dojo/1.2.3/dojo/dojo.xd.js instead, then the
> command works. I change it back to http://localhost/dojo/dojo.js and
> it still works. Restart the browser and it's back to not working. Can
> someone explain what could be causing this inconsistency?
> >
>


-- 
Fernando "Takai"
http://flickr.com/photos/supeertakai
http://fernandotakai.jaiku.com

Get Ubiquity: https://ubiquity.mozilla.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ubiquity-firefox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to