phpMyEdit - Viewing Bug Advanced Details [ Go Back ]
285 core / field option feature N/A 2004-11-28 10:49 2004-11-28 21:05
hbernard PC  
(Server) Linux Mandrake 9.1  
low Builtin  
new  
open  
none  
none  
submitOnChange property
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.
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.

There are no notes attached to this bug.