| Index
» Projects
» phpMyEdit
» Bug list
» Bug #285 |
 |
|
Viewing Bug Advanced Details |
[ Jump to Bugnotes ]
[ Bug History ]
[ Print ]
|
|
ID |
Category |
Severity |
Reproducibility |
Date Submitted |
Last Update |
|
0000285 |
core / field option |
feature |
N/A |
2004-11-28 10:49 |
2004-11-28 21:05 |
|
|
|
Reporter |
hbernard |
View Status |
public |
|
|
Assigned To |
|
|
Priority |
low |
Resolution |
open |
Platform |
PC |
|
Status |
new |
Duplicate ID |
|
OS |
(Server) Linux Mandrake 9.1 |
|
Projection |
none |
|
Version |
Builtin |
|
ETA |
none |
|
Product Version |
|
|
|
Product Build |
|
|
|
Votes |
1 |
|
|
|
Summary |
submitOnChange property |
|
Description |
No patch for now, just to keep the idea.
In some forms, you may want to enable/disable/display/hide some fields according to the input of the user in another field _at run time_
There is a need to reload the form when a value of a specific field changed, using the onChange js propertie. |
|
Steps To Reproduce |
|
|
Additional Information / Solution |
API could be
...
'on_change|C' => Array( 'submit' => 'morechange', 'value' => 'Apply'),
...
where 'value' should be untranslated
and the JS (generated) call should look like :
<INPUT ........ onChange="return PME_js_submit_special(this, 'morechange', 'Appliquer');">
(Appliquer is the french translation of Apply)
and the generic JS func should look like :
function PME_js_submit_special(theform,key, val) {
theform.("PME_sys_"+key).value = val;
theform.submit();
}
API could be further extended with 'custom' JS code. |
|
|
|
System Description |
|
|
Attached Files |
|
|
|
|
There are no notes attached to this bug. |
|
Bug History |
|
Date Modified |
Username |
Field |
Change |
|
2004-11-28 10:49 |
hbernard |
New Bug |
|
|
2004-11-28 21:05 |
hbernard |
summary |
submitOnChange propertie => submitOnChange property |
|
|