We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

“On Event” puzzle “submit” option?

Home Forums General Questions “On Event” puzzle “submit” option?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #46932
    GLiFTeK
    Customer

    Hi,
    Maybe I’m missing something, but when using an ‘input’ element, using ‘change’ or ‘input’ with the “on event” puzzle don’t help with delivering the input value.
    change will work.. but that means the input has to be different than any default value you give.
    i’d like the option of using the default field value that i supply.

    I’m looking for ‘submit’, and it’s not on the dropdown options list.
    I think this is very important.
    submit would be when enter is pressed after text is entered, OR if a default value is there and the only thing pressed is ‘enter’.
    Am i missing a different puzzle here?
    thanks

    #46973

    Hi,
    Please elaborate a bit what do you mean. When some change happens in the “input” element, either “change” or “input” get triggered and you can get your text via “target.value” property. If you create not a text input, but a checkbox, you might need to get the value via “checked” property (though having “target.checked” value would be handy, going to add this in our TODO list).

    As for “submit” it won’t be of any help to you, as this event should be triggered when the entire form (not a single input element) gets “submited” (for example to send data to the server). In case of the single input you better use “keydown” event and check whether the “key” property” is equal to “Enter” (see Keyboard Controls snippet in the stock Puzzles library).

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #47026
    GLiFTeK
    Customer

    Hi,
    I’ll try your solution.
    To clarify, I was looking for a method to execute the form input WITH a default parameter (value) already set in the field.
    Nothing works except for placing a space after the default input.. Then making code arrangements for having that space made. :good:

    #75031

    Finally, “submit” is now part of the “event” puzzle. See here.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #75058
    visualizer
    Customer

    GLiFTeK

    I think this new version of 4.7 pre2 is already equipped with this thing. You got it solved already I guess !

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.