facebook

Transition to next page leaves white box where keyboard was

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
    Posts
  • #347871

    Hi jamesd,

    I had a similar keyboard problem and wanted to dismiss the keyboard under program control.
    I received the following code from the Tech Support and it worked.
    I am not sure if your problem is the same, but give it a try:

     if (document && document.activeElement && ('blur' in document.activeElement)) {
       document.activeElement.blur(); // Unfocus currently active document.
      }
    #347873

    jamesd
    Member

    Hello tguneysu,

    Yes, I’ve tried a couple similar methods with jQuery and various elements, but not straight JS. I’ll try that.

    Thanks.

    #347877

    jamesd
    Member

    @tguneysu wrote:

    Hi jamesd,

    I had a similar keyboard problem and wanted to dismiss the keyboard under program control.
    I received the following code from the Tech Support and it worked.
    I am not sure if your problem is the same, but give it a try:

     if (document && document.activeElement && ('blur' in document.activeElement)) {
       document.activeElement.blur(); // Unfocus currently active document.
      }

    Thank you very much, yes.. this did it. Didn’t think about trying the “document” level like this does. doh!

    Thanks again tguneysu.

    For anyone else that runs into this, just place the snippet within the pre-submit form function of the page with the form.

    #348054

    PaulLeBlanc
    Participant

    Hi Guys,
    Thanks, I’ve been needing this for quite awhile. I have a page(form not checked in properties, ie I am not submitting a form), with a text box, button and a hidden panel on it. When I touch the text box the keyboard comes up. When I hit the <button> it makes the panel visible, BUT the keyboard is still visible. I wish to hide the keyboard when I hit the <button>.
    So how do I hide the keyboard by just hitting a <button>? .. I am not changes pages.
    Thanks in advance.

    #348093

    Hi pwleblanc,

    Have you tried the code that tguneysu suggested?

    @tguneysu wrote:

    Hi jamesd,

    I had a similar keyboard problem and wanted to dismiss the keyboard under program control.
    I received the following code from the Tech Support and it worked.
    I am not sure if your problem is the same, but give it a try:

     if (document && document.activeElement && ('blur' in document.activeElement)) {
       document.activeElement.blur(); // Unfocus currently active document.
      }
    #348100

    PaulLeBlanc
    Participant

    Thanks Octavio,
    I had poreviously tried that and put it as he suggested in: “within the pre-submit form function of the page with the form”. This did not work for me – probably because I was not changing pages!

    I now placed the code in the “click” function of the button, “run javascript” and it worked.

    Thanks much.

Viewing 6 posts - 16 through 21 (of 21 total)
Reply To: Transition to next page leaves white box where keyboard was

You must be logged in to post in the forum log in