Page 1 of 1

giving element-name to group

PostPosted: Mon Nov 10, 2003 9:50 am
by Harjo
I would be handy to group elements and than the possibility to give it an element-name.

So you can enable/disable, visible/non-visible the group in just one row method:

elements.groupname.visible = true

PostPosted: Mon Nov 10, 2003 3:38 pm
by Jan Blok
It's possible to make an array in javascript, add all the elements to that array and a global method to handle the array to set all the elements visible for example

PostPosted: Mon Nov 10, 2003 5:17 pm
by DFehrenbach
How do you assign form elements (fields/buttons/portals) to the array elements? Do you mean that the method will only create the array and the form elements are named as array elements?
Could you please give a short example?

PostPosted: Mon Nov 10, 2003 8:57 pm
by maarten
myElementgroup = new Array(); //create an Array that will be filled with a group of elements

myElementgroup[0] = elements.myField1;
myElementgroup[1] = elements.myField2;
etc..

//set the element group to visible
for(var i=0;i<myElementgroup.length;i++)
{
myElementgroupName1[i].visible = true;
}

PostPosted: Fri Feb 16, 2007 12:40 pm
by axterics
searching for the solution of this problem I found this old post.
Yes you can hide all the element grouping by elements.name or using a tabpanel but it is not so handy...

request++ for me