# How to Embed Code

**URL:** <https://community.glideapps.com/t/how-to-embed-code/30679>\
**Category:** Ask for Help\
**Created:** [August 19, 2021, 1:41pm UTC](https://community.glideapps.com/t/how-to-embed-code/30679 "2021-08-19T13:41:27Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![profxeni](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/profxeni/32/24656_2.png) [@profxeni](https://community.glideapps.com/u/profxeni)\
**Post date:** [August 19, 2021, 1:41pm UTC](https://community.glideapps.com/t/how-to-embed-code/30679/1 "2021-08-19T13:41:27Z")

</div>

Hi,  
I would need to integrate an embedded code into a page within glide.  
The code looks like this:

`<script type="text/javascript" src="https://www.outdooractive.com/it/embed/220542040/js?mw=true&usr=3n7zo6&key=USR-KSG38FXK-EMWGM3WK-4OSSAGZU"></script>`

Is there a different way to allow Glide to interpret the snippet, or is it not possible? I have tried unsuccessfully with RT and Webview.  
Thanks in advance to those who will answer me!

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [August 19, 2021, 2:12pm UTC](https://community.glideapps.com/t/how-to-embed-code/30679/2 "2021-08-19T14:12:25Z")

</div>

May we know what this code is for? I don’t think it’s possible to embed JS for now.

---

<div class="post-metadata">

**Author:** ![profxeni](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/profxeni/32/24656_2.png) [@profxeni](https://community.glideapps.com/u/profxeni)\
**Post date:** [August 19, 2021, 2:14pm UTC](https://community.glideapps.com/t/how-to-embed-code/30679/3 "2021-08-19T14:14:52Z")

</div>

It is a route of an excursion with map, duration, etc.

---

<div class="post-metadata">

**Author:** ![Mark\_Turrell](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mark_turrell/32/26605_2.png) [@Mark\_Turrell](https://community.glideapps.com/u/Mark_Turrell)\
**Post date:** [August 19, 2021, 2:59pm UTC](https://community.glideapps.com/t/how-to-embed-code/30679/4 "2021-08-19T14:59:50Z")

</div>

You need to embed the iFrame with js into a web page (something you create ‘wherever’), then you use a webview to show your page.

But it might be tricky to get a parameterized url into your web page though!

---

<div class="post-metadata">

**Author:** ![PabloMFalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/pablomfalero/32/31166_2.png) [@PabloMFalero](https://community.glideapps.com/u/PabloMFalero)\
**Post date:** [August 19, 2021, 6:31pm UTC](https://community.glideapps.com/t/how-to-embed-code/30679/5 "2021-08-19T18:31:51Z")

</div>

I’ve done this with Mark before, you can use brizzy.cloud to embed the script and the use a webview as Mark siggested

---

<div class="post-metadata">

**Author:** ![profxeni](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/profxeni/32/24656_2.png) [@profxeni](https://community.glideapps.com/u/profxeni)\
**Post date:** [August 20, 2021, 2:56pm UTC](https://community.glideapps.com/t/how-to-embed-code/30679/6 "2021-08-20T14:56:49Z")

</div>

Thank you all for the response. The iframe suggestion is what I had tried, but I’m not very favorable to this kind of embedding, working in the cybersecurity field.  
The second system is an elegant way to get around the problem, but in my case is not good because the application that generates the snippet takes as reference the domain of my site.  
I hope that a valid method of code encapsulation is seriously considered to improve our webapps.

---

<div class="post-metadata">

**Author:** ![Benjamin\_Sabbah](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/benjamin_sabbah/32/19379_2.png) [@Benjamin\_Sabbah](https://community.glideapps.com/u/Benjamin_Sabbah)\
**Post date:** [May 16, 2024, 2:11pm UTC](https://community.glideapps.com/t/how-to-embed-code/30679/7 "2024-05-16T14:11:47Z")

</div>

Is it now possible to embed JS ? Do we have any updates on that topic ?

Thanks,

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [May 16, 2024, 2:57pm UTC](https://community.glideapps.com/t/how-to-embed-code/30679/8 "2024-05-16T14:57:25Z")

</div>

Depends…what are you trying to embed?

---

<div class="post-metadata">

**Author:** ![Benjamin\_Sabbah](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/benjamin_sabbah/32/19379_2.png) [@Benjamin\_Sabbah](https://community.glideapps.com/u/Benjamin_Sabbah)\
**Post date:** [May 16, 2024, 3:10pm UTC](https://community.glideapps.com/t/how-to-embed-code/30679/9 "2024-05-16T15:10:23Z")

</div>

A Stripe pricing table. Something similar to this :

 ![Capture d’écran 2024-05-16 à 17.12.12](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/e/5e19e654d0c66a154afb395d7488d807eed35350.png)

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [May 16, 2024, 3:45pm UTC](https://community.glideapps.com/t/how-to-embed-code/30679/10 "2024-05-16T15:45:41Z")

</div>

I think for something like that you’ll need to use the web embed. Looks like Stripe has a different version of the code wrapped in some html. If you already have a separate page built and hosted elsewhere, you can embed that. If not, you can put the code in a template column and use some javascript to convert the html and script into a datauri that you can then use in a web embed component.

Refer to this post for how to set it up.

> [@Instagram and glide combined](https://community.glideapps.com/t/instagram-and-glide-combined/50772/18):
>
> It’s possible. Both Jeff & I have tinkered with it. Essentially you just need to generate the HTML with a template, use JavaScript to URIencode that, and then use the URIencoded HTML in a web view component. The following JavaScript works: return `data:text/html;charset=utf-8,${encodeURIComponent(p1)}`;
