Php codeing for keyboard Display

Discussion in 'PHP' started by 143mahi, Jun 27, 2012.

  1. #1
    Hi Friends
    I am try to build a virtual keyboard in PHP. My task is when i am enter in text

    box(Focus into text box) i want to display the virtual keyboard in screen when the user

    enter the keys through the virtual keyboard those can enter(display) in Text box.when the

    user is leave the text-box(text box focus-out) at that time the virtual key board will

    hidden.please help me in this task? please send the supported code as soon as possible.

    Thanks in Advance.....
     
    143mahi, Jun 27, 2012 IP
  2. akhileshbc

    akhileshbc Active Member

    Messages:
    98
    Likes Received:
    1
    Best Answers:
    5
    Trophy Points:
    75
    #2
    Hi,
    There is no need of PHP for this task. Since this would be done at the client side, you need to make use of the client scripting languages. ie, JavaScript. Use JavaScript or it's easy to use library like jQuery.

    Using jQuery, you can get this task done and can even provide rich interactivity, say fading-out the virtual keyboard, etc.

    Hope this helps :)
     
    akhileshbc, Jun 27, 2012 IP
  3. 143mahi

    143mahi Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi,
    I am developing my won product for that this is one concept so i am trying to develop this task so please help me.

    The task is we have text-boxes if user can focus on text-box the Virtual keyboard can be visible rest of times it will invisible as like touch mobile feature

    Please provide source code for it... thanks in advance
     
    143mahi, Jun 27, 2012 IP
  4. akhileshbc

    akhileshbc Active Member

    Messages:
    98
    Likes Received:
    1
    Best Answers:
    5
    Trophy Points:
    75
    #4
    Please go through the manual of jQuery, you will get it.

    I made the following code to give you the base idea:

    jQuery
    
    $(document).ready(function(){
        $('#mybox').focus(function(){
            $('#vkeyboard').show('slow');
        });
        $('#mybox').blur(function(){
            $('#vkeyboard').hide('slow');
        });
    });​
    
    Code (markup):
    HTML
    
    <input type="text" id="mybox" />
    
    <br />
    
    <div id="vkeyboard" style="display:none;">Virtual keyboard with letters here...</div>​
    
    Code (markup):
    You can test it online in here: http://jsfiddle.net/Rs4UD/
    Click on the textbox and then click somewhere outside the textbox. You could see the appearing and disappearing of the text(in place of that, you should add more divs/spans for the letters and then add listeners for it, etc).
     
    akhileshbc, Jun 27, 2012 IP
  5. 143mahi

    143mahi Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Ho Thank You,
    its working properly then how to change the lower case letter and upper case letters in keyboard...
     
    143mahi, Jun 27, 2012 IP
  6. akhileshbc

    akhileshbc Active Member

    Messages:
    98
    Likes Received:
    1
    Best Answers:
    5
    Trophy Points:
    75
    #6
    Please spend a few hours to understand the basics of javascript and then have a look at the jQuery's documentation.

    For reference:
     
    akhileshbc, Jun 27, 2012 IP
  7. 143mahi

    143mahi Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Ho Thank You for your help i got the output
     
    143mahi, Jun 27, 2012 IP
  8. akhileshbc

    akhileshbc Active Member

    Messages:
    98
    Likes Received:
    1
    Best Answers:
    5
    Trophy Points:
    75
    #8
    Glad to know that it is sorted out.

    Wish you good luck.
     
    akhileshbc, Jun 27, 2012 IP
  9. webservsol

    webservsol Greenhorn

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #9
    webservsol, Jun 27, 2012 IP
  10. 143mahi

    143mahi Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Hi,

    One main thing we forget ya its working for feding-in and out but we want the keyboard concept for shoe hidden is ok but the user can click the virtual key that value can assign to the text-box its our concept upto know we can don it for show and hidden as like i can able to display the virtual key board and hide as the same but the user can click the button in virtual keyboard how it can assign as in text box?


    Thanks in Advance
     
    143mahi, Jun 27, 2012 IP
  11. 143mahi

    143mahi Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Hi,

    One main thing we forget ya its working for feding-in and out but we want the keyboard concept for show hidden is ok but the user can click the virtual key that value can assign to the text-box its our concept upto know we can don it for show and hidden as like i can able to display the virtual key board and hide as the same but the user can click the button in virtual keyboard how it can assign as in text box?


    Thanks in Advance
     
    143mahi, Jun 27, 2012 IP
  12. akhileshbc

    akhileshbc Active Member

    Messages:
    98
    Likes Received:
    1
    Best Answers:
    5
    Trophy Points:
    75
    #12
    You can make use of the click event. Try reading the above said sites.
     
    akhileshbc, Jun 27, 2012 IP
  13. 143mahi

    143mahi Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Its ok please give the source code for the letter "JAVASCRIPT" as a key when user can press those words it can display in text-box its enough for my task please help it.. exp : user can click like(JAVA,SCRIPT,JAVASCRIPT) this.
     
    143mahi, Jun 27, 2012 IP