Join Joseph LeBlanc for an in-depth discussion in this video Reading request data, part of Node.js First Look (2012).
Many web applications rely on reading input gathered from submitted forms.…Connect provides tools that make it easy to read this data and use it in your code.…Let's take a look at package.json.…In this file, we've listed dependencies and we've connect at version 1.9.2.…Let's install Connect now.…Change directory to Desktop/ repeat/ and now type in npm install.…Now that Connect is installed, let's take a look at the script.…
In this case, we're loading in Connect and then we're creating a Connect server.…We're using bodyParser which will allow us to read the variables in…the submitted form.…We're also using static again to connect to the public folder.…Finally, if the request cannot be fulfilled by the public folder we've a…function that will attempt to process the form.…If the URL is set to process, it will attempt to send back a message with…the form variables;…otherwise it will end with a message, Invalid Request.…Let's take a look at the web form we'll be serving.…
This is a very basic form.…
- Using the Socket.IO Node package to achieve "live" effects like Facebook notifications
- Scraping web sites using jQuery without a browser
Skill Level Beginner
Q: Does the instruction from "Selecting through browserless jQuery" work for Windows users?
A: The “Selecting through browserless jQuery” video does not work on Windows
XHTML and HTML Essential Trainingwith Bill Weinman4h 44m Beginner
1. Installing Node
2. Getting Started
Running a Node script2m 6s
4. Command Line Scripts
5. Creating Web Servers
7. WebSocket Programming
8. Connecting Beyond Node
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.