Embed javascript in a Discourse post?

AI-generated summary

Embedding JavaScript in a Discourse Post

Mark_Schmucker is trying to embed a Knack online database app in a Discourse post. Knack provided a JavaScript code snippet to paste into a site or blog, but when Mark_Schmucker pasted the code into his Discourse post, it only displays “Loading…” and does not load the content. This issue persists even after whitelisting the domain on his own forum.

Is it possible to embed javascript in a Discourse post? I’m using Knack 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...
1 Like

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