Avatar of Seth Hanley
Seth Hanley
Flag for United States of America

asked on 

Why does onkeyup event delete the last letter typed when on mobile device?

Hello
Im having a problem sending an xmlhttp get request.  Im using onkeyup = 'sendRequest(this.value)' .  It works fine on a laptop device but on mobile it deletes the last letter typed.  I discovered this by sending a second request and echoing back the input value.  The text in the input field are correct but the callback fails.  It flashes the result but then you have to delete and type again the last letter.  I've tried oninput combination and touchend I believe requires a canvas.  I just want my search sent without a form or button.  Any Help would be appreciated.  
Web DevelopmentHTMLMobileJavaScript

Avatar of undefined
Last Comment
Seth Hanley

8/22/2022 - Mon