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

Javascript Broke Editing Function


DevinM

Question

I added a <script> tag to my site using the code block. The script was automatically generated by Caspio DataPages to display portions of my database. The content displays just fine and functions as needed. The site works and navigates fine. However, I cannot edit the pages that have the Javascript on them. When I go to those pages, there is no edit button to click to enter editing mode. Pages without the code block added can be edited, but not the pages with the Javascript added via a code block.

Not sure if it is important, but I am currently in a free trial (want to make sure this will work before purchasing) and after entering the code it prompted me to enter Safe Mode.

Any help is much appreciated.

Link to post
  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular Posts

Do you have a link that you can share as its hard to give an answer without really seeing the code that you’ve added.    The only thing that I can think off the top of my head is to check that

4 answers to this question

Recommended Posts

  • 0

Similar problem here. And closing </script> is definitely there.

The page will load normally if not logged into Squarespace and Javascript is not returning any error.
However, it it not possible to edit that page anymore...

The inspector console when logged in does return some errors:

 
Quote

 

Unknown node type (tagName: DIV, class: undefined, id: yui_3_17_2_1_1617200706007_6507)
 
Unhandled Promise rejection: this.preview.document is undefined ; Zone: <root> ; Task: Promise.then ; Value: TypeError: this.preview.document is undefined

 

 


I found other related questions here and here, but they do not have any solution either.

Edited by Centerliner
Add more information
Link to post
  • 0
On 3/31/2021 at 9:43 PM, Centerliner said:

Similar problem here. And closing </script> is definitely there.

The page will load normally if not logged into Squarespace and Javascript is not returning any error.
However, it it not possible to edit that page anymore...

The inspector console when logged in does return some errors:

 
 


I found other related questions here and here, but they do not have any solution either.

Can you share link to page where you have problem? We can check easier

Link to post

Create an account or sign in to comment

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


×
×
  • Create New...