Server-Side Javascript

Server-Side Javascript

World Wide Web security URLmerchant systemChat community system server navigator TCP/IP HTML Publishing Personal Writing Server-Side JavaScript ApplicationsInter ww December 19, 1997 Proxy SSL Mozilla IStore Publishing Internet secure sockets layer mail encryption HTMLhttp://www comp.syselectronic commerce LiveScript directory server news certificate Proxy Netscape Communications Corporation ("Netscape") and its licensors retain all ownership rights to the software programs offered by Netscape (referred to herein as "Netscape Software") and related documentation. Use of the Netscape Software is governed by the license agreement accompanying such Netscape Software. The Netscape Software source code is a confidential trade secret of Netscape and you may not attempt to decipher or decompile Netscape Software or knowingly allow others to do so. Information necessary to achieve the interoperability of the Netscape Software with other programs may be obtained from Netscape upon request. Netscape Software and its documentation may not be sublicensed and may not be transferred without the prior written consent of Netscape. Your right to copy Netscape Software and this documentation is limited by copyright law. Making unauthorized copies, adaptations, or compilation works (except for archival purposes or as an essential step in the utilization of the program in conjunction with certain equipment) is prohibited and constitutes a punishable violation of the law. THIS DOCUMENTATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. IN NO EVENT SHALL NETSCAPE BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF BUSINESS, LOSS OF USE OR DATA, INTERRUPTION OF BUSINESS, OR FOR INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY KIND, ARISING FROM ANY ERROR IN THIS DOCUMENTATION. Netscape may revise this documentation from time to time without notice. Copyright © 1995-97 Netscape Communications Corporation. All rights reserved. Netscape, Netscape Navigator, and the Netscape N logo are registered trademarks of Netscape Communications Corporation in the United States and other countries. Other Netscape logos, product names, and service names are also trademarks of Netscape Communications Corporation, which may be registered in other countries. The Netscape Software includes software developed by Rich Salz, and security software from RSA Data Security, Inc. Copyright © 1994, 1995 RSA Data Security, Inc. All rights reserved. Other product or brand names are trademarks or registered trademarks of their respective companies. Any provision of Netscape Software to the U.S. Government is with "Restricted rights" as follows: Use, duplication or disclosure by the Government is subject to restrictions set forth in subparagraphs (a) through (d) of the Commercial Computer Restricted Rights clause at FAR 52.227-19 when applicable, or in subparagraph (c) (1) (ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013, and in similar clauses in the NASA FAR Supplement. Contractor/ manufacturer is Netscape Communications Corporation, 501 East Middlefield Road, Mountain View, California 94043. You may not export the Software except in compliance with applicable export controls. In particular, if the Software is identified as not for export, then you may not export the Software outside the United States except in very limited circumstances. See the end user license agreement accompanying the Software for more details. Recycled and Recyclable Paper The Team: Publications: Victoria Gilbert, Antonio Padial, Sandee Karr Engineering: Ken Smith, Jawahar Malhotra, Philip Chang, Santosh Hasani, Satish Viswanatham, Timothy Chan Quality Assurance: Christine Ingalls, Irene Mendoza Marketing: Basil Hashem ©Netscape Communications Corporation 1997 All Rights Reserved Printed in USA 97 96 95 10 9 8 7 6 5 4 3 2 1 Netscape Communications Corporation 501 East Middlefield Road, Mountain View, CA 94043 Contents Getting Started ................................................................................................ xi What You Should Already Know ................................................................... xi Where to Find JavaScript Information .......................................................... xii What’s New in this Release .......................................................................... xiii Upgrading from an Earlier Release ................................................................xv Backward Compatibility with Earlier Releases .............................................xvi Document Conventions ................................................................................ xix About Sample Code ...................................................................................... xix Part 1 Basics of JavaScript Application Development Chapter 1 Introduction ................................................................................3 This chapter introduces server-side JavaScript and explains how it fits into the entire JavaScript language. It details what hardware and soft- ware you must have to use server-side JavaScript and how you must configure your web server to use server-side JavaScript. The JavaScript Language ...................................................................................4 Client-Side JavaScript ....................................................................................5 Server-Side JavaScript ...................................................................................7 Writing Server-Side JavaScript Applications i Architecture of JavaScript Applications ........................................................... 9 System Requirements ..................................................................................... 13 Configuration Information ............................................................................. 14 Enabling Server-Side JavaScript ................................................................. 14 Protecting the Application Manager ......................................................... 15 Setting Up for LiveConnect ....................................................................... 15 Locating the Compiler ............................................................................... 16 Chapter 2 Introduction to the Sample Applications ....................... 17 This chapter describes the sample server-side JavaScript applications that ship with Netscape web servers. It introduces using server-side Jav- aScript by working with two of the simpler sample applications. Hello World .................................................................................................... 19 What Hello World Does ............................................................................ 20 Looking at the Source Script ..................................................................... 21 Modifying Hello World .............................................................................. 24 Hangman ......................................................................................................... 25 Looking at the Source Files ....................................................................... 26 Debugging Hangman ................................................................................ 29 Chapter 3 Mechanics of Developing JavaScript Applications ..... 31 This chapter describes the process of developing your application, such as how to use the JavaScript application compiler and how to use the Application Manager of Netscape servers to install or debug your ap- plication. For information on using only client-side JavaScript, see the JavaScript Guide. Basic Steps in Building an Application ......................................................... 31 JavaScript Application Manager Overview .................................................... 33 Creating Application Source Files .................................................................. 35 Compiling an Application .............................................................................. 36 Installing a New Application ......................................................................... 39 Application URLs ....................................................................................... 42 ii Writing Server-Side JavaScript Applications Controlling Access to an Application ............................................................ 43 Modifying Installation Fields .......................................................................... 43 Removing an Application ............................................................................... 44 Starting, Stopping, and Restarting an Application ........................................ 44 Running an Application ................................................................................. 45 Debugging an Application ............................................................................. 45 Using the Application Manager ................................................................. 46 Using Debug URLs ..................................................................................... 47 Using the debug Function ......................................................................... 48 Deploying an Application .............................................................................. 48 Application Manager Details .......................................................................... 49 Configuring Default Settings .....................................................................

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    324 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us