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.

how to load div content from external html file into an annotation popup

Home Forums Puzzles how to load div content from external html file into an annotation popup

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25170
    jaspixel
    Customer

    Hi,

    My brain is a little scrambled trying to figure the best and simplest way to do this please.

    My goal is to have ten annotations, each containing text and a modal popup button that creates an additional modal popup on top of the scene when clicked.

    I am trying to do this by making a div section of a separate html page load into the annotation/popup window. This div section I wish to load, I have also included a bootstrap modal popup button that requires css and java, which is also in the header section of the same separate html page.

    Now, I cannot figure which are the best puzzle elements to combine to make this work properly.

    Do I also have to load the java and css information stored in the separate html file in the puzzles as well?

    I want to have say ten different div’s with own id’s, each with different information in one separate html file. Each div will also contain a bootstrap modal popup button that links to an additional external html link/source.

    My thinking is this will also make it easier to edit and style all the annotations in one place as I go forward, instead of having to edit each puzzle element for each of the ten different annotations.

    Any tips greatly received for a puzzle guide please.

    Many thanks,

    Jas :wacko:

    #25211

    You can create your annotation by separate html elements and them load then into the annotation dynamicaly. Like this:

    Attachments:
    You must be logged in to view attached files.

    Co-founder and lead graphics specialist at Soft8Soft.

    #25225
    jaspixel
    Customer

    Thanks so much Mikhail. I would have spent a month working that solution out :wacko:

    Much appreciated.

    Jas :good:

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