javascript help
Hi all,
I have a table XUI that I am working on, it is working pretty well. But I now what to add some more functions and they are giving me trouble. I want to remove the rowsep or colsep at the row and entry level. Here is the function I wrote:
function removeSep ( oid, attname )
{
var i,j; // local index variables
var entryChildren;
var oidChildren = oid.childNodes; // the oid passed was the tbody so this give me the rows
for (i=0; i <= oidChildren.length; i++ )
{
Application.alert ("remove seperators for i "+i+attname+" "+oidChildren.item(i).nodeName+" "+oidChildren.length );
oidChildren.item(i).removeAttribute(attname); // all the variables display correctly what I want
entryChildren = oidChildren.item(i).childNodes; // here are the entry children of the row
for (j=0; j <= entryChildren.length; j++)
{
Application.alert ("remove seperators for j "+j+attname+" "+entryChildren.item(j).nodeName+" "+entryChildren.length+" att= "+ entryChildren.item(j).getAttribute(attname)); // displays correct information
entryChildren.item(j).removeAttribute(attname);
} // end for j
Application.alert ("Outside the j loop"); // not getting here -- java exception occurs
} // end for i
}
I turned on the java console to debug, but didn't get any useful information (at least that I could understand). I have also used JSLINT on the internet to check my code syntax and everything checks there.
Any ideas?
Ellen

