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
|
|
 |
 |
|
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).
- Operating systems: Windows® XP
- Software: Mozilla Firefox 1.5 or 2.0, Opera 9.0, or Internet Explorer 7 (with "native XHR" support both enabled and disabled). It is expected that Database Connectivity for JavaScript will run in any modern browser that supports XMLHttpRequest.
Server (tested configurations): The server environment is a PHP container, running in a Web server, that accesses a relational database.
- Operating systems: Windows XP
- Software:
- Web server: Apache 2.0.58 or 2.2.3
- PHP (server): PHP 5.2.0 and PHP PDO extension
- Database: IBM DB2® 8.2.2
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:
- js: Client JavaScript libraries
- php: Server gateway PHP code
- public_docs: JSDoc for the client libraries
- demos: demo applications
In order to use IBM Database Connectivity for JavaScript, simply include the following JavaScript files in your Web applications:
- http://yourhost:8080/jsdbc_js//messages.js
- http://yourhost:8080/jsdbc_js//rdb.js
- http://yourhost:8080/jsdbc_js//utils.js
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).
Adobe, Acrobat, Portable Document Format (PDF), and PostScript are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States, other countries, or both.
Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.
Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the United States, other countries, or both.
Linux is a registered trademark of Linus Torvalds in the United States, other countries, or both.
IBM and DB2 are trademarks of IBM Corporation in the United States, other countries, or both.
Other company, product, or service names may be trademarks or service marks of others.
|
|
 |
|
View screenshots:
 |
| |