Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7872491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:12:47+00:00 2026-06-03T02:12:47+00:00

I am pretty new to Node.js and I went through a tutorial and set

  • 0

I am pretty new to Node.js and I went through a tutorial and set up my own server who responses to some requests with basic html.

var body = '<html>'+
            '<head>'+
            '<meta http-equiv="Content-Type" content="text/html; '+
            'charset=UTF-8">'+

            '</head>'+
            '<body>'+
            '<form action="/upload" method="post">'+
            '<textarea name="text" rows="20" cols="60"></textarea>'+
            '<input type="submit" value="Submit text">'+
            '</form>'+
            '</body>'+
            '</html>';


response.writeHead(200, {"Content-Type": "text/html"}); 
response.write(body); 

I have from a former project (basic html and JS) a javascript function which basically draws a table (calendar).

But how would I use it in Node.js? I dont really understand how I should build up the website?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T02:12:49+00:00Added an answer on June 3, 2026 at 2:12 am

    You could look at a library which allows server-side DOM manipulation. See:
    http://blog.marksoper.net/Server-side-DOM-manipulation-in-Nodejs-with-JSDOM-JQuery-and-Mustache-Templates-April-25-2011.html

    If you don’t want to write the HTML within your server-code I can strongly recommend Express.js having used it for a year now on my university final year project.
    http://expressjs.com/

    Please note that Express usually expects you to use a templating language for your web-pages such as http://jade-lang.com/. However you don’t need to use a templating language. (But they do provide some nice features such as passing JSON into the template)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm pretty new to Node.js/Express, but I think I'm slowly getting the hang of
I'm an experienced software developer, but pretty new to JS and to node. I'm
I'm pretty new to Node.js, so apologies in advance if I don't know what
This is a pure best practice question. I am pretty new to Node and
I'm pretty new to the whole node.js thing (as well as servers, javascript and
I am pretty new to CoffeeScript. I am trying to create Node.js application using
I'm pretty new to drupal development. I have a group node and inside it
Pretty new to Dynamics CRM 2011. I'm creating a data integration with Dynamics CRM
Im pretty new to Java Web Services, but I cant find a good explanation
I pretty new to Objective-C (and C itself) and need to consume a NSData

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.