- From: <bugzilla@jessica.w3.org>
- Date: Sat, 07 Jan 2012 11:41:51 +0000
- To: public-html-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=15450 Summary: needed method to set "current state" of a form as the "default state" Product: HTML WG Version: unspecified Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P2 Component: HTML5 spec (editor: Ian Hickson) AssignedTo: ian@hixie.ch ReportedBy: giorgio.liscio@email.it QAContact: public-html-bugzilla@w3.org CC: mike@w3.org, public-html-wg-issue-tracking@w3.org, public-html@w3.org my case is, briefly <form> <input name="aaa" value="XXX"> <input type="submit" value="Save"> <input type="reset" value="Reset"> </form> user changes value of "aaa" from XXX to YYY in a "web 1.0" form the page will be reloaded and this is ok. but in my case, this form will be sent by xhr, then if "save" will be successful I have to loop manually over every data holder (texts, checkboxes, selects...) and set: theinput.defaultValue = theinput.value; otherwise the Reset button will reset the "aaa" value to "XXX", thats not what I want, because I've saved the form. so a form's interface method like HTMLFormElement.setCurrentValuesAsDefaultValues(); would be really cool. I hope this helps -- Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Received on Saturday, 7 January 2012 11:42:09 UTC