toggle display of elements
Posted: Tue Jul 26, 2016 11:50 am
Hi,
I am trying to toggle the display of a panel and all it's associated elements on the click of a button.
I can use removeElements("myPanel"); to remove it which works fine. Is there a method to save it before removing and add it back or do I have to recreate all the elements and set their properties again ie.
var newButton = newElement(3, 20, "button", "Click Me", "btnNew") ;
applyProperty("btnNew", "onclick", "alert('clicked')");
...
...
I am doing this in Genie and changing the program is not an option.
Thanks,
Michelle
I am trying to toggle the display of a panel and all it's associated elements on the click of a button.
I can use removeElements("myPanel"); to remove it which works fine. Is there a method to save it before removing and add it back or do I have to recreate all the elements and set their properties again ie.
var newButton = newElement(3, 20, "button", "Click Me", "btnNew") ;
applyProperty("btnNew", "onclick", "alert('clicked')");
...
...
I am doing this in Genie and changing the program is not an option.
Thanks,
Michelle