Embedded code
Code that I copied from Calconic for a calculator is causing the page to repeatedly refresh. The code is replacing similar previous code that worked. It is being replaced due to replacement of website building agency.
-
Hi,
Thank you for contacting us.
Please share the Work Space and project URL from your Brizy Cloud Dashboard so we can investigate the issue further.
Additionally, include the code and inform us how it was embedded into your site so we can replicate the issue.
Best regards,
Ariel H.0 -
Workspace: Team Champions
Link: https://www.iamachampion.co/
Embedded code to replace:<iframe src="https://app.calconic.com/api/embed/calculator/63483d1881edf8001f9bf11c" sandbox="allow-same-origin allow-forms allow-scripts allow-top-navigation allow-popups-to-escape-sandbox allow-popups" title="Calconic_ Calculator" name="Calconic_ Calculator" height="4407px" scrolling="no" style="width: 100%; border: 0; outline: none;"></iframe>
<script>
(function() {
window.addEventListener("message",function(t){
var e="https://www.paypalobjects.com/api/checkout.4.0.141.js";
if(!document.querySelector('script[src="'+e+'"]')&&t.data&&"LOAD_PAYPAL"===t.data.action){
var a=document.createElement("script");a.src=e,a.async=!0,a.dataset={paypalCheckout:!0,noBridge:!0,state:"ppxo_meta",env:"production"},document.body.append(a)
}if(t.data&&"CALCONIC_UPDATE_HEIGHT"===t.data.action){
var s=document.querySelector('iframe[src="https://app.calconic.com/api/embed/calculator/'+t.data.payload.id+'"]');
if(s){s.height=t.data.payload.height}}
});
})();
</script>
New code:<iframe src="https://app.calconic.com/api/embed/calculator/66a06d2d77d5e9002a3fa46b" sandbox="allow-same-origin allow-forms allow-scripts allow-top-navigation allow-popups-to-escape-sandbox allow-popups" title="Calconic_ Calculator" name="Calconic_ Calculator" height="1135px" scrolling="no" style="width: 100%; border: 0; outline: none;"></iframe>
<script>
(function() {
window.addEventListener("message",function(t){
var e="https://www.paypalobjects.com/api/checkout.4.0.141.js";
if(!document.querySelector('script[src="'+e+'"]')&&t.data&&"LOAD_PAYPAL"===t.data.action){
var a=document.createElement("script");a.src=e,a.async=!0,a.dataset={paypalCheckout:!0,noBridge:!0,state:"ppxo_meta",env:"production"},document.body.append(a)
}if(t.data&&"CALCONIC_UPDATE_HEIGHT"===t.data.action){
var l=document.querySelectorAll('iframe[src="https://app.calconic.com/api/embed/calculator/'+t.data.payload.id+'"]');
for (let i in [...l]) {if (l[i]){l[i].height=t.data.payload.height}};}
});
})();
</script>0 -
Hi Frederick,
Thank you for your cooperation.
Unfortunately, not all scripts embedded into a Brizy page will operate as intended. Since the previous embed code is functioning correctly, you might want to reach out to the developers of the script to report the issue, so they can update or modify the code for you. Unfortunately, debugging third party code is beyond the scope of our support.
Apologies for any inconvenience this may cause.
Best regards,
Ariel H.0
Please sign in to leave a comment.
Comments
3 comments