javascript - Submit form with multiple submit buttons in Windows CE -


i have application, running on mobile device (scanner) windows ce , ie mobile browser: generated html-code statis, cannot change here:

<form method="post" name="myform" action="/sap(...=)/.../example/.../~...=">  <div id="buttons">.   <input class="okay" id="submitbutton" type=submit name="~okcode=confrm" value="select">   <input class="back" id="backbutton" type=submit name="~okcode=back" value="back">  </div>   ... other forms datas ... </form> 

i want submit form when user press specific key, added javascript:

function navigate(){   document.onkeyup = function(event) {     if (event.keycode == '55') {       var mybutton = document.getelementbyid("submitbutton");       mybutton.click();     }     if (event.keycode == '57') {       var mybutton = document.getelementbyid("backbutton");       mybutton.click();     }   } } 

this sulution works in browsers on computer, not on mobile scanner.

i guess problem caused not supported function click() submit form in windows ce. someon have other idea submit form using specific submit-buttons keydown() ??

thanks!


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -