The event: ZoteroItemUpdated appears to work only for Firefox
I'm finding that firing the event: ZoteroItemUpdated from our Web app doesn't trigger a call to the Zotero translator for browsers other than Firefox. This is an important function for AJAX based websites.
I tried using the Chrome and Safari connectors as well as using Zotero standalone without any success. I don't see any mention of this in the documentation or anywhere else.
It also appears that using the essentially undocumented function: Zotero.monitorDOMChanges() works in FF and Chrome but not Safari.
The additional problem with this function is that it requires a DOM change, so if only text and images are being changed, the event doesn't fire. We have 72 thumbnail images on a page when the user paginates to the next 72 images in the search results, the images and text are changed - but the DOM remains the same for performance reasons.
Any help would be appreciated.
John Justin
I tried using the Chrome and Safari connectors as well as using Zotero standalone without any success. I don't see any mention of this in the documentation or anywhere else.
It also appears that using the essentially undocumented function: Zotero.monitorDOMChanges() works in FF and Chrome but not Safari.
The additional problem with this function is that it requires a DOM change, so if only text and images are being changed, the event doesn't fire. We have 72 thumbnail images on a page when the user paginates to the next 72 images in the search results, the images and text are changed - but the DOM remains the same for performance reasons.
Any help would be appreciated.
John Justin
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
I'll take a look at the issue with ZoteroItemUpdated event some time today.
I guess if worst comes to worst I could do a hack and use Zotero.monitorDOMChanges in the translator - i.e., essentially create and destroy a DOM object on the page to get the translator triggered?
http://webcache.artstor.org/library. I can send you the translator code as well.