![]() |
romaldus 1/17/2011 |
Hi, i have a problem with on page load java from phprunner 5.2 to 5.3 version. My code is : var ctrlTipo = document.getElementById('value_tipo_1'); var ctrlSetipo1 = document.getElementById('value_setipo1_1'); var ctrlSetipo2 = document.getElementById('value_setipo2_1'); ctrlTipo.onchange = function() { if (this.value == '1'){ ctrlSetipo1.style.visibility=''; ctrlSetipo2.style.visibility='hidden'; ctrlSetipo2.value=''; document.forms.editform1.value_tipo_1.style.backgroundColor="yellow"; document.forms.editform1.value_setipo1_1.style.backgroundColor="yellow"; } else{ ctrlSetipo1.style.visibility='hidden'; ctrlSetipo1.value=''; document.forms.editform1.value_tipo_1.style.backgroundColor="orange"; document.forms.editform1.value_setipo2_1.style.backgroundColor="orange"; ctrlSetipo2.style.visibility=''; } }; //Esegue il controllo sul valore del campo una volta caricata la pagina ctrlTipo.onchange(); the control ctrlSetipo2 disappear when i select first value 1 for value_tipo_1 (drop down) and then i select value 2 for value_tipo_1 The colors desappeared with 5.2 it works fine. Thanks var ctrlTipo = Runner.getControl (pageid, 'value_tipo_1'); |
E
|
ericholiveira 1/17/2011 |
Hi Fabiousf
|
![]() |
ffrinai author 1/18/2011 |
Hi Fabiousf test
|
![]() |
romaldus 1/18/2011 |
...... It doesn't work. no colors and no hidden fields. May I send you a copy of project ? (it is a little test project (4696 Kb zipped) with mysql data backup)
if (this.value == '1'){
if (this.getValue == '1'){ |
![]() |
ffrinai author 1/18/2011 |
your code : if (this.value == '1'){
if (this.getValue == '1'){
|
![]() |
Sergey Kornilov admin 1/18/2011 |
Fabiusf, |
![]() |
ffrinai author 1/27/2011 |
Solved: |