Tip: Open URLs with framework.openUrl

Wednesday, April 16, 2008 at 4:06 PM



I'd bet good money that most Desktop gadget developers could recognize and understand this code snippet:
  var obj = new ActiveXObject('WScript.Shell');
obj.run('http://desktop.google.com/');
Those days are over, as the latest Google Desktop release added an API for opening a URL in a browser:
  framework.openUrl('http://desktop.google.com/');
This is documented in the 5.5 release notes, but we wrote this tip in case you missed it. :)

Have a tip you'd like to share? Send it to gd-developer AT google DOT com. To see all tips, choose the Tips label.

No comments: