Join Joseph LeBlanc for an in-depth discussion in this video Posting data, part of Node.js First Look.
- View Offline
- Exercise Files
Most likely, you'll want to accept input from your visitors to your site through a form.…Let's create a form where people can suggest recipes, then handle it in Express.…I've copied my recipes folder from the exercise files to my desktop.…Let's take a look package.json.…We have some dependencies.…So let's install them.…Now that the dependencies are installed, let's take a look at the views.…First, we have suggest.ejs.…The form is pointing to recipes/ suggest and the method is post.…
Aside from that, we have inputs for name, ingredients, and directions, and then…finally a Submit button.…Next, we have suggest_result.ejs.…Typically, you take a post request like this and then email the results to…somebody else for further handling.…In this case, we're simply going to display the results right back on the screen.…We're outputting the name, the ingredients, and the directions, and then linking…back to the recipe screen.…Finally, a small change to the recipe screen has been made.…
We now have a link to the Suggest page.…
- Using the Socket.IO Node package to achieve "live" effects like Facebook notifications
- Scraping web sites using jQuery without a browser
Skill Level Beginner
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.