WebUI: standalone Buttons inside form #21243
Unanswered
ChrisVonFrosta
asked this question in
Q&A
Replies: 1 comment 11 replies
-
Javascript |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am building a configuration page for various actuators. The form and data transfer work. Now, I wanted to place a test button next to the form for each row (i.e., per actor). For this, I placed it in the table and within the form. Initially, I had the problem that these test buttons also triggered the submission of the form.
To circumvent this, I gave these test buttons the attribute type='button'. Now, the form no longer triggers, but web_sensor() does not respond to it. What am I overlooking or what am I doing wrong?
I cannot understand the behavior in the browser console either. The first button does react, but the parameter does not appear in the Web Console. When you click on the error message and go back, a second line appears that contains the sought-after parameter (test_button=0). Unfortunately, the second attempt (button) does not react at all.
Furthermore, I do not understand the principle of:
" #- the onclick function 'la' takes the function name and the respective value you want to send as an argument -#"
The only information I could find is this comment.
runable
test.be
first klick,on first button:
klicked on error message:
back to console:
klicked on new error line:
Beta Was this translation helpful? Give feedback.
All reactions