This is a migrated thread and some comments may be shown as answers.

How to know when iOS and Android GO button is pressed

1 Answer 288 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David
Top achievements
Rank 1
David asked on 19 Feb 2016, 03:38 PM

I am using Kendo UI in my hybrid app and have a login form, when the user presses the GO button after completing their password, I want my script to process the form.  I have searched and found a few posts about adding either an onsubmit parameter to the form tag or a keyup handler.  Neither have worked.

What is the proper way to handle this for a hybrid app using Kendo UI?  I will have a similar situation with a search field.

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 24 Feb 2016, 10:32 AM
Hello David,

To be able to handle the Go button, you can define your login as a form with a submit button and handle the submit event of the form:
<form id="login">
    <ul data-role="listview">
        <li>
            User name: <input />
        </li>
        <li>
            Password: <input />
        </li>
        <li>
            <input type="submit" value="Login" />
        </li>
    </ul>
</form>

JS:
$("#login").on("submit", function () {
    alert("Form Submitted");
});


Regards,
Tsvetina
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
General Discussion
Asked by
David
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or