Please look at the below function. I am having problem in addinjg childelements to the div reference.
I am experiencing problem with savePrintSelect.appendChil
d(newdiv).
Can some one help me to resolve thus issue.
function populatePrintSelect(printS
electArray
){
var savePrintSelect = dialogArguments[0].documen
t.getEleme
ntById('po
pupSavePri
ntDiv');
for (index in printSelectArray) {
var newdiv = document.createElement('di
v');
var text = document.createTextNode(pr
intSelectA
rray[index
]);
var divIdName = 'my'+index+'Div';
newdiv.setAttribute('id',d
ivIdName);
newdiv.onmouseover="this.s
tyle.backg
roundColor
='#000000'
; this.style.color='#FFFFFF'
";
newdiv.onmouseout="this.st
yle.backgr
oundColor=
'#F5F5F5';
this.style.color='#000000'
";
//newdiv.innerHTML = printSelectArray[index];
newdiv.appendChild(text);
savePrintSelect.appendChil
d(newdiv)
}
}
Start Free Trial