Dear all,
I have some trouble as simple as debugging a for loop or a while loop. Do you have any clue? a function that returns data without any iteration works fine but not the loop.
<script language = "javascript">
function h(arr)
{
<![CDATA[
var ref = arr[0];
i = 0
while(i<arr.length){
if(arr[i]!= arr[0])
{
return 1
}
i++;
}
return 0
]]>
}
I need it for the XSL not to confuse the < with the tag but consider it as a comparison operator. HELP