Code, Why won't this code work? |
Code, Why won't this code work? |
calico |
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? |
calico |
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.
|
pandy |
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.
|
Lo-Fi Version | Time is now: 26th April 2024 - 08:29 AM |