Jump to content

Script Disabled

Go to solution Solved by paul2009,

Recommended Posts

Hi, I am trying to  add an "Appfolio vacancy listing widget" into my new Squarespace page that is currently being built. I copy and pasted the HTML provided by Appfolio into a "code" block. And it says "Script Disabled." If I try pasting it into just a normal content block, nothing happens. 

Any ideas???

Here is the javascript code:

<script type='text/javascript' charset='utf-8'>
  document.write(unescape("%3Cscript src='" + (('https:' == document.location.protocol) ? 'https:' : 'http:') + "//prp.appfolio.com/javascripts/listing.js' type='text/javascript'%3E%3C/script%3E"));
</script>

<script type='text/javascript' charset='utf-8'>
  Appfolio.Listing({
    hostUrl: 'prp.appfolio.com',
    //propertyGroup: 'My Group Name',
    themeColor: '#676767',
    height: '500px',
    width: '100%',
    defaultOrder: 'date_posted'
  });
</script>
 

 

Link to comment
10 hours ago, tuanphan said:

In Code Block where you inserted, DO NOT check Display Source

Hi, I'm having the same exact issue.  tuanphan - I tried to uncheck Display Source, but you're not able to if javascript is selected as the type in the dropdown.  If I change the type to HTML, I can uncheck Display Source, though.... Any ideas?

Screen Shot 2020-04-04 at 11.25.36 AM.png

Link to comment
  • 1 year later...
  • Solution

You'll often see this message if you have a code block and you've added a script to it. The 'Script Disabled' message is Squarespace's way of explaining that Code Block scripts will not run when you are logged in to the website. It's a security feature that is designed to protect your site editor from code that may break it.

To see the code in action, visit your site in an incognito or private browser window without logging in to the site. You should then see what your page looks like to visitors, which may be slightly different than in the preview window. If your site isn't live yet, you may see a  'Private Site' message when you try to view your site. If you do, you'll need to follow one more step - to set a site-wide password that you can use to view the site without logging on.

Did this help? Please give feedback by clicking an icon below  ⬇️

Edited by paul2009
edited for clarity

About me: I'm Paul. A SQSP User for 18 yrs, I've been a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own 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 fuels my work.

Book paid help with domains: Connect a GoDaddy domain. Connect a Squarespace Domain. Domain assistance

Link to comment

The answer above from Paul is generally the most accepted answer, however. In my own experience, I just enter the code, script, or embed and 'save'. Then refresh the page and it works. I must have something in my browser settings because maybe this method doesn't work for some users.

Link to comment
  • 11 months later...

Hi, 
I am looking for help on an issue with my javascript that was entered in the "code".  It had worked for years. 

But, recently I was updating it and I put the whole page offline. When I went to "enable" page. The page worked but the script does not. I have gone over and over and I can't get it to work. 

When I am in edit mode - it says "Script Disabled" which is what used to happen but would work once the page was enabled. 

Any ideas or comments would help. 

Thanks!
C

Link to comment
  • 3 months later...

Site URL: https://www.thecruiseco.com

Good morning all,

                                 I have notice that I have "Undefined" in my drop down menu on homepage search element. I also see "Script Disabled" by the Search element also when I go to edit mode . Its on every field.  How to I remove  "Undefined" that from the dropdown field and remove "Script Disabled".   Your help and advice is much appreciated.  Thank you.

                                  

Screenshot 2022-08-27 085825-scripted-disabled.png

Link to comment
17 hours ago, thecruiseco said:

Site URL: https://www.thecruiseco.com

Good morning all,

                                 I have notice that I have "Undefined" in my drop down menu on homepage search element. I also see "Script Disabled" by the Search element also when I go to edit mode . Its on every field.  How to I remove  "Undefined" that from the dropdown field and remove "Script Disabled".   Your help and advice is much appreciated.  Thank you.

                                  

Screenshot 2022-08-27 085825-scripted-disabled.png

It is default message in editing mode, no need to care it. & no way to rename/remove that text

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 3 months later...
On 12/12/2022 at 3:35 PM, Carlie_P said:

