Jump to content

Embedding a HTML file into Squarespace page

Go to solution Solved by Beyondspace,

Recommended Posts

Hello,

I have created a data file in R, which I have exported to a HTML file. When I open the file locally, it works perfectly (it is a visual data map of research networks). 

The plan is to embed it on my website. I tried the following:

1. Copying and pasting the HTML code. This did not work, I just got an error (HTTP Error 400; problem accessing widget. Reason: file was invalid)

2. Uploading the HTML file to the Squarespace website, then using iframe embed code. This leads to the file automatically downloading when you go to the website link, and there just being an empty square on the website.

I saw that others were having similar issues in another thread, but it appeared to be resolved in the end for them. I tried their solutions but unfortunately I had no luck. 

If anyone could suggest anything, that would be much appreciated!

Screenshot 2023-06-23 at 5.30.52 pm.png

Screenshot 2023-06-23 at 5.31.30 pm.png

Link to comment
  • Solution
44 minutes ago, grainne said:

Hello,

I have created a data file in R, which I have exported to a HTML file. When I open the file locally, it works perfectly (it is a visual data map of research networks). 

The plan is to embed it on my website. I tried the following:

1. Copying and pasting the HTML code. This did not work, I just got an error (HTTP Error 400; problem accessing widget. Reason: file was invalid)

2. Uploading the HTML file to the Squarespace website, then using iframe embed code. This leads to the file automatically downloading when you go to the website link, and there just being an empty square on the website.

I saw that others were having similar issues in another thread, but it appeared to be resolved in the end for them. I tried their solutions but unfortunately I had no luck. 

If anyone could suggest anything, that would be much appreciated!

Screenshot 2023-06-23 at 5.30.52 pm.png

Screenshot 2023-06-23 at 5.31.30 pm.png

Could you try to upload the files to drive using this service and embed it as iframe block?

https://www.drv.tw/

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Great!!

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

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.