get all items on page
i want to get all aw elements on the page, so i wud loop into them. the page has different aw elements minus grid.
jc
April 21,
var FormElements = document.getElementsByTagName("input");
FormElementsLength = FormElements.length;
for(i=0; i<FormElementsLength; i++)
{
ParentClass = eval(FormElements[i].parentNode.parentNode);
ParentClass = ParentClass.getAttribute("id");
ParentClass = eval(ParentClass);
ControlValue = ParentClass.getControlValue();
Required = FormElements[i].getAttribute("required");
if(Required)
{
if(ControlValue == null || ControlValue == "-999" || 'undefined' == ControlValue)
{
return false;
}
}
}
return true;
This topic is archived.
ActiveWidgets is a javascript library for creating user interfaces. It offers excellent performance for complex screens while staying simple, compact and easy to learn. Deployed by thousands of commercial customers in more than 70 countries worldwide.
Copyright © ActiveWidgets 2021