node js and html

76 views
Skip to first unread message

alan Horman

unread,
Jun 10, 2014, 10:13:33 AM6/10/14
to nod...@googlegroups.com
Hi there,

I wanna know how is possible to make a "button function" in html using node js.
maybe is simple but I have no Ideas how it works or how i can beginn
I need help and if it´s possible to get a source code , let me know please.

Aria Stewart

unread,
Jun 10, 2014, 10:54:39 AM6/10/14
to nod...@googlegroups.com
HTML and node have almost nothing to do with each other — node.js usually runs on a server, HTML is usually in a web browser.

You might be trying to create an html <form>, which posts to a node.js server, which takes action on that.

Is that right?

signature.asc

// ravi

unread,
Jun 10, 2014, 10:56:49 AM6/10/14
to nod...@googlegroups.com
Hello Alan,

your question is a bit too generic to answer with any specificity, but I get the sense you are looking to use Node similar to how you would Apache(+PHP/etc)? i.e., a generic web server with some back-end scripting. With Node, in order to do that, you should consider a framework such as Express that lets you add some of that functionality to Node by giving you a way to serve static files, use templates, return AJAX data using routes, etc.

—ravi


Alexey Petrushin

unread,
Jun 10, 2014, 7:29:27 PM6/10/14
to nod...@googlegroups.com
"button function" ha-ha, remind me times of Borland Delphi :)

Darren

unread,
Jun 11, 2014, 12:23:21 AM6/11/14
to nod...@googlegroups.com
Alan, if you haven't seen it yet, there's a pretty good guide to getting started with Express here: http://expressjs.com/guide.html
Reply all
Reply to author
Forward
0 new messages