Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treat request sigils in query_string of POST as default choice #150

Open
hkoba opened this issue Dec 19, 2018 · 0 comments
Open

Treat request sigils in query_string of POST as default choice #150

hkoba opened this issue Dec 19, 2018 · 0 comments

Comments

@hkoba
Copy link
Owner

hkoba commented Dec 19, 2018

To write wizard style navigations like ←Back Proceed→ in a single page yatt app, you can put name in each buttons with request_sigil (~ for pages, ! for actions). This works quite well basically, except users hit ENTER (RETURN) on the form controls other than such named buttons. In that case, no sigil parameter is sent from browsers and navigation doesn't work as expected. It is quite disappointing in some web apps like online questionnaires.

So, I want to introduce another convention for request sigil handling. Just write action= for POST form with request sigil, then it is treated as default choice of the form. Yatt looks body_parameters first for request sigil. If there was no request sigil in body_parameters, then it looks query_parameters for request sigil.

Note: This feature will work only in PSGI. In other word, use runplack.cgi instead of runyatt.cgi.

@hkoba hkoba self-assigned this Dec 19, 2018
hkoba added a commit that referenced this issue Jan 29, 2019
@hkoba hkoba added the no_tests label Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant