Javascript
What kind of Javascript is allowed to be used with Brizy cloud.
I've had previous issues with a self updating footer. Can Brizy provide some clarity about this?
-
Hi Ray,
Thank you for contacting us.
I assume that you are referring to a function that automatically displays the date on your website.
We have a solution on this link: https://support.brizy.io/hc/en-us/community/posts/15294447509393When the embed element is used and a <script></script> tag is inserted containing a document.write() statement, the editor is replaced with the content specified within the document.write() statement. This can be problematic for page builders like Brizy that use Iframe solutions for their web-based editors. To resolve this issue, the script needs to be modified to an alternative script that achieves the same result without relying on document.write().
If this doesn’t answer your question, please provide us with the JavaScript code snippet that you have placed in the footer of your website, we can attempt to reproduce the issue.
I am looking forward to your response.
Best regards,
Ariel H.0 -
Ariel
Thank you, but I was inquiring generally in an attempt to try and avoid future problems such as the date and footer issue that I had.
So is the "document.write()" statement the only issue? Or are there other JavaScript statements to avoid?
Regards
Ray
0 -
Hi Ray,
Thank you for the update.
I am not aware of any other specific JavaScript statements that need to be avoided. In addition, we cannot guarantee that all custom scripts will work seamlessly with Brizy.
Custom scripts are third-party code, and integrating JavaScript into Brizy can carry some risks and potentially result in unexpected outcomes. We highly recommend adding and testing your scripts on a staging environment before implementing them on your production site.Best regards,
Ariel H.0 -
That's good to know. Scripts that I would use would generally be simple insertions such as the alternative script for date in footer.
Just to add to your advice for others: I would create a duplicate section / block (or duplicated project as staging) just in case, as the footer date issue was not removable unless you deleted the section / block. As reported in the forum I had to seek correction from Brizy tech to avoid deleting the footer.
Thank you Ariel
0
Please sign in to leave a comment.
Comments
4 comments