-
Notifications
You must be signed in to change notification settings - Fork 132
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
The onSubmitFunction for a form doesn't work. #47
Comments
Doens't explicit return value |
@cy6erGn0m This is the result: <form name="fmform" enctype="text/plain" action="" method="post"> |
Are you trying to generate javascript handler on server side? |
Nope, this is the code for the client side, I use kotlinJS |
Are you sure it doesn't print "I'am here"? js dom builder simply do event handler registration so you can't see it in html. I've just tried to add the following integration test and it works well
|
It works. Thanks :) |
After executing, nothing happens to that form, I could use
onSubmit
, and the final form will have theonsubmit
value, but the problem is that it expects a string, which means I could only refer to the final compiled javascript code which has no way to access the kotlinJS context.What I want is simple, just use a kotlinJS method to handle the
onsubmit
event of a form.How to achieve that?
The text was updated successfully, but these errors were encountered: