Navigation

    APPDRAG Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular

    REMINDER

    Please be respectful of all AppDragers! Keep it really civil so that we can make the AppDrag community of builders as embracing, positive and inspiring as possible.

    Insert HTML from back-end?

    Cloud Backend (Cloud DB, API Builder)
    2
    5
    328
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Thomas D last edited by

      I tried returning the HTML in RAW and then add the tag [DS3] but then it doesn't render.
      Do i need for format the tag specially?

      1 Reply Last reply Reply Quote 0
      • Wassim
        Wassim last edited by

        Hi, can you provide more context?
        I don't get what you're trying to achieve.

        T 1 Reply Last reply Reply Quote 0
        • T
          Thomas D @Wassim last edited by

          @Wassim

          Just returning HTML from an endpoint and adding it to a specific place on the site.

          1 Reply Last reply Reply Quote 0
          • Wassim
            Wassim last edited by

            Your endpoint should return a Table array with key value objects

            { 
            "Table" : [{
              "html" : "<div>hello</div>"
            }]
            }
            

            And in your front

            [DS3=html]
            
            T 1 Reply Last reply Reply Quote 0
            • T
              Thomas D @Wassim last edited by Thomas D

              @Wassim

              I'm doing that, but it's limited to 100KB per object string in the JSON.

              @Joseph-Benguira suggested that I retrieve the page and parse the tags manually and then return only the HTML as the page, so I guess I'll have no other choice than to do that.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post