I am currently making a website that I am hosting with Google Drive. I finished coding the login GUI of my website and I went to go test it. The html file is in a public folder. I got the document id of the folder and went to the URL that hosts my webpage. But it doesn't render my html. Instead, Google just displays my code. How do I fix this?
Click here to link to my webpage
Okay, so I looked at the properties of my file on Google Drive. It said that the file type was plain text. I downloaded the file and then uploaded it again as an html file. I got the document ID and tried again. This worked. The problem was that Google saw a plain text document so that's what it rendered. I just needed to change the file type of the file. I solved my problem although I cannot logically make sense of why my file downloaded as an html file if on Google Drive it was a plain text format.
Related
Recently I designed a signature for a client.
The client then asked me to html it to him. I saw some video tutorials and I did it fine. I have the html file and the images in a separate folder.
When I preview it with Brackets editor, it shows me the desired result.
When I open the HTML from my Windows Explorer,
the result is also the same as in Google Chrome.
My main problem and question is:
How will I be able to send the HTML to my client without sending the HTML file and the images together.
I want him to be able to click only one file and preview it in Chrome and copy the code in his mail. Is there a way to compress the HTML file and the images from my folder and create a file only that will have both?
Thanks in advance.
I have made several attempts to host an .ico file in Google Drive to use as a favicon for a Google Web App with no success. It just seems a little strange that there would be a .setFaviconUrl() method without a way to host .ico files.
So far I have tried:
To link to a publicly shared .ico file on Google Drive with https://drive.google.com/uc?id=IMAGEURL
Inserting an .ico file in a public Google Site and linking to the file's url
Both attempts give me the error:
The favicon icon image type is not supported.
Took me a while to figure this out, if anyone needs this in the future.
You need to trick .setFaviconUrl() into thinking the image is a png without altering the link to the file. It seems like it checks the last 3 characters, so adding '&format=png' to the end of the download link was able to fix the issue for me.
Example: https://drive.google.com/uc?id=IMAGEID&export=download&format=png
How can I preview an HTML file on Google Drive? I did a bit of research and it seems hosting HTML has been deprecated by Google in 2016. I tried to open the direct link of the HTML file but it downloads it and doesn't display it. Any workaround ?
Thanks :D
Ironically Google, a company built on html, still has no good solutions for handling .html files on Drive: I'm web developer! If you create a .html file within any text editor (Mac, Linux or MS) and save it with a .html extension (e.g. test.html), that file is now a Browser file, not a text or Doc file. G-Drive was created to be a cloud replacement for MS Office suite of products (Word, Excel, and so forth). It will even save a .txt (or text) file, and display it back as such.
However, a file dropped in Drive (via the Chrome browser) with a .html extension; if you simply click on it, it will be opened by/in Docs, and displayed therein as a web page (and poorly too, since it cannot connect to the styling of the .css file). If you right-click on it, and select "display", it will give a similar display only without opening it in Docs. If you right-click and select "download" it will download in .doc format. Yes, worthless! I copy the html, code and all from the file on my PC, and paste it into a blank Doc file, which is OK for a backup of that file, plus it will spell-check and all, but it is not an easy way to cloud save or sync. And, it cannot open the browser to view it, because it is internal to (or already inside of) the browser. The only accurate way to preview a .html file, is for the file to be external to a browser (any web browser), and then opened inside or with that browser.
To repeat: If you simply click on it, it will be opened by/in Docs, and displayed therein as a web page (and poorly too, since it cannot connect to the styling of the .css file). If you right-click on it, and select "display", it will give a similar display only without opening it in Docs.
I am not exactly sure what you mean by display. If you just want to preview a file in google drive open it and see its contents then the only types are
PDF, Microsoft Office file, audio file, or photo.
Just double click your html file you can preview it in drive.
please see View and open files
If you are actually talking about web hosting a html file then. Hosting of HTML files from within Google drive was Deprecating in August of 2015 and shut down completely in August of 2016 so you can no longer host HTML files directly via Google drive Please see Deprecating web hosting support in Google Drive
Alternative would be to use Google Domains to host a site that way this option is not free as far as I know.
I'm trying to share a Jupyter Notebook containing some regresison results (in an IFrame) with my university lecturer because I need to ask him something. The regression results are in a HTML file, generated from the stargazer library in R. The notebook can be viewed here: http://nbviewer.jupyter.org/urls/dl.dropbox.com/s/vnt875efjwqbi2g/regressions.ipynb?flush_cache=True. Is there any way to render a local HTML file in the notebook without it breaking for other people? I have tried using nbconvert to convert my notebook to HTML, but though I can see the IFrame properly, others cannot.
The folder is synced to Dropbox, and currently what I see in the IFrame is just this error:
Error (403)
It seems you don't belong here! You should probably sign in. Check out our Help Center and forums for help, or head back to home.
Of course, I could link my lecturer to the HTML file that contains the results, but that is not optimal because he has to jump between the nbviewer page for the code and the results page for the results.
I've figured out a workaround. Since the HTML results file is hosted on Dropbox, this answer explains how to access the contents of the HTML file directly from a Dropbox shared link. I can then display the IFrame using the Dropbox link instead of my local file.
I have a website that is a bunch of standard HTML4 files. It has a Dreamweaver template file but each file has the template already put into it.
Is there an easier way to convert a website from HTML files to Google Sites than to copy the source code of each file and create a page on Google Sites with that source code?
I think this FAQ can be helpful to understand what Google Sites exactly is, what it can and what it can't.
Unfortunately Google Sites isn't flexible and powerful as it's wanted.
Depending of your needs you could try to use Blogger or Google App Enginge. You could search simple CMS for GAE and try to export your Dreamweaver project to GAE hosting.
If it will help you, please inform me. I think it's interesting to do.
If you have a local working copy of a css/java website.... all you need to do is copy the website folder with all the website files to a google drive folder that is shared publicly. Then get the hosting link for your websites index.html from the detail description of the index.html file that is in the folder that is now on google drive. Open your google site and add a full page iframe using the hosting link to your website index.html file as its source.
the local website you created is now live on google sites as your website
If Google sites is still like it was about two years ago when I used it, that is the only way. Its sad, but Google sites is not supposed to be for doing anything past basic html.