• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL

Chapter 3. Server-Side JavaScript > Uses of Server-Side JavaScript

Uses of Server-Side JavaScript

Now that you have seen some of the differences of server-side and client-side JavaScript and how to compile your applications, take a look at some of its uses. This section does not try to outline all the uses you may encounter, but rather discusses some of the more common aspects of using server-side JavaScript. These examples use some of the core objects specific to the server-side implementation and should give you a good taste of what you can do with this powerful language.

User Sessions and Database Access

An extensive discussion of how to manage user sessions and database connections as various users access your application is beyond the scope of this book. However, there are some items you should be aware of when performing these tasks.

First, you should know how database queries are handled. You should understand how the information is returned from your specific database and how to process the information. Specifically, check the Connection,Cursor,database,DbPool,Resultset, and Stproc entries in Chapter 8, "Netscape's Server-Side Additions," for information on the objects, properties, and methods you have at your disposal.

You should also know how to appropriately manage user connections to your application. It is possible your application will have to manage many connections from many users at the same time. If your sessions and connections get crossed, you may send the wrong information to the wrong user. For information on user sessions, reference the Lock,project,request, and server entries in Chapter 8.

Maintaining and managing your user sessions and database connections can be a very important factor and you should take great care when working with them.



Not a subscriber?

Start A Free Trial

  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint