I don't need to use Jscript much so apologies if this is a dumb question.. I've checked the FAQs but still can't work out what's wrong..
Error is saying that object doesn't support method, I presume this means an input doesn't support writeln()?
Any ideas as to how to do this would be appreciated..
Cheers
Loon
Error is saying that object doesn't support method, I presume this means an input doesn't support writeln()?
Any ideas as to how to do this would be appreciated..
Cheers
Loon
Code:
function displayElements()
{
var numElements = data.elements.length;
document.writeln(data.elements.length);
for (var x = 0; x < numElements; x++)
{
document.writeln("{elemNum[" + x + "]");
document.writeln(data.elements[x].id);
document.writeln(data.elements[x].type);
document.writeln(data.elements[x].name);
document.writeln(data.elements[x].value);
}
}