How to access non-home page in Amplify - html

I'm trying to learn to use AWS Amplify. When I just use the index.html file it runs fine.
But when I try to access a non-home page via a link from the main Amplify page (on AWS) I get an error (below). All the code is just html. (I'm trying to keep it simple while I attempt to learn how to work with AWS Amplify.)
This file runs just fine.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>AWS Amplify Test</title>
</head>
<body>
</body>
</html>
But I cannot run the next file.
<html>
<head>
<meta charset="UTF-8">
<title>AWS Amplify Test: About</title>
</head>
<body>
</body>
</html>
The following file does not run. Instead I get this error message:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>9AE4WZ4KDMAXGAF0</RequestId>
<HostId>+Jk4OYPdxus7Nd/wT1vQ5Oi4bNRCUr56nzVjFiSlHxixpvJiFboB74A7258PCv4RUrSD8JIQPak=</HostId>
</Error>
I followed (I think) the same steps I used with the Index.html file: Run WinZip and copy it into the Amplify screen.
TWO QUESTIONS:
Why does this error occur and how can I fix it?
How, in general, can I have a simple html file with several files linked to it via menu options?
Thanks for any help. It will be much appreciated, while I stumble around as a beginner.

Related

How to create a download link when opening a file from local file system

We are shipping some docu stuff on a cd and to have a better overview over all the files, we want to provide an index of all files as html, that can be put on the cd. The idea is that the user can download the wanted files just like from any webpage.
The problem is, that I can open the pdf in the browser but i want the download dialog to pop up if i click the button so I added the download="some-name.pdf".
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Demo</title>
<base href=".">
</head>
<body>
Download file
</body>
</html>
Using this via webserver (http) seems to work, but I cannot get it to work from the local file system...
To reproduce, just store the snipped in a file, create a folder "files" next to it and put any pdf file with an .html extension and name it test.pdf. Then open the page in a browser like Chrome or FireFox. (I am on a mac, but i guess it is the same for Windows or Linux?!)
Any help would be appreciated.

How does my HTML file get access to my Javascript file via gh-pages?

I am currently having trouble understanding how gh-pages functions with file communication.
I currently have two files in my gh-pages branch on my github: bundle.js and index.html. When running this locally, index.html has access to bundle.js by moving through file paths. When running this online I have an issue getting index.html to be able to access bundle.jscorrectly.
1st attempt: I found the raw text through the URL: https://raw.githubusercontent.com/.... Unfortunately this does not work because there is a MIME type error.
2nd attempt: I found that there is another source for raw text that doesn't have the MIME type error, the URL is: https://cdn.rawgit.com/.... Unfortunately this does not work because cdn.rawgit.com does not update itself.
3rd attempt: I have found that I can use the same method as my 2nd attempt, but I can use a specific commit to access the correct cdn.rawgit.com/.../<commit path>. This seems to make things much more difficult because I would have to update my index.html every time I want to update the page. This also doesn't seem possible because how would I know the commit # before I commit it?
The relevant code is the line <script src = "https://cdn.rawgit.com/NumaK...">.
I can't figure out how my gh-pages website is supposed to be using the correct version of bundle.js:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1,
shrink-to-fit=no">
<title>Numa Karolinski</title>
</head>
<body>
<div id="root"></div>
<noscript>
Hello There. Code can be found in the "root" folder above ^^^ !
</noscript>
<script src="https://cdn.rawgit.com/NumaKarolinski/PersonalWebsite/
websiteVersion1/dist/bundle.js"></script>
</body>
</html>
In your index.html, replace :
<script src="https://cdn.rawgit.com/NumaKarolinski/PersonalWebsite/websiteVersion1/dist/bundle.js"></script>
<script type="text/javascript" src="C:\Users\numak\Desktop\MyWebsite\dist/bundle.js"></script></body>
by
<script src="bundle.js"></script>

NetBeans connector doesn't refresh itself after updating the code

Hello,
Recently I'v been facing a problem with the NetBeans connector on Chrome.
After writing my simple html code, I press the "Run Project" button.
The project opens up on Chrome and the NetBeans connector starts in debugging mode.
Now when I'm trying to change something in the html code (even the simplest - changing a header) it doesn't auto update itself on chrome, therefore I have to refresh the page again myself and then the codes updates itself.
Can someone help me solve the problem?
Additional info:
inside the NetBeans IDE I get something in the network monitor saying:
Request URL: http://localhost:8383/favicon.ico
Method: GET
Status: Request was cancelled.
I don't know much about NetBeans 8.2, but I can provide the info you need.
The project html code:
<!DOCTYPE html>
<head>
<title>title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<p>please work</p>
</body>
</html>
Thanks for any help!

Creating page API (through Graph) does not work

I'm trying to create pages using the beta API for OneNote (through Graph). Even though I've completely emptied out my OneNote (no notebooks), I still get 20117 - An item with this name already exists in this location. I've tested and I can create a Notebook just fine through this, but pages just refuse to be created (oddly enough, a default Notebook and Section will be created, but the page won't)
The URL I'm sending the POST to is: https://graph.microsoft.com/beta/me/notes/pages?sectionName=Quick%20Notes
The HTML content for the page I'm providing is:
<!DOCTYPE html>
<html>
<head>
<title>Testing Page</title>
<meta name="created" content="2015-07-22T09:00:00-08:00" />
</head>
<body>
yeaaaah
</body>
</html>

Why I can't develop single html page with linked css or js files?

What is wrong with Chrome? I want to develop just a single html page. Without any server. Just one page. I know that I need web-server for using that page. But I need to just create a short simple html page with linked js and css files. And I can't do this, because chrome is too smart and I get the same error from chrome:
Not allowed to load local resource
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>ACAB</title>
<script type='text/javascript' src="./data_statistic.js"></script>
....