Skip to content

(Future?) enhancement: auto-submitting form #32

@noamr

Description

@noamr

A very common use of JavaScript is updating the document as a reaction to change events, e.g. a search input that updates search results without refreshing the whole document.

Perhaps this usage can be declarative as well (as part of declarative interception, (3) in the explainer)?

The idea is that a form could have something like a live or autosubmit boolean attribute, that when active, any change event in the form would send a patch-navigation request based on the new FormData and update the DOM using whatever patches receives.

(This is not a lot more than an HTML version of form.addEventListener("change", () => form.requestSubmit()))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions