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.

Change background image from opened file data

Home Forums General Questions Change background image from opened file data

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #70297
    rodrigogama
    Participant

    Is there a way to change the background image to one uploaded by the user? When I use the “loaded data” parameter, nothing happens, but when I use a random URL of a hosted image, it works. Is there a way to get the URL of the asset loaded with “loaded data”?

    • This topic was modified 9 months, 2 weeks ago by rodrigogama.
    Attachments:
    You must be logged in to view attached files.
    #70322
    kdv
    Participant

    https://www.soft8soft.com/docs/manual/en/puzzles/HTML.html#open_file

    You can’t use opened file data without opening some file first :unsure:

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #70344
    rodrigogama
    Participant

    Thank you for your response! But I’m already opening the file outside this procedure.

    Attachments:
    You must be logged in to view attached files.
    #70346
    kdv
    Participant

    Wrong syntax – wrong result. Should be this way

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #70351
    rodrigogama
    Participant

    It works! thank you :)

    #70645
    visualizer
    Customer

    The custom image demo from app library already exists for similar function.
    What different you were trying to do?

    #70684
    kdv
    Participant

    The difference is just in syntax. What can be used “as is” in the replace texture puzzle cannot be used without url(' ') for CSS styles.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

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