IBM HTTP Server for AS/400
JavaScript for DDS Programmers


Terms of Use
  1. You may freely download this file or set of files for use within your site or at your client sites.
  2. You must keep all of the original copyrights and other notifications with all copies of the file(s) that you download from this site.
  3. You may use any of the code or techniques described in your own programs.
  4. You may not develop any article, publication, Web page or other document that is based entirely or substantially on any of the information or code that you download.
  5. You may link directly to www.web400.com from any of your Web sites. Please do not link directly to internal pages on this site.
  6. Use of any materials, files, descriptions, code, procedures, etc., that you obtain from this Web site is AT YOUR OWN RISK. DO NOT USE any of the materials, files, descriptions, code, procedures, etc., if you are uncertain what the effect might be, and if you do not have adequate backup and recovery to correct any possible problems.
  7. I do not offer "free" support for any of the material available on this site. Consulting services are available by request for a fee.


File name: JavaScript for DDS Programmers
Environment: Any browser that supports JavaScript (Netscape, others) or JScript (Microsoft Internet Explorer).
Date Posted: April 17, 2000

About this document:
Most AS/400 programmers are familiar with the DDS keywords that can be associated with input fields on data entry forms. However, when you create a Web form using HTML, there are no HTML equivalent keywords. To get the same type of editing effect, you need to attach scripting code to your HTML fields.

The most commonly used scripting language for browser-based applications is JavaScript. The JavaScript code is sent to the browser along with the HTML for a form.

JavaScript is supported by practically all browsers (Netscape Navigator series, Microsoft Internet Explorer series, others). By using JavaScript, you can create Web based data entry applications that perform initial editing in the browser.
Link to the article:
JavaScript.html - Web page that describes how to use JavaScript to perform field level edits, similiar to capabilities of AS/400 DDS keywords.

Download Files:
JavaScriptDemo.html - The "live form" that displays a name and address entry page. The buttons are clickable and execute the JavaScript code to edit the data entry fields.

JavaScriptDemo.txt - The "live form" in a text file format that displays the code in your browser. You can download and save this file to your workstation.

JavaScript_Cover.doc - Cover page for the JavaScript.doc file. You must download and print this file if you download file JavaScript.doc.

JavaScript.doc - Microsoft Word document that describes how to use JavaScript to provide field level edits, similiar to capabilities of AS/400 DDS keywords. (Same as the html file above.)

FormChek.js - The FormChek.js JavaScript file from Netscape's developer's site (http://developer.netscape.com). This file includes many useful functions that you may want to use in your edits. Several of the functions are used in the JavaScriptDemo.html sample form.




Craig Pelkie
Bits & Bytes Programming, Inc.
craig@web400.com

WEB400 Home Page Download Files


Web Server, AS/400
Copyright © 2000, Bits & Bytes Programming, Inc., ALL RIGHTS RESERVED

WWWSights, Publisher
Last modified April 17, 2000