| phpMyEdit - Viewing Bug Advanced Details | [ Go Back ] | ||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 285 | core / field option | feature | N/A | 2004-11-28 10:49 | 2004-11-28 21:05 |
|
|
|||||
| Reporter: | hbernard | Platform: | PC | ||
| Assigned To: | OS: | (Server) Linux Mandrake 9.1 | |||
| Priority: | low | Version: | Builtin | ||
| Status: | new | Product Version: | |||
| Product Build: | Resolution: | open | |||
| Projection: | none | Duplicate ID: | |||
| ETA: | none | ||||
|
|
|||||
| 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. |