Embedding HTML - using iframe to reference stored html page

I have an html file saved in the 'assets' folder of my weebly directory that I would like to render on a standard page via an IFRAME element. 

However, when I embed the html code via a Weebly html element, nothing renders on the page.

HTML code:

<html>
<body>
<iframe height="600" width="100%" src="/images/buildingKeyspaces_verI_full.html"></iframe>
</body>
</html>

 

We seem to not be provided with a folder for general storage of site assets, so the options are the "assets" directory, which is meant for css pages, or the "images" directory. I tried both - none of which have worked.  

When I reference the 'assets' folder, the html code looks like:

<iframe src="/files/theme/buildingKeyspaces_ver1_full.html"></iframe>

Will Weebly's html interpreter not work on a static html page? I have no idea why this is not rendering...

FYI: I am choosing to render the html document in this fashion because there are a lot of stylings on the html (ipython notebook) and embedding the html on a page directly (via a Weebly html element) eats Weebly's navigation menu, and so rendering via an iframe was my solution.

5,625 Views
Message 1 of 17
Report
1 Best Answer
Square

Best Answer

Anything uploaded to the assets folder always has the same URL structure:

/files/theme/filename.extension

Is this on your live site right now?

View Best Answer >

5,614 Views
Message 18 of 17
Report
16 REPLIES 16
Square

Best Answer

Anything uploaded to the assets folder always has the same URL structure:

/files/theme/filename.extension

Is this on your live site right now?

5,615 Views
Message 18 of 17
Report

Hi Adam,

Yes this is on the live site.

Thanks

5,610 Views
Message 18 of 17
Report
Square

Your iframe test is working for me on your live site.  I see the contents of the HTML file you uploaded for your theme.

5,605 Views
Message 18 of 17
Report

Today, it seems that HTML (.html) files uploaded to under ASSETS are no longer being served as text/html, but text/plain. Therefore, I'm afraid no uploaded HTML file can be served correctly anymore.

5,091 Views
Message 18 of 17
Report
Square

Were you able to do that before, @hko? To the best of my knowledge, it was never possible to add an .html file to assets. If you want to use a page like that, create a new page template with your HTML code, then choose that page type for a regular page of your site.

5,077 Views
Message 18 of 17
Report


@Adam wrote:

Were you able to do that before, @hko? To the best of my knowledge, it was never possible to add an .html file to assets. If you want to use a page like that, create a new page template with your HTML code, then choose that page type for a regular page of your site.


I'm absolutely posibitive that until 2017-4-23 PST, I have been able to upload .html to uder ASSETS, and Weebly has been returing it as text/html Content-type. However, this is no longer the case, .html will be returned as text/plain, thus breaking many pages used to work before.

The begining of this thread discussed about how people reference uploaded .html, which is also the sign and proof of this works before, but not any more. For example, 

<iframe src="/files/theme/buildingKeyspaces_ver1_full.html"></iframe>

I think Weebly unintentionally changed nginx setup and accidentally blocks .html from being returned with correct Content-type. To render .html, the correct type should be text/html, not text/plain.

I believe it's either a bug, or a shift in product decision.

5,074 Views
Message 18 of 17
Report

Same issue - urgent fix required

5,070 Views
Message 18 of 17
Report
Square

I'll see if I can find out which it is and let you know, @hko. I think the simplest solution in the meantime is to just include the contents of your HTML page directly in the embed code element directly (sans <html>, <head>, and <body> tags of course).

5,050 Views
Message 18 of 17
Report

The simplest solution is for Weebly to revert back the changes.

Embed HTML using custom HTML component won't work in many cases, especially when Weebly template always requires to have header, navigation, and footer to be on the HTML page.

We need to upload HTML files without having header, nav, footer on the page, so it can be neatly iframe'd onto some other Weebly pages.

Pages are down. People like myself and @bellatui we need urgent fix. Please help!

5,040 Views
Message 18 of 17
Report

Re: Embedding HTML - using iframe to reference stored html page

Same issue - urgent fix required

2,220 Views
Message 18 of 17
Report

I confrim the issue. HTML files where working fine in iframe, now they attempt a download instead of displaying contents

2,191 Views
Message 18 of 17
Report

Hey there! Just checking in, if you haven't yet had the chance, let our support team know where this is happening, so we can take a closer look for you.

2,183 Views
Message 18 of 17
Report

This is exactly what is happening to us

2,161 Views
Message 18 of 17
Report

Has anyone found a solution for this ?

2,127 Views
Message 18 of 17
Report

3 years later ... sad

on hold for tech support for 17 minutes now.. also sad.

open chat window too....   no agent responding....  more sadness.

If you cannot support your product with the current rates, raise your rates and deliver.

1,505 Views
Message 18 of 17
Report

Also:  If you are going to appear to allow the upload of html files to assets only to mysteriously delete it, maybe throwing a message box that says html files in assets is no longer supported. or something....

also tech support queue update.....  25 minutes and counting...  only 3 or 4 songs in queue for hold music....  good tunes.... but so sad.

1,503 Views
Message 18 of 17
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.