PricingBlog

Embedding HTML or Java onto a page?

  • asherjmort_02935-1223109416295993405

    Ketchum17

    1 year ago

    Anybody know how I'd embed HTML within a div on a page? I know using iframe is an option for a full webpage, however, the page I'm trying to embed requires additional HTML in order to work properly. Here is the documentation: https://botpress.com/docs/cloud/webchat-customization/bot-in-div/.

    Another option for the page I'm trying to embed would be to use Javascript: https://botpress.com/docs/cloud/webchat-customization/full-screen-bot/. I'm just not sure where'd I'd place this within Toddle in order to get it to work.

    Are either of the methods possible within Toddle?

    Any help is greatly appreciated!
  • max.kayr-1223141174852845608

    Max

    1 year ago

    Hey @Ketchum17 ! The first version is pretty easy. You just copy the iframe code with CRTL+C (or CMD+C), go to toddle, select the div you want to have the chat in in the left panel and press CTRL+V (or CMD+V). 🙂
    1223141174089355364-image.png
    1223141174492266546-image.png
  • max.kayr-1223141843919962213

    Max

    1 year ago

    I don't think you would need the second version as you can build a full screen div easily in Toddle. But maybe I don't understand the use case
  • asherjmort_02935-1223318926251786332

    Ketchum17

    1 year ago

    Hey Max! Thank you, huge help!
    👍1