Giter VIP home page Giter VIP logo

Comments (3)

triskweline avatar triskweline commented on August 26, 2024 1

-> Should up-validate be implicitly enabled?

No. It's a modifying attribute of [up-validate].

How should the behavior be on nested up-validate-url?

We cannot easily allow nesting [up-validate-url] as Unpoly 3 batches multiple validations into a single request and guarantees only a single concurrent validation request per form.

See these slides:
http://triskweline.de/unpoly3-slides/#33
http://triskweline.de/unpoly3-slides/#34

If we allowed multiple [up-validate-url] within the same form this gets really complicated really fast.

from unpoly.

triskweline avatar triskweline commented on August 26, 2024

I like it. It could be implemented by parsing and merging an { url } option here.

Do you think [up-validate-url] or [up-validate-action] is the more intuitive name here? Arguments can be made for both. The render option is actually { url }, but in an HTML form we use [action] to say where the form submits to:

<form action="/form-result" up-validate up-validate-action="/form-render">

from unpoly.

marc-mabe avatar marc-mabe commented on August 26, 2024

Hi @triskweline,

For naming I would argue pro up-validate-url as this is explicitly not about the form action but about an endpoint that validates/renders the form even if technically the form gets submitted.

How should it behave if only up-validate-url is defined without up-validate?
-> Should up-validate be implicitly enabled?

How should the behavior be on nested up-validate-url?

from unpoly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.