Microsoft JScript Error
Hi everyone I have an issue that deals with javascript and XSL. I get the following error:
Microsoft JScript runtime error 'document' is undefined line = 23, col =2(line is offset from the start of the script block). Error returned from property or method call.
Now I use two html controls: a hidden html control and button html control. The hidden html control value is being set when the page is loaded and the button html control has a xsl if statement that uses an expr attribute to call a funciton that will evaluate the hiddent control value. The function return the value retrieve from the hiddend html control.
Here is my code:
if (RoleIdVal == "Global View") { document.getElementById("cc_role_id").value = 1; } else { document.getElementById("cc_role_id").value = 0; }
cc_role_id is my hidden control.
Here the structure on the xsl page:
<
inputtype="hidden"id="cc_role_id"/><buttononclick="addFile()"><xsl:ifexpr="CheckTest() == 1">
<xsl:attributename="disabled">true</xsl:attribute></xsl:if></button>Here is the CheckTest function that retuns a value:
function
CheckTest(){varsTemp=document.getElementById("cc_role_id").value;returnsTemp;}Can anyone help?
Thank you

