Is there any way to get the reftagger to rescan the dom after it has been altered (by javascript?)
If you set tagAutomatically to false in the refTagger settings, then you can manually call refTagger.tag with any root node you choose once the script has loaded.
Please provide more details on how to call refTagger.tag, A brief example would be good. I am using MVC and need to rescan part of the document when a partialview is loaded with new data that includes Bible references. I don't want to reload the whole page for performance reasons.
I modified my page to set tagAutomatically to true, but I get an error about noSearchTagNames being undefined when I execute the tag method. Also, I am not sure about the syntax for the parameter passed to the tag method.
Regards,
Dave
var o_c = document.getElementById('comment');
o_c.innerHTML = "See Romans 1:10 for details";
refTagger.tag(o_c);
Thanks it works great. I have a partial view in VS2013 MVC5 that loads data into a div with verse references pulled from a database and the partial view is now rescanned and references are tagged using the ajax .done method so I don't have to reload the whole page.
However, I did not find it necessary to set the tagAutomatically to false in the refTagger settings as indicated in other posts.
Available Now
Build your biblical library with a new trusted commentary or resource every month. Yours to keep forever.