Note that there are some explanatory texts on larger screens.

plurals
  1. POhandle android go button using phonegap
    primarykey
    data
    text
    <p>Am working in HTML5 and PhoneGap. Currently am facing an issue ; I couldn't handle the <strong>GO</strong> button of Android softkeyboad. My Functionality is that; I have a Login button and when i enter password and click on the <strong>GO</strong> button of the keyboard it will be process the same function of Submit Button in my page. like in the Screen shot <img src="https://i.stack.imgur.com/wPOAr.png" alt="enter image description here"></p> <p>Is there any solution for this?? When Trying like my latest code event is working but jQUERY AJAX calling is not working. :(</p> <p><strong>.. HTML code ..</strong></p> <pre><code> &lt;div data-role="page" id="page_login"&gt; &lt;div data-role="header" id="header_login"&gt; &lt;img src="images/loginheaderlogo.png" id="login_header_logo"&gt;&lt;br/&gt; &lt;img src="images/loginheaderarrow.png" id="login_header_arrow"&gt; &lt;/div&gt; &lt;div data-role="content" id="content_login" class="max_width scrolling"&gt; &lt;form onsubmit="userLogin()"&gt; &lt;!--form submit--&gt; &lt;div id="login_textbox_container"&gt; &lt;span class="valid" id="username_valid"&gt;&lt;/span&gt; &lt;img src="images/loginusericon.png" id="login_text_icon"&gt; &lt;label class="input"&gt; &lt;span&gt;Username&lt;/span&gt; &lt;input type="text" id="input_usersername"&gt; &lt;/label&gt; &lt;/div&gt; &lt;div id="login_textbox_container"&gt;&lt;span class="valid" id="password_valid"&gt;&lt;/span&gt; &lt;img src="images/loginpassicon.png" id="login_text_icon"&gt; &lt;label class="input"&gt; &lt;span&gt;Password&lt;/span&gt; &lt;input type="number" id="input_password"&gt; &lt;/label&gt; &lt;/div&gt; &lt;div style="text-align:center; margin-top:37px"&gt; &lt;div class="main_button" id="login_button"&gt; &lt;div class="left"&gt;&lt;/div&gt; &lt;div class="center"&gt;LOGIN&lt;/div&gt; &lt;div class="right"&gt;&lt;/div&gt; &lt;/div&gt; &lt;input type="submit" value="Login" id="btnSubmit" data-role="none"/&gt; &lt;/div&gt; &lt;/form&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p><strong>.. JS code ..</strong></p> <pre><code> $("#login_button").on( 'click', function(event) { userLogin(); }); </code></pre> <p><strong>.. Ajax Call ..</strong></p> <pre><code> function userLogin() { var varData = 'username='+$('#input_usersername').val()+'&amp;password='+$('#input_password').val(); var Validation_result = UserLogin_Validation() if(Validation_result == true) { $(".pre_loader").show(); setTimeout (function(){ $.ajax({ type: "POST", url: 'http://xxx.xx.net/authenticate.php', data: varData, dataType: "json", crossDomain: true, cache: false, async: false, success: function (data) { userToken=data.token; localStorage.removeItem("TOKEN"); localStorage.setItem("TOKEN",userToken); if(userToken!=0) { var query=[$('#input_usersername').val(),$('#input_password').val(),userToken,timeStamp]; obj.insertLogin(query); } else { alert('Invalid User') $(".pre_loader").hide(); } }, error: OnError }); },1000);} } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload