preview: "Replaces the selected URL with an is.gd URL.",
execute: function( url )
{
var baseUrl = "http://is.gd/api.php";
var params = {longurl: url.text};
jQuery.get( baseUrl, params, function( isgdUrl )
{
CmdUtils.setSelection( isgdUrl );
})
}
})
To add this command jsut open up Ubiquity (opt/ctrl+Space) and type command-editor, then hit enter. Add the code (it automatically saves as you type). Then your good to go.
To use the new command, have some text selected in a new email or blog post, open Ubiquity type isgd, then the url, hit enter and the text that was selected will be replaced with the shortened URL.
Shortening a URL with is.gd and Ubiquity
Of course there are plenty of other ways you can use/play with Ubiquity.
Adobe labs has released the AJAX Data Services - AJAX Data Services is a JavaScript library that lets AJAX developers access the messaging and data management capabilities of Flex Data Services directly from JavaScript. It lets you use Flex clients and AJAX clients that share data in the same messaging application or distributed data application.
Michael Moore (no, not the documentary director!) brought this little IE 7
quick fix to my attention.
Just below the last in your HTML page, insert the following Javascript:
Open a new document in Notepad or your HTML editor, and copy & paste the following content into it:
theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++)
{
theObjects[i].outerHTML = theObjects[i].outerHTML;
}
Save this file as fixit.js
There is also the SWF Object: SWFObject is a Javascript file used to embed Flash content. It detects the Flash plug-in in all major web browsers and is designed to make embedding Flash movies as easy as possible. Its also search engine friendly, degrades gracefully, can be used in valid HTML and XHTML 1.0 documents*, and is forward compatible, so it should work for years to come.
SWFObject has a nice little API for adding flash vars and upgrading the Flash Player.
I'm a senior developer at RealEyes Media, Adobe Certified Instructor and Adobe Certified Professional. Here you'll get my ideas and experience Flex, Flash, ColdFusion and related technologies as well as some generally off the wall stuff.