Archive for the ‘javascript’ Category

Mozilla Ubiquity - Useful and fun

Wednesday, August 27th, 2008 |

So i've been checking out Ubiquity and playing with it a bit. Even in its "early, rough" state, it is fun stuff to play with and definitely useful!

I even had the time (about 2 min cause I just copied one of their commands) to create a custom command for is.gd the shorter URL service.

JavaScript:
  1. CmdUtils.CreateCommand({
  2. name: "isgd",
  3. takes: {"url to shorten": noun_arb_text},
  4. preview: "Replaces the selected URL with an is.gd URL.",
  5. execute: function( url )
  6. {
  7. var baseUrl = "http://is.gd/api.php";
  8. var params = {longurl: url.text};
  9. jQuery.get( baseUrl, params, function( isgdUrl )
  10. {
  11. CmdUtils.setSelection( isgdUrl );
  12. })
  13. }
  14. })

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

Shortening a URL with is.gd and Ubiquity

Of course there are plenty of other ways you can use/play with Ubiquity.

Ubiquity's Intro: http://is.gd/1Wns

Custom Commands: http://is.gd/1Ydc

That's right, I even used Ubiquity to create the links above.

AJAX Data Services Released

Wednesday, January 31st, 2007 |

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.

[Check it out]

Quick IE Fix

Tuesday, January 3rd, 2006 |

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:

Find entries :

Want to subscribe?

  Subscribe in a reader or,
Subscribe via email:

About me

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.