using reftagger with teachable.com

Jason Mansfield
Jason Mansfield Member Posts: 3 ✭✭
edited November 2024 in English Forum

I'm attempting to use reftagger on a site, but it only works when I reload the page.  I did find a conversation about this on the thread, but it is way over my head.  I don't code.  I'm looking to see if someone can show me how to alter the code so that reftagger works all of the time.  I'm under the impression that there is something called "AJAX" messing with this working correctly?  Once things have been configured how I had hoped, this is what my code looks like.

<script>
var refTagger = {
settings: {
bibleVersion: "ESV"
}
};
(function(d, t) {
var g = d.createElement(t), s = d.getElementsByTagName(t)[0];
g.src = "//api.reftagger.com/v2/RefTagger.js";
s.parentNode.insertBefore(g, s);
}(document, "script"));
</script>

Comments

  • Jason Mansfield
    Jason Mansfield Member Posts: 3 ✭✭

    the site is www.gospelmoney.teachable.com  if you go to the site, it won't use AJAX to load the main pages, but if you were to join the course for married people, it has a couple of lines of random writing in it that include Bible references.  On initial loading of a new portion of the course within the LMS, the page doesn't have any links.  Once the page is refreshed, however, the links work appropriately with reftagger.  

    The site isn't actually set up completely.  I'm just playing around with the LMS to see if this is the one that I want to really host my content on, and if there's no way to use Reftagger or something like it, then I'll be looking into a different LMS.  As it stands, I think this is the best LMS option for what I am intending to do.  Hopefully someone can help!

  • Jason Mansfield
    Jason Mansfield Member Posts: 3 ✭✭

    Actually, you can see the error without enrolling in the LMS.

    https://gospelmoney.teachable.com/p/gospelmoney1 if you go to this page, it should load correctly at first, but if you then click the logo in the top left and then alternate between that link and "all courses", you will find that the landing page for any of the courses will fail to load correctly.

  • David Mitchell
    David Mitchell Member Posts: 1,275 ✭✭✭

    It appears that teachable does not have any obvious hooks to disable AJAX page loading. Some knowledge of JavaScript would be required to work around this issue.

    David Mitchell
    Development Lead
    Faithlife