dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: Pls help noob to make mobileKeyboard

  1. #1
    Join Date
    Oct 2017
    Posts
    3

    Pls help noob to make mobileKeyboard

    i am just a beginner, can you help me to creat normal mobile keyboard.
    like
    123
    456
    789
    *0#
    ty for any help!
    My javas code

    // index.js
    function generatePad(root) {
    var i, j;
    var keys = ["*", "0", "#"];
    for (i = 1; i <=9;i++) {
    keys.push(i.toString());
    }

    // generate Pad
    var counter = 0;
    var div_table = document.createElement("div");
    div_table.style.display = "table";

    for (i = 0; i < 4;i++) {
    var div_row = document.createElement("div");
    div_row.setAttribute("class", "row");
    for (j = 0; j < 3;j++) {
    var div_cell = document.createElement("div");
    div_cell.setAttribute("class", "cell");
    div_cell.innerHTML = keys[counter];
    div_row.appendChild(div_cell);
    counter++;
    } // j
    div_table.appendChild(div_row);
    } // i
    root.appendChild(div_table);
    } // end of function

    css code
    /* index.css */
    * {
    padding: 0;
    margin: 0;
    }

    body {
    font-size: 16px;
    font-family: Verdana;
    }

    div {
    font-size: 32px;
    padding: 5px;
    text-align: center;
    }

    .row {
    display: table-row;
    border-collapse: collapse;
    border: 1px solid #000;
    }

    .cell {
    display: table-cell;
    border: 1px solid #000;
    border-collapse: collapse;
    }

  2. #2
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    5,433
    When posting code please use the Forum BBCode tags as displayed in my signature.

    Second, it would be much simpler to make the framework for your dialer interface to use HTML but then again, mobile devices have a dialing pad already, so there is no real need to develop one, just use what is available.

    As for the other thing with mobile development, it is a framework that is for mobile devices you need and those types of questions go in the JavaScript Frameworks forum.
    --> JavaScript Frameworks like JQuery, Angular, Node <--
    ... and please remember to wrap code with forum BBCode tags:-

    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

  3. #3
    Join Date
    Oct 2017
    Posts
    3
    ok, sorry, didn't know that

  4. #4
    you are a beginner??? you write the coding very well,,,

  5. #5
    Join Date
    Oct 2017
    Posts
    3
    i take some classes it was my homework

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center