I have an xml file and it has some elements that have an attribute called answercontrol, if this is true I want to go into it.
In IE i have it working but not in mozilla.
The code starts like this:
[code]
function fnBuildAnswersXML(doc)
{
var allinputs = doc.getElementsByTagName(‘input’);
var xml = “<?xml version=”1.0″ encoding=”ISO-8859-1″?>”;
xml=xml+”<screen screenNumber=””+ screenNum +”” finalScreen=”false” totalNumberOfScreens=””+ totalNumScreens + “”>”
for(var i=0;i<allinputs.length;i++)
{
// loop through all answercontrols
alert(“CHECK -> allinputs[i].answercontrol = ” + allinputs[i].answercontrol)
if(allinputs[i].answercontrol==’true’)
{
The alert always pops up an undefined. I really haven’t a clue what to do next.
Sniipe