Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
188
rated 0 times [  189] [ 1]  / answers: 1 / hits: 22462  / 11 Years ago, wed, may 1, 2013, 12:00:00

I have a quickfeedback widget in my site which has only one textbox. When user presses enter key, the feedback is automatically sent using ajax. But this doesn't work in mobile devices like android, j2me and so on. Is there any alternative that works in both desktop and mobile? Adding a submit button is not acceptable for me.


More From » ajax

 Answers
3

I just checked on android, when you type something and press Go (enter alternative?) it will trigger an event and the key code is actually 13 so the same as Enter on desktop keyboards.



Edit:



I'd suggest debugging the code and checking whether the submit is actually triggered but maybe the key code isn't always 13? Just guessing..



Edit2:



Test this code on your mobile. When I press Go the input value changes to sent! which proves that it works.


[#78494] Tuesday, April 30, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
skylerselenem

Total Points: 282
Total Questions: 101
Total Answers: 107

Location: Nicaragua
Member since Tue, Dec 8, 2020
4 Years ago
;