Im not sure why the fit about trying to get javascript into xslt other than Im trying to test locally for a larger problem and my for loop is not cooperating either.....
Code:
function init(){
var panels = document.getElementById("divIds").getElementsByTagName("div");
/*THIS WILL OUTPUT A NUMBER example: '21' */
document.write(panels.length);
/* COMMENT OUT THE document.write and this for loop produces an error*/
for(var i = 0; i < panels.length; i++)
{}
}
The error produced is
"Error: Expected ')'"
The same error is produced using "<"
Im curious if this is the result of the the script believing the line is terminated with the second ";" as using "<" brings the count of ";"'s to three instead of two. Maybe?