Detecting page URL for translator

I have a site that is Javascript based page. That means the URL does not change (except the page marker with #).

I have it work with Firefox in page change detection, but it does not work with chrome and safari if I navigate from non supported page to supported page with page marker.

However, if I refresh to the supported page with the right page marker, it detects it.

What should the site do to have zotero to detect the change of page content in order for it to show the correct "Save" icon?
  • is this your page? There is code that tells Zotero to retrigger (though not 100% sure that works in connectors) that'll be easier to implement than the site translators
  • Yes. Are you talking about ZoteroItemUpdated event trigger? or Zotero.monitorDOMChanges()?
  • I mean the event trigger, yes. Is that not working?
  • This is what I used in AJAX code:

    var ev = document.createEvent('HTMLEvents');
    ev.initEvent('ZoteroItemUpdated', true, true);
    document.dispatchEvent(ev);

    And it is not updating the zotero detection

    Zotero standalone version: 4.0.28.7
    Scaffold 3.2.2
    Zotero FF plug-in 4.0.28.10.
Sign In or Register to comment.