Skip to:
Content
Pages
Categories
Search
Top
Bottom

$25 If you can help me (Enter/Post Update) (3 posts) – Repost

  • @johnkim1968

    Participant

    I’m tired of trying to find the answer, so $25 (paypal) if you can provide the code to enable a user to hit the “Enter” key instead of always pressing the “Post Update” button in the Activity Stream. If it works, will pay right away…

    Fyi… I wasn’t able to get the information in this link to work properly…

    http://www.htmlcodetutorial.com/forms/index_famsupp_157.html

Viewing 5 replies - 1 through 5 (of 5 total)
  • @gunju2221

    Participant

    I don’t need $25, but adding a key function would require a simple jquery attribute to the textarea.

    `key:’Enter’, `

    @johnkim1968

    Participant

    Thanks, can you tell me what I’m doing wrong? My code is below…

    `

    @

    `

    @gunju2221

    Participant

    No, your using it wrong. You will have to make a jquery function and apply it to the textarea.

    Maybe something in:

    `function onTestChange() {
    var key = window.event.keyCode;

    // If the user has pressed enter
    if (key == 13) {
    document.getElementById(“txtArea”).value =document.getElementById(“txtArea”).value + “n*”;
    return false;
    }
    else {
    return true;
    }
    }
    `

    than

    `<textarea name="whats-new" id="whats-new" onkeypress="onTestChange();"`

    Unfortunately, I’m not an expert at jquery. This function is not guaranteed to work and is untested.

    @johnkim1968

    Participant

    Well, I tried it, can’t get it to work. Where can I post as a paid job for Buddypress specifically?

    @andrea_r

    Participant

    jobs.wordpress.net

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘$25 If you can help me (Enter/Post Update) (3 posts) – Repost’ is closed to new replies.
Skip to toolbar