Greetings! I am having an issue with some Javascript that is used in a client side application with html forms displaying content from XML. The only way I know how to output the XML is by doing an alert(), so if there's another way that I can output the data please let me know.
The error I am getting is Expected token 'eof' found 'NAME' when it runs through this function.
Code:
function GetKeyInfo0()
{ test = getJobsXml();
alert(test);
oXmlJobs.XMLDocument.loadXML(getJobsXml());
oJobs = oXmlJobs.XMLDocument.selectNodes("/jobs/job");
for (var i = 0; i < oJobs.length; ++i)
{
var jobID
oXmlJobs.XMLDocument.loadXML(oJobs[i].xml)
jobID = oXmlJobs.XMLDocument.selectSingleNode('/job/field pos = "53"').text;
alert(jobID)
}
}
any help or pointers is appreciated!
Thanks!