When I add the HTML code I get the message script disabled. Can you help please

Please see the answer above.

About me: I'm Paul. A SQSP User for 18 yrs, I've been a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own 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 fuels my work.

Book paid help with domains: Connect a GoDaddy domain. Connect a Squarespace Domain. Domain assistance

Link to comment
  • 6 months later...

Hi, 

I have a similar problem and I have integrated the code (see below) of our external service provider so that the created online offer is displayed on our website. However, when I load the page, only a box appears (see screenshot) and the online offer does not load. When I load the page a 2nd time, it then appears.

What is the reason for this and how can I fix the error?

Thanks & best,

Claudia

 

<html>
<body>

<div id="iframediv">
<h3 class="text-center">Angebote</h3>
<iframe id="meineReiseangeboteIframe1"></iframe>
</div>

<script
src="https://www.paxconnect.de/js/meinereiseangebote_iframe_v1.1.0
.js"></script>
<script>
(function() {
initMeineReiseangeboteIframe('meineReiseangeboteIframe1',
'MTSP-5813?supressCookieConsent');
})();
</script>

</body>
</html>

 

image.png.4f61df6bf52b9c39f769f3efb6044677.png

 

Link to comment
4 hours ago, Camasu said:

when I load the page, only a box appears (see screenshot) and the online offer does not load. When I load the page a 2nd time, it then appears.

This is an Ajax Loading issue on your Brine-family template. Please see the guide I wrote:
Why does Squarespace code only work on refresh?

Did this help? Please give feedback by clicking an icon below  ⬇️

Edited by paul2009

About me: I'm Paul. A SQSP User for 18 yrs, I've been a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own 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 fuels my work.

Book paid help with domains: Connect a GoDaddy domain. Connect a Squarespace Domain. Domain assistance

Link to comment
  • 10 months later...

Apologies, I'm sure this has been asked before but I couldn't find anything to help.

I am adding a code block and pasting in the HTML from Beds24 widget creator but it doesn't seem to be working. In the block, it says "this block contains embedded scripts. Embedded scripts are disabled while you're logging in and editing your site." 

I have tried viewing the site from an incognito window after adding the code but it's just blank spaces.

Any help would be hugely appreciated.

Embedded Script Disabled.png

Link to comment
31 minutes ago, Hatty said:

Any help would be hugely appreciated.

Could you share some details including your website URL, location of this embed, and the embed code that you are using? Thanks!

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Hey Ziggy, 

URL: https://oleander-saxophone-xe53.squarespace.com/
Location of the embed should live:

Homepage (under "Book direct & your first drink is on us") and on the Stay with Us page

This is the full HTML generated code: 

<!-- bookingWidget requires jQuery and jQueryUI --> <!-- Include the following line ONCE ONLY on the page, preferably in the document head --> <script src='https://media.xmlcal.com/widget/1.00/js/bookWidget.min.js'></script>

^ I have included this in the header section of the Code Injection area under Settings
Here's the rest: 

<!-- Place this div on your page where you want the widget to show -->
<div id='bookWidget-24808-44580-0-1715059087'> </div>
<!-- The following will initialize the widget in the above div -->
<script>
jQuery(document).ready(function() {
jQuery('#bookWidget-24808-44580-0-1715059087').bookWidget({
propid:44580,
alignment:'center',
availableColor:'#ffffff',
availableBackgroundColor:'#c7de9d',
buttonBackgroundColor:'#a99888',
buttonTitle:'Check Availability',
color:'#2d3d33',
dateFormat:'dd/mm/yy',
formAction:'https://beds24.com/booking.php',
pastBackgroundColor:'#c8c8c8',
requestColor:'#2d3d33',
requestBackgroundColor:'#e8e1fd',
unavailableColor:'#959494',
unavailableBackgroundColor:'#e98d8d',
weekFirstDay:1,
widgetLang:'en',
widgetType:'BookingStrip'
});
});
</script>

(I've left out the direction lines)

 

Any ideas where I'm going wrong?

Link to comment

I can't see any issues, have you tried contacting the provider of the widget?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.