Skip to content
Sign UpLog In
Profile icon

BobNeo

@BobNeo
Repls
Community
BobNeo
BobNeo
shared a Post
3 years ago
How can I make an HTML button execute node.js script in express?
I want to make a button in HTML with express that executes a function in node.js. I tried onclick=“function()” but it wouldn’t execute the function in
SixBeeps
SixBeeps
The problem with your initial solution is that you're trying to execute server-side code from the client, which is not directly possible. Instead, you should attach some client-side JS with a function that sends an HTTP request to the server at a certain destination. Then, you'd have the button execute this function and reload the page. Or, better idea, go with an asyncronous approach.3 years ago
BobNeo
BobNeo
shared a Post
3 years ago
This is a simple repl to crash python! Just enter the way you would like to crash it, and it crashes it! How does it crash python? Take a look at the
Crash Python
Python
Wilke000
Wilke000
lol @BobNeo3 years ago
NoelB33
NoelB33
That’s a really big error message....3 years ago
BobNeo
BobNeo
shared a Post
3 years ago
Great HTML text that isn’t annoying at all.
Best text you will ever see
HTML, CSS, JS
CodingGoose
CodingGoose
I love it xD3 years ago
NoelB33
NoelB33
My eyes....3 years ago
BobNeo
BobNeo
shared a Post
3 years ago
So basically what I want to do is make a voting system, Inside vs Outside, but I’m pretty new to coding and can’t figure out just how I can store the
ExternalUnsteadyMicrostation
HTML, CSS, JS
CodeLongAndPros
CodeLongAndPros
I would use a file / JSON.3 years ago
Baconman321
Baconman321
I had the same problem with PHP, and believe me, it really sucked that I couldn't get it to work. Basically, every single time you access a website, it makes it from scratch. Basically, you call the website with something like https://example.com. The coding doesn't live in the address, but rather that address takes you to that website. Kind of like a house address. The house isn't inside the address, but rather the address specifies where the house is. What you need is a database, which is very3 years ago