Hi All,
I’m needing to call template variables from WITHIN a javascript file. Here was my attempt:
function swapSanFrancisco() {
document.getElementById('map').src = "img/map-sanfrancisco.gif";
document.getElementById('chapterInfo').innerHTML = '[*sanFrancisco*]';
return(false);
}
Basically, when you click a link on my page it’s replacing the HTML of a div on that page with some new text. Unfroatunately, when I call the TV from within my javascript file it’s just showing the text [*sanFrancisco*] rather than actually interpreting that as a template variable.
Does anyone know how to call a TV from within a javascript file and have it interpret correctly as a TV? Let me know, thanks!