Question:
Hi gang! We make a product that has an “embed in your website” feature. Need advice on how to make it work here.
It works great on plain old HTML sites. I’m unfortunately a little baffled at how to translate it into wix & the variety of developer platforms/frameworks/etc proprietary to wix.
Our “embed” feature can be used in either of two ways:
- “iframe method”: Dump an
<iframe>
, pointing to our hosted url, on your page; or - “script method”: Dump a
<div id="some-special-id /><script src="some-url"></script>
tag on your site
The challenge: We want our wix customers to be able to embed our product without extra scrollbars. In other words, the flow of the page should just have a single (master/document-level) scroll bar). T
Our ideas:
<iframe>
method: In plain old HTML, an iframe can only have a fixed height (say600px
or100%
or100vw
). Embedded javascript that is a peer of this iframe could dynamically resize the height of this iframe after content layout.- Wix-specific challenge: Not sure we can embed an iframe and a script together as peers.
<script>
method: In plain old HTML, our script populates the special div with content and everything is laid out inline.- Wix-specific challenge: It seems like
<script>
embeds are constrained to a wix-managed “sandbox” iframe, so we’re back to problem 1.
- Wix-specific challenge: It seems like
The question: What’s the best way to achieve this on Wix? Thank you!