perfsonar-dev - WebAdmin wizards - on/off values problem
Subject: perfsonar development work
List archive
- From: Maciej Glowiak <>
- To: Michael Michalis <>, Perfsonar Development <>
- Subject: WebAdmin wizards - on/off values problem
- Date: Mon, 04 Feb 2008 13:58:26 +0100
Hi,
The problem of hidden blocks of properties was discussed before. AFAIR the solution was to hide (set to "off" and hide) all the blocks what doesn't seem to be a good choice.
The solution can be very simple, I think. There is "window.onload" event in JS which can be handled and served. Then we can just check which elements need to be enabled. I do not have much time to investigate the problem (I do not fully understand the way how the properties names are: for, e.g. "Vl_...", etc.), but the simple code could be :
------------------------------------------------------------------
window.onload=function()
{
if(!document.getElementById ||
!document.createTextNode) { return; }
els = document.forms[0].elements; //gets all children of form
//number 0
s=""; //just for debug
//iterate all childrens
for (i=0; i<els.length; i++) {
n=document.getElementById("Vl_"+els.item(i).name)
if (n!=null) checkIt(els.item(i));
s=s+"Element "+i+": "+els.item(i).name+"; "+n+"\n";
}
alert(s); //debug
}
------------------------------------------------------------------
Michalis, I hope you'll be able to re-write the code to make it fully work. I can help if needed.
Maciej
--
--------------------------------------------------------------------
| Maciej Glowiak Network Research and Development ||
|
Poznan Supercomputing and Networking Center ||
| (+48 61) 858 2024 -- skype_id: maciej_psnc GG: 4526858 ||
====================================================================
- WebAdmin wizards - on/off values problem, Maciej Glowiak, 02/04/2008
- Re: WebAdmin wizards - on/off values problem, Michael Michalis, 02/05/2008
- Re: WebAdmin wizards - on/off values problem, Gina Kramer, 02/05/2008
- Re: [pS-dev] Re: WebAdmin wizards - on/off values problem, Gina Kramer, 02/05/2008
- Re: WebAdmin wizards - on/off values problem, Gina Kramer, 02/05/2008
- Re: WebAdmin wizards - on/off values problem, Michael Michalis, 02/05/2008
Archive powered by MHonArc 2.6.16.