Skip to content

cs326/examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMPSCI 326 Web Programming

Code Examples

  • db shows you how to connect to a postgres database using the node-postgres library.
  • fs demonstrates the fs module 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 setInterval client-side function to enable communication between multiple browsers. We also demonstrate the use of the dataType property 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.

About

Code Examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published