I'm trying to call a JavaScript function and pass a value from a DCR using <iw_cscript> (using the information from
https://support.interwoven.com/library/devel/tst/pt/5_01/TeamSite__PT__iw_cscript.asp). This wasn't working so I thought I'd boil it down until I got to the point where a simple example would work. Even the simplest little piece of JavaScript will not work for me. Here's a snippet from my presentation template:
<iw_cscript language='js'>
<![CDATA[
window.alert("Got this far!");
]]>
</iw_cscript>
But nothing happens - no error, no message box. Is there something that has to be done to enable <iw_cscript>? Or can it not be used like this? Here's what I'd really like to do:
<iw_script language='js'>
<![CDATA[
ShowDiv("{iw_value name='dcr.termYear'/}");
]]>
</iw_script>
Where ShowDiv() is defined in another script block. I'm thinking maybe the fact that it's in a different script block might be a problem, but that doesn't explain why the window.alert() statement won't work.