- db shows you how to connect to a postgres database using the node-postgres library.
- fs demonstrates the
fsmodule in node.js. - iframe demonstrates the use of an iframe element to accomplish Ajax calls to the server.
- script demonstrates the use of a script element to accomplish Ajax calls to the server.
- pairs shows the use of the XMLHttpRequest object to make same-origin requests to the server.
- polling shows the use jQuery's Ajax support for making
same-origin requests to the server. This example also demonstrates
Ajax polling using the
setIntervalclient-side function to enable communication between multiple browsers. We also demonstrate the use of thedataTypeproperty for jQuery Ajax requests to allow cross-site scripting to communicate to the Twitter JSON API. - ws demonstrates the WebSocket API using io.socket.
- upload has an example of how to use the express framework to upload a file from a browser to the server.
cs326/examples
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|