Skip to main content

IBM Database Connectivity for JavaScript

A JavaScript API and implementation that enables Web clients to use an Ajax style of programming to directly access server-side relational data without compromising enterprise security.

Date Posted: April 3, 2007

alphaworks tab navigation

 

Platform requirements

Client (tested configurations):

IBM® Database Connectivity for JavaScript™ clients are Web applications running in a standard browser (that is, no plug-ins or extensions need be installed).

Server (tested configurations):

The server environment is a PHP container, running in a Web server, that accesses a relational database.

Note that it should be a straightforward process to install IBM Database Connectivity for JavaScript™ on a different software stack: for example, using Linux® rather than Windows XP; or using MySQL rather than DB2. Preliminary tests show that simply supplying a different DSN parameter to the RDB constructor allows application code to seamlessly switch between different database servers. This switching is possible because the IBM Database Connectivity for JavaScript gateway accesses databases through the PDO interface.

Installation instructions

The zip file contains three directory trees:

In order to use IBM Database Connectivity for JavaScript, simply include the following JavaScript files in your Web applications:

http://yourhost:8080/jsdbc_js/ specifies the URL of the JavaScript files that are available to Web clients in your IBM Database Connectivity for JavaScript installation. For example, a Web page will read as follows:

<script language="JavaScript" 
   type="text/javascript"
src=
   "http://yourhost:8080/jsdbc_js/rdb.js">

For detailed configuration instructions, please see the included file dbcjs-installation.txt (also downloadable here as a PDF file).


Download description

Filename File size Description
dbcjs.zip    600KBZip file containing IBM Database Connectivity for JavaScript

Trademarks