verify Zotero Installation from client javascript

Can anyone tell me how to know wether the browser that is running my javascript code have Zotero installed or not. I want to exploit the functionality of Zotero if client have Zotero installed.
ex:
if(ZoteroInstalled())
alert('You have zotero installed');
else
alert('Zotero is not installed');

i want to know what should be written in "ZoteroInstalled()" funciton.
  • edited January 20, 2008
    There are some general ways to detect whether certain addons are installed:

    http://ha.ckers.org/blog/20060823/detecting-firefox-extentions/
    http://forums.mozillazine.org/viewtopic.php?t=591822

    Although it would probably be more elegant/robust to check for the presence of Zotero in the extension files in the profile folder:
    extensions.cache
    extensions.ini
    extensions.rdf
    http://64.233.183.104/search?q=cache:SaPbrT4kthcJ:kb.mozillazine.org/Profile_folder_-_Firefox+javascript+firefox+detect+installed+addons&hl=en&ct=clnk&cd=8&client=firefox-a
  • Zotero could also define a function or set a variable in the content window scope to make this easier, though we'd probably want to do a bit more to make it more useful—for example, allowing sites to place "Add to Zotero" links next to references on web pages that added individual references to Zotero.

    I've created a ticket.

This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.