Hello Everyone,

I tried to use the mozilla bookmarks service, but somehow I don't
succeed adding bookmarks.
Basically, I took the example that can be found at
developer.mozilla.org and xulplanet.com.
Within my code, I refer to a JavaScript (in a separate .js file) that
contains the function below:

function AddBookmark()
{
   var bmarks =
Components.classes["@mozilla.org/browser/bookmarks-service;1"].getService()­;
   bmarks.QueryInterface(Components.interfaces.nsIBookmarksService);
   bmarks.addBookmarkImmediately("http://www.dds.nl","DDS",0,null);
}

However, somehow the bookmark named DDS isn't added to the bookmarks in
my browser.
On the internet, I saw many questions related to this topic, but
somehow it's hard to find the (right) accompanying answer.

Is there someone who can help me to solve this problem?

Many thanks in advance.

Best regards,
MC


Btw. It shouldn't matter, but the browser I'm using is FireFox 1.5.0.1
running on WinXP.

_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to