The red highlighted portion of this code is throws fits in Mozilla but works fine in IE...Im trying to make this cross browser compatible so does anything jump out in this that Mozilla is going to throw a red flag at????
function AddMenuOptions(strID,ParentChartId)
{
var inputColl = document.getElementByIdstrID).getElementsByTagName('INPUT');
var idColl = ParentChartId;
var idComponents = strID.split('_');
if(idComponents.length == 2)
{
idColl = idComponents[1];
}
for(i=0;i<inputColl.length;i++)
{
if(inputColl.type.toUpperCase() == "CHECKBOX")
{
if(idColl != "")
{
idColl += "|";
}
This code works in IE but not in Mozilla, can someone please tell me the correct standard and syntax I should be using to be cross browser compatible....THANX!!!
idColl += inputColl.parentElement.getAttribute('ChartID')+"="+inputColl.checked.toString();
}
}
document.getElementById('<%= this.ModBOX.ClientID %>').value = idColl;
document.getElementById('<%= this.MODBTN.ClientID %>').click();// nav w/o saving cntrl collection
}
function AddMenuOptions(strID,ParentChartId)
{
var inputColl = document.getElementByIdstrID).getElementsByTagName('INPUT');
var idColl = ParentChartId;
var idComponents = strID.split('_');
if(idComponents.length == 2)
{
idColl = idComponents[1];
}
for(i=0;i<inputColl.length;i++)
{
if(inputColl.type.toUpperCase() == "CHECKBOX")
{
if(idColl != "")
{
idColl += "|";
}
This code works in IE but not in Mozilla, can someone please tell me the correct standard and syntax I should be using to be cross browser compatible....THANX!!!
idColl += inputColl.parentElement.getAttribute('ChartID')+"="+inputColl.checked.toString();
}
}
document.getElementById('<%= this.ModBOX.ClientID %>').value = idColl;
document.getElementById('<%= this.MODBTN.ClientID %>').click();// nav w/o saving cntrl collection
}