Creating page API (through Graph) does not work - onenote

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>

Related

Unknown Error on embeding Stripe Pricing Table

I have an error when I try to embed a stripe princing table on a web page.
When I copy the code provided by stripe during the cration of the pricing table and refresh the page it gives me unknown error. I used the HTML method to embed the pricing table.
Here my code :
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>test</title>
</head>
<body>
<script async src="https://js.stripe.com/v3/pricing-table.js">
</script>
<stripe-pricing-table pricing-table-id="{{PRICING_TABLE_ID}}"
publishable-key="{{PUBLISHABLE_KEY}}">
</stripe-pricing-table>
</body>
</html>
Do you guys have any solution ?
In order to test the pricing table in your local environment, you need to have have a local HTTP Server(e.g. Nginx, Apache).
The pricing table requires a website domain to render. You need to run a local HTTP server and host your website’s index.html file over the localhost domain.
More details can be found here [1].
[1] https://stripe.com/docs/payments/checkout/pricing-table#limitations:~:text=Testing%20the%20pricing,server%20npm%20module.

How to access non-home page in Amplify

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.

Chrome is downloading HTML files instead of displaying them

I need some help. I decided to create a home FTP server for my family. I hit a roadblock a few hours ago. When I was creating my home page, I wanted to test it in Chrome. I linked a css file to it aswell. I expected to see the test webpage, which was a h1 with the text hello. What actually happened was the fact that it downloaded my html file, and when I opened that in Chrome, I saw my page without the css. I've tried everything to speak of on this site and I even checked page 2 of Google. Here's my code, I'm running FTP on IIS 10.
<!DOCTYPE HTML>
<html>
<head>
<title>Home</title>
<link rel="stylesheet" href="main.css">
<meta http-equiv="Content-Type" content="text/html">
</head>
<body>
<h1>Hello!</h1>
</body>
</html>
As far as I know, chrome download the html page is right. Since you use chrome to access a ftp file, it is not a http connection to the server. The chrome will not directly show it.
If you want to show the html page in the browser, you should use IIS website instead of ftp site.
More details about how to create a IIS web site, you could refer to below article.
https://support.microsoft.com/en-sg/help/323972/how-to-set-up-your-first-iis-web-site
i guess you are putting it in a wrong format
as https://www.w3schools.com/css/css_howto.asp says
<link rel="stylesheet" type="text/css" href="mystyle.css">

Hyperlinks Only Link to Internal Site

I am just starting to code HTML and I am testing the following very simple code:
Google
However, it always thinks that the link between quotation marks is a file located locally in my website, so I end up getting an error page with the URL bar reading:
www.example.com/"http://www.google.com"
Obviously I am doing something silly, because this is really silly. How would I get my hyperlink to actually take me to Google (or whatever other website I wanted)?
EDIT: Since I have been told I shouldn't be getting an error and that I must not have specified something, here is my entire code:
<!DOCTYPE html>
<HTML>
<Head>
<title>My Website</title>
<meta charset="UTF-8">
<meta name="This is a website where I dump random stuff I am interested in.">
<Body>
<h1>My Website</h1>
<p>
<a href=www.google.com>Google</a>
</p>
</Body>
</Head>
</HTML>
In your full code, you are missing quote marks around the link. This isn't your problem though, you need to add https:// to the link for the browser to recognize it as an external link.
Google

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>
....