# Embed javascript in a Discourse post?

**URL:** https://meta.discourse.org/t/embed-javascript-in-a-discourse-post/137845
**Category:** Marketplace
**Created:** [January 6, 2020, 5:16am UTC](https://meta.discourse.org/t/embed-javascript-in-a-discourse-post/137845 "2020-01-06T05:16:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mark\_Schmucker](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mark_schmucker/32/124810_2.png) [@Mark\_Schmucker](https://meta.discourse.org/u/Mark_Schmucker)
#### Post date: [January 6, 2020, 5:16am UTC](https://meta.discourse.org/t/embed-javascript-in-a-discourse-post/137845/1 "2020-01-06T05:16:50Z")

</div>

Is it possible to embed javascript in a Discourse post? I’m using [Knack](https://www.knack.com) for an online database app and would like to display it in a Discourse post for legacy reasons. Knack says “copy and paste the following code snippet into your site or blog”:

`<script type="text/javascript">app_id="5e056206fa44aa00xxxxxxxx";distribution_key="dist_4";api_domain="knack.com";</script><script type="text/javascript" src="https://loader.knack.com/5e056206fa44aa00xxxxxxxx/dist_4/knack.js"></script><div id="knack-dist_4">Loading...</div>`

I’ve pasted that code below, and as you can see, it just says “Loading…”. The content does not require sign-in. I get the same result on my own forum even after whitelisting the domain.

Loading...

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [February 5, 2020, 9:41am UTC](https://meta.discourse.org/t/embed-javascript-in-a-discourse-post/137845/7 "2020-02-05T09:41:35Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
