How to write for auto update [closed] - html

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
(I'm new to all this... instead of closing my question, it would help if I could have an idea of what needs to be done) (please excuse if I'm not asking the proper question for what I'm trying to achieve, new to code)
New to coding: web development Learning HTML, CSS and then JS.
I see websites where data is automatically updated. How is this achieved?
I would like to create a website that will display economic data but not have to manually input the data. How would I incorporate code to automatically do this for me?
Would I use a websites API?
Example of the type of information I would like to display on my own website: https://www.marketwatch.com/economy-politics/calendar

Automatically updated data on a website can be achieved by using an API call. You make a request to an API that has the data and then render the data on your HTML page.
The process requires a good understanding of modern JS concepts.
Search for an API that offers the service you need and read the documentation to understand how to use it.
Let me know if there' anything else.

Related

how to make gmail confirmation for my website? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
Anybody know how to do like this one?(refer to image)i want to make something like this(refer to image) for gmail confirmation on my website, but i don't know where to start.
sample image
This is a broad question, but I'll try to provide some help to get you started.
If you are referring to how to send an email from a website in general, you need to use a script to do so. How you do this is highly dependent on how you are hosting your website. If you are using Node.js, you could take a look at Nodemailer. You will have to do a bit of research with respect to what you are using to host your website.
You would also need some code to generate a link for each users email.
If you are rereferring on how to style email, you can do this with standard HTML and CSS. As far as I know, there is unfortunately no good method to insert HTML source code using Gmail.

How to make a website without a a website maker [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I've been wanting to make a website but I wanted to code it myself without using one of those website makers. Are there any ways of doing this? I would also like to publish it as well. Thanks.
1.Write your code and save it.
2.Purchase a domain and host it with ehost or something like that.
3.Upload your file. That's it.
[ehost provide hosting with free domain]
This is not technically an appropriate question for SO. However, you need to learn the basics of HTML. Start at W3 Schools. http://www.w3schools.com
You mentioned that you already know HTML. If you are just making static content, that will suffice. I strongly recommend learning CSS. While it is not technically necessary, it will make your life much easier. When you want to publish it, you will have to pay for a domain and a hosting service. Google Domains can help you with this.

Good XSS injection protection? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I've been working on a website (lualessons.x10host.com) and I've been told my website can easily be injected by Cross-Site scripting. Is there a good way to fix this? Thank you in advance.
Do you know how XSS works?
If not here's a simple explanation on basic XSS: If you get inputs from users in "type=text" input fields on forms, the user can write javascript like code in it (on your side i could write in the "Username" field something like <script type="text/javascript">alert("hello")</script>). As the username is mostly displayed, this code would be written to the database and afterwards back in the html when someone logs in or visits my Profile. Then this javascript code would be excuted. In this case its just a simple alert so it wouldnt harm anything but I think you get concept now.
To provide protection against that I would use htmlentities($your_string)
in PHP.
So if you get your values via post or get, make sure you convert them to "friendly" values e.g.
<?php
if(isset($_POST["your_name_tag_from_html"])){
$friendlyvalue = htmlentities($_POST["your_name_tag_from_html"]);
}
// do something with $friendlyvalue
?>
I hope this helped you :)

Making a HTML Template [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
So I want to create a template that looks something like this:
http://i.stack.imgur.com/Qf38Y.png (Not enough rep to post photos, I'm new)
(I'm in high school and have just completed a HTML class)
I know how to make the template but I want to make it so that I can just write the title, image location and content in a form or text document and have it create a new html page with the information. I AM NOT ASKING YOU TO MAKE THE TEMPLATE FOR ME! I also need it to be able to update the pages if I change the template. Is this possible? If so please leave any tutorials below. I am NOT asking for you to write the code for me, I am just looking to see if this is possible and what languages it would require.
Thanks Much!
For that you will have to write an application, which will convert the data given by the user into an HTML webpage. This will require using JavaScript, HTML and CSS together. You can create an HTML page which will have <input> tags in it. Then using JavaScript libraries, such as FileSaver.js, you can create an HTML file and add data to it with JavaScript, probably using .appendChild() method. This was for a webapp, that will work in a browser, for desktop app you can use other programming languages or use Adobe AIR to package your webapp for desktop.

How to parse the DOM of a page on another domain [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I've been having a lot of trouble parsing the DOM of a remote webpage using AJAX. I don't seem to be able to find any example or tutorials demonstrating this procedure.
I basically want to search through the DOM of a remote page, find a tag with a specific id/class, take the inner contents of that tag and print it out on my own page.
If anyone can help i'd appreciate it.
The same-origin-policy browsers have do not allow you to access external pages for security reasons. You need to use e.g. a PHP script on your server to retrieve the external site's HTML. Then you can make an AJAX call to that script instead.
You could always use this: http://simplehtmldom.sourceforge.net
Easy to use.