Comments (3)
-> 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.
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.
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)
- Allow infinity scroll
- [up-validate] Submits to the wrong URL when form contains multiple submit buttons with [formaction] attributes HOT 5
- Uncaught (in promise) DOMException: Failed to execute 'pushState' on 'History' HOT 5
- `HTMLWrapper#wrap` can break previously valid HTML HOT 1
- up.compiler batch throwing error HOT 1
- Allow ignoring the query parameters (search) for current links in navigation feedback HOT 2
- `a[up-accept-location]` Attribute Not Working HOT 4
- Unpoly 3.0.0-rc2 tries to re-register `up.on()` on browser back button HOT 2
- TypeError: Cannot read properties of undefined (reading 'isConnected') HOT 4
- unpoly-migrate throws error when resolving origin of URL target with query parameters and square brackets HOT 1
- up-validate on input[type=date] with flatpicker not working since 3.x HOT 5
- up-href in table row (tr) not working HOT 1
- event.location from `up:location:changed` is not string when using browser back/forward HOT 2
- "Failed to execute 'querySelectorAll'" when selector contains special characters HOT 5
- CSP blocking `up.reload` even with `unsafe-eval` HOT 4
- Submit via out-of-form element does not contribute the element name/value pair HOT 2
- DOMException: Failed to execute 'matches' on 'Element': ':none' is not a valid selector. HOT 3
- While in an overlay, Unpoly 3 injects a form fragment outside [up-target] after onBlur validation HOT 6
- Cannot submit form containing a field called "contains" in Unpoly 3 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unpoly.