Add third Party Script tag within Cornerstone

Is it possible to add a third party script tag to the body of a page with major recoding?

I tried inserting this script within a text block; as you expect it does not work properly.
I tried adding the script to the JS tab on the side with cornerstone. This works but the script displays below my footer.
Below is the link. Any suggestions or thoughts would be appreciated!

I can send the link in a secure note.

Hi David,

Thanks for reaching out.

This is not a javascript but HTML embed code, it just has the javascript code. It shouldn’t be added on the builder’s javascript section.

<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.14/iframeResizer.min.js"></script><iframe src="https://hello.dubsado.com:443/public/client/portal/5c366e8f20439b4dac69b730?iframe=true" frameBorder="0" width="100%" height="750"></iframe><script type="text/javascript">setTimeout(function(){iFrameResize({checkOrigin: false});},30);</script>

The javascript part of that code is just this

setTimeout(function(){iFrameResize({checkOrigin: false});},30);

And yes, it will appear on the footer since javascript are all loaded in the footer. Please add your code within raw element and test it again. And make sure to clear your caches before testing else it’s not gonna work due to cache.

Thanks!

I assumed you were talking about the Classic Raw. Seems to work great after changing this.

Thanks :slight_smile:

Hi David,

Yes, you can paste the javascript part on Classic Raw Content element or Content Area element.

Thanks,

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