Blink Posted February 9, 2023 Share Posted February 9, 2023 Hi, Please help - I've added some javascript to a code block on a page in our website (site is not live so is password protected). The code has apparently been tested in SquareSpace by the supplier and they've confirmed it works - but I can't get it to work. No matter what I do the page is blank when I view it when logged out of admin. We are on a business plan. Any ideas - could it be a setting in our site that I need to change? This is the javascript: <script type="text/javascript"> window.onload = function () { var wd_iframeWin = document.getElementById("wd_ediary_iframe").contentWindow; wd_iframeWin.postMessage(JSON.stringify({"browser_url": window.top.location.href}), "*"); }; </script> <script src=https://ocucowebdiary.net/widget?key=08118c918c4fd5de15ffc2cfa337ebde&type=js&clear=1></script> Thanks Link to comment
Solution paul2009 Posted February 9, 2023 Solution Share Posted February 9, 2023 (edited) On 2/9/2023 at 10:53 AM, Blink said: I've added some javascript to a code block. The code has apparently been tested in SquareSpace by the supplier and they've confirmed it works - but I can't get it to work. The code is at fault. I recommend that you contact the supplier directly and ask them to help you resolve this. Edited February 10, 2023 by paul2009 About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥. Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links. Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional. Link to comment
Blink Posted February 10, 2023 Author Share Posted February 10, 2023 Thanks I did go back to them in the end and they've sent new code which actually works! paul2009 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment