iPad related questions

iPad related questions

_jthomas_jthomas Posts: 75Questions: 0Answers: 0
edited September 2012 in DataTables 1.8
1. Using jEditable and tab key is working great in desktop/laptop browsers. Captured the keypress and event code 9. How can I do the same thing in iPad to enable the *next* key?
2. I got a mouseover tooltip thing - I guess mouseover is not supported in iPad right? Are there any other alternatives?

Please advise and thanks very much

Replies

  • _jthomas_jthomas Posts: 75Questions: 0Answers: 0
    Just adding the current working code in desktop/laptop browsers

    [code]
    $('#example tbody td').live('keypress', function (evt) {
    console.log("keypress: " + evt.keyCode);
    if( evt.keyCode == 9 && $('input', this).length > 0) {

    /* Submit the current element */
    $('input', this)[0].blur();
    /* Activate the next element */
    $(this).next().click();
    return false;
    }
    } );
    [/code]
  • _jthomas_jthomas Posts: 75Questions: 0Answers: 0
    Okay - solved it in iPad and desktop. Removed the above function.
    Added a hidden text box in the next column. That will enable the "Next" key in iPad. Added the blur event handler.

    Here is the code
    for jEditable
    [code]
    "placeholder" : ""
    [/code]

    [code]
    $('#example tbody td').live('blur', function (evt) {
    $(this).next().click();
    });
    [/code]
This discussion has been closed.