Архив записей по месяцам // May 2006

google/trends: медвед(ь)

31st May 2006 - 07:43

медвед > медведь

Categories: Misc | comments: (0)

Gecko: nsIAlertsService, Linux и прочие OC

23rd May 2006 - 08:17

Для Fx под Windows работает такой код:

var image = "chrome://myExtension/skin/images/myExtension.png";
var title = "Test title", msg = "Test message";
try {
  Components.classes["@mozilla.org/alerts-service;1"]
    .getService(Components.interfaces.nsIAlertsService)
    .showAlertNotification(image, title, msg, false, "", null);
} catch(ex) {
  dump("alertsService failure: " + ex + "\n");
}

[ read more ]

Categories: dHtml | comments: (1)