mawilson

Forum Replies Created

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • in reply to: Enabling a button after text is entered without pressing Enter #6145
    mawilson
    Participant

    Not sure why, but when I try that I get an error message: [16:20:14] Uncaught SyntaxError: missing ) after argument list (PennController: 0). I’ve been messing around trying to fix it but can’t seem to figure out how.

    Sorry for all the trouble!

    Edit: removing the semicolon after _runPromises() lets the script run, but the function doesn’t appear to work.

    • This reply was modified 3 years, 8 months ago by mawilson.
    • This reply was modified 3 years, 8 months ago by mawilson.
    in reply to: Enabling a button after text is entered without pressing Enter #6142
    mawilson
    Participant

    Sorry, yeah, I just realized that it does that if you use a separate button press to delete the last character. But if you enter multiple characters and hold down backspace to delete everything, it won’t disable it until you press a key again. If there’s no good way around that edge case it shouldn’t be a problem anyway.

    • This reply was modified 3 years, 8 months ago by mawilson.
    in reply to: Enabling a button after text is entered without pressing Enter #6140
    mawilson
    Participant

    Thanks! That worked great! This isn’t crucial, but is there a way to disable the button again if they delete the text? It’s not a huge deal if there isn’t.

    in reply to: Centering textInput without centering text cursor #4984
    mawilson
    Participant

    Thanks, that works great!

Viewing 4 posts - 16 through 19 (of 19 total)