02-28-2011 04:10 AM - edited 02-28-2011 04:12 AM
1. The BlackBerry handheld software version and BlackBerry model you are testing with (or simulating). 9800, 9700,
2. Webworks Apps
I have a input field, when it is few and user hits enter, it will update some data on the page.
My problem is, after the Enter button is pressed, the keyboard do not go away, and it blocks half the screen. So I am looking for a way to hide the keyboard after user hits enter ( or press the image button, which does that automacticcally).
so I have successfully called the JSE, checked VirtualKeyboard.isSupported() and Touchscreen.isSupported() are true. then call a function.
The function suppose to Hide the keyboard, which sounds easy. Here my problem comes , I tried several way to hide the screen's virtual keyboard, but it doesn't work and returns and error ( I put an alert("endJS") after the JSE call).
My code are as below:
I tried test 1 and test 2, both could not get what I wanted.... so I am looking some expert's help here and hopefully I would get some. please let me know if the method should not be like this, or any other method is there. Thx in advance.