W3C home > Mailing lists > Public > public-html@w3.org > January 2012

[Bug 15450] New: needed method to set "current state" of a form as the "default state"

From: <bugzilla@jessica.w3.org>
Date: Sat, 07 Jan 2012 11:41:53 +0000
To: public-html@w3.org
Message-ID: <bug-15450-2495@http.www.w3.org/Bugs/Public/>

           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,

my case is, briefly

    <input name="aaa" value="XXX">
    <input type="submit" value="Save">
    <input type="reset" value="Reset">

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


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 on the CC list for the bug.
Received on Monday, 9 January 2012 03:11:40 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:16:19 UTC