How do I to trigger Reftagger on dynamically loading pages?

Emeka Odiaka
Emeka Odiaka Member Posts: 1 ✭✭
edited November 2024 in English Forum

Hi, need some help.

I am using a 3rd part component on Joomla and the pages (with Bible references) load the content dynamically (via ajax) and so Reftagger does not get triggered when pages load dynamically. However, on page/browser refresh Reftagger loads. Every other page on my Joomla site loads well, except for this 3rd party component. How can Reftagger be triggered in this case? See website page here: https//sovschool.org/programs

thanks, ed.

Comments

  • MJ. Smith
    MJ. Smith MVP Posts: 55,588

    bump 12

    Orthodox Bishop Alfeyev: "To be a theologian means to have experience of a personal encounter with God through prayer and worship."; Orthodox proverb: "We know where the Church is, we do not know where it is not."

  • Corbin Rose
    Corbin Rose Unconfirmed, Member Posts: 1

    Coming in 5 years late here!
    Hopefully you've already found a solution, but if not, you can add the refTagger.tag() function after every fetch.
    I modifyied the JS code to embed to attach my refTagger object to the window:

    window['refTagger'] = …

    Then when my dynamic content loads (callback) I fire:
    if ( window['refTagger']) { window['refTagger'].tag(); }

    And that seems to do the trick. In your case, you may have to see what events and callbacks there are for your dynamic content load.