The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Code, Why won't this code work?
calico
post Jan 23 2017, 05:31 PM
Post #1





Group: Members
Posts: 5
Joined: 23-January 17
Member No.: 26,279



Hello,

When I use the following HTML code it works just fine:

<script type="text/javascript">
boatload_puzzles_format = 'Landscape';</script>
<p>Loading <a href="https://www.boatloadpuzzles.com/playcrossword">
crossword puzzle</a>. One moment please.</p>
<script type="text/javascript"
src="//www.boatloadpuzzles.com/Crossword.js"></script>

But when I place this code within my Word Press site I get errors. Does anyone know what is going on here with the code?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
calico
post Jan 24 2017, 08:31 PM
Post #2





Group: Members
Posts: 5
Joined: 23-January 17
Member No.: 26,279



I genuinely appreciate everyone's input. I feel a little stupid, but apparently the problem was that for security reasons Word Press does not allow single page java script. I'm sure you can build a work-around into the site, but I just downloaded a plugin to allow for the use of javascript.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jan 24 2017, 08:43 PM
Post #3


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,731
Joined: 9-August 06
Member No.: 6



Fact remains it didn't run locally either - until I removed that block. Peculiar.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 08:29 AM