![]() |
Alexey admin 4/17/2007 |
Hi, } ShowHideControls(); return false; } and insert these lines just before: else if(e[i].name.substr(0,6)=='value_' && e[i].type=='hidden') e[i].value = '';
|
M
|
mrpeeble author 4/17/2007 |
I added the line your suggested and my ResetControls function now looks as follows: Hi, thank you for pointing me to this bug. We'll fix it with the next update of PHPRunner. To get it working now modify search.php file in C:\Program Files\PHPRunner3.1\source folder Find this snippet there: and insert these lines just before: Then rebuild your project. |
![]() |
Alexey admin 4/18/2007 |
Hi, |
M
|
mrpeeble author 4/18/2007 |
ok, that did it thanks Hi, please apply modifications carefully. The function should look like this: function ResetControls() { var i; e = document.forms[0].elements; for (i=0;i<e.length;i++) { if (e[i].name!='type' && e[i].className!='button' && e[i].type!='hidden') { if(e[i].type=='select-one') e[i].selectedIndex=0; else if(e[i].type=='select-multiple') { var j; for(j=0;j<e[i].options.length;j++) e[i].options[j].selected=false; } else if(e[i].type=='checkbox' || e[i].type=='radio') e[i].checked=false; else e[i].value = ''; } else if(e[i].name.substr(0,6)=='value_' && e[i].type=='hidden') e[i].value = '';} ShowHideControls(); return false; } |