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.

Get data from HTML

Home Forums Puzzles Get data from HTML

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #74456
    jelteh
    Participant

    Hi there everybody.

    I have a setup in puzzles that is currently not working as I had hoped.
    Context: I have a ” input” html puzzle where people can adjust the width of the object.
    Now I want to get the width of their input and multiply it by 19,5 for the proper pricing.

    This is the puzzle I have set up, but it does not work. It seems like it is not updating whenever the input is changed. I have already tried to get a ” procedure” puzzle in the ” on event of change” puzzle for that param. Can anybody help out?

    Attachments:
    You must be logged in to view attached files.
    #74459
    David Duperron
    Customer

    You should try the “convert to number” puzzle (in the text puzzles) on top of your html “get text content”. As it is now you are trying to perform an operation between text and number, and you will get an error (NaN or something like that).
    It all depends on the type of data your get from your request. If it is text you might get into troubles! ;)

    #74462
    jelteh
    Participant

    Hi David,

    Thank you so much, I applied your feedback. At first it still did not give me an updated value. but then I switched the “get textcontext” to a “get value” puzzle and now it is working fine!

    Thanks.

    #74573
    David Duperron
    Customer

    Great!
    And yes: “get value” is for HTML elements that have a “value” property, like inputs, options, select, etc…

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