Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

Relborg

Member
  • Content Count

    10
  • Joined

  • Last visited

  • Days Won

    1
  1. I have read the documentation on how to load custom JavaScript into the developer site, such as jQuery. I have implemented it the way the documentation suggests: <script>window.jQuery || document.write('<script src="scripts/jquery-1.9.0.min.js"><\/script>')</script> Loading the JavaScript file that I have uploaded to my ‘scripts’ directory on the server. That returned an 404 error saying that the file doesn’t exist. Because it was looking under /index/scripts/.. which of course does not exist. Thus the documentation is wrong. I then went ahead and wrote this: <script>window.jQuery || document.write('<script src="../scripts/jquery-1.9.0.min.js"><\/script>')</script> Adding a ‘../’ infront of the referenced source. This stopped the 404 error meaning that the script does get loaded. But it’s not affecting anything on my page as expected? I'm starting to fail to understand the benefit of using the squarespace developer platform as it posses more errors than suggested solutions. Any help would GREATLY be appreciated!
×
×
  • Create New...