How could I send a text to a website?

I did it i left clicked and inserted a microsoft word document.

I said “Text Document”, not “Microsoft Word Document”

I don’t see anything else though… I only see microsoft word document and microsoft powerpoint when i left click in my folder… look ill send a screenshot.

The sites basically will tell you - but you need to already be at the point where you have a “192.213.213.0.1:30” ip address for your website.

One step at a time my man. He can figure out domain names after he has a website working.

Seems like you don’t have a website already built, so I’d wait until you have one to worry about domain names my bad.

try using https://surge.sh, you can deploy for free and still use your own domain.

If you are writing in notepad or VSCode or whichever text editor you are using it should give you the option to name your file with it’s extention and choose where it goes when you use ‘Save As’.

If you are having trouble with getting to this point of his instructions, are you able to create a website after setting up your environment? Do you know how to code in HTML and whatever back end language you pick?

@nicemike40 wants you to create a text document like so:

image

Capture

@Badandy11 @Zephyr_42 @3MtnBros

Let’s stop confusing him; we explained about domain names and hosting services a while ago. We’re just trying to walk him through setting up a local server.

1 Like

Click on “View” at the top and make sure the “File name extensions” box is checked!

1 Like

Oh alright ill try do it…

1 Like

As Mike said, make sure you have this checked:


Right now your file is probably actually “index.js.something” rather than just “index.js”.

1 Like

Alright, i double clicked my Website folder that i created then i went to View and made sure file name extensions were checked. now do i left click and go to new and will i see Text File?

As much as this public lesson is very admirable, you should probably take this to DMs or somewhere else. This category is for scripting on the Roblox platform, and this thread has gone a bit wild to the point where you are essentially typing out tutorials that are readily available throughout the internet, some of which are even linked to in replies here.

@ThoseNamesAreGood pick a tutorial and follow it from start to finish. If you’d rather use someone from this thread, open a direct message conversation with them if you need them to explain each step in detail.

3 Likes

I’m pretty sure you’re new to web development from the looks of your comments.
For beginners I recommend the Heroku Basic plan, Repl.it, Azure (Pricy), or AWS Free tier (Requires CC).

To send a text to a website just use the http service.

Http = game:GetService("HttpService")
Http.PostAsync(url, text)

Thanks for the epic tutorial! But how do i post text on the localhost website?

Because when I do:
httpService:PostAsync(“http://localhost:8080/","hi”)

its not printing “hi” on the website

I did it but it says Website not found

You need to send a JSON CORS Request to the website u want to send. From there you can simple parse it on the client server with JSON.Parse(). Here is what I used for my corona virus tracker.

var xmlhttp = new XMLHttpRequest();
var url = "https://coronavirus-tracker-api.herokuapp.com/v2/locations";
let d = new Date();
document.getElementById("title").innerHTML += d.getMonth() + 1 + "/" + d.getDate() + "/" + d.getFullYear();
xmlhttp.onreadystatechange = function() {
    if (xmlhttp.readyState === 4) {
        let data = JSON.parse(xmlhttp.response);
        document.getElementById("infected").innerHTML += data.latest.confirmed;
        document.getElementById("dead").innerHTML += data.latest.deaths;
    }
}
xmlhttp.open("GET", url, true);
xmlhttp.send('');

Make sure you are publishing your port then use your ip instead of localhost.

local host only works with http requests sent from your computer, roblox makes it’s requests from it’s servers not your computer.

The best way is to host it online, maybe get a domain name if you’re feeling fancy.

1 Like