NASA Logo, National Aeronautics and Space Administration

JavaScript CDAS Web Services Example

The Coordinated Data Analysis System (CDAS) Web services allow a software developer to use portions of the CDAS software in their own application.  The following describes an example of how to utilize the CDAS Web Services from JavaScript in an HTML page. This example doesn't provide any useful, end-user functionality but is intended merely as an example for developers of client application to examine.

Prerequisites

The following is required in order to execute the example program:

Example

The example JavaScript program is contained in the file CDASWS_JScriptExample.html. In order to execute the program, save the CDASWS_JScriptExample.html file without the .txt extension to your local computer's disk.

Instructions

The following instructions describe how to execute the example JavaScript program:
  1. Save the HTML file to your local computer's disk without the .txt extension.
  2. Open the file from your local disk with a Mozilla based browser that has JavaScript enabled. Approve the browser's request to grant the script the privileges required to make the Web service calls when prompted.
  3. Compare the resulting rendered page with what you expected from examining the JavaScript code.
  4. See SOAP Scripts in Mozilla for more information about calling Web services from JavaScript.
NASA Logo -
	    nasa.gov