Hi,
I have the following code :
secondLevelElement = document.createElement('div');
if(xmlDoc.getElementsByTagName('get_updated' + i)[0].childNodes[0].nodeValue == false)
{
secondLevelElement.setAttribute('class', 'content disabled');
updatedDateStr = "<span class=\'red\'>Updated to: " + xmlDoc.getElementsByTagName('Updated_to' + i)[0].childNodes[0].nodeValue + "</span>";
}
else {
secondLevelElement.setAttribute('class', 'content');
updatedDateStr = "<span>Updated to: " + xmlDoc.getElementsByTagName('Updated_to' + i)[0].childNodes[0].nodeValue + "</span>";
}
from the php that creates the xml:
<?php echo '<Updated_to'.$i.'> '.$var1['date'].'</Updated_to'.$i.'>'; ?>
the value of 'get_updated' can be 0 or 1.
in Firefox it's working. the error in IE is "object require" regarding to the last line.
thank you.