April 20, 2000

Connecting Informix Databases

Question: How can I use SQL to access an Informix database that’s on a remote site and connected via a VPN while connected to an Informix database locally? Both are HP9000 systems running HP10.20 and Informix OWS 7. Answer: You need to be able to ping one machine from the

Displaying Server Variables

ServerVariables’ collection of request objects provides vital information about the client browser, HTTP header, etc. During the development of a web application, we use various variables of this collection to implement, for instance, browser-specific things or things which are specific to certain URLs. Here is the sample code that can

How to Tile Background Images in Table Cells

Both IE and Navigator let you specify different background colors in table cells. However, IE ups the ante by supporting tiled background images in different cells or even behind an entire table. If you want to add contrasting elements to enhance legibility, just add: BACKGROUND=”filename.jpg” to any TABLE, or to

Changing the ScriptTimeout

The default setting for ScriptTimeout is 90 seconds. For IIS 3.0, it is located in the system registry where we can easily change it to another value. It is advisable to set it to a lower value, and control each script individually. If the default is set to 90 seconds

Using the JavaScript Keyword “This”

JavaScript provides a special keyword, “this”, which is a reference to the object that contains a JavaScript statement or function call. For example, if we have a text box object, we can pass a reference for that object to a function with the statement: The doSomethingTo function could then accept

Updating Multiple frames at Once

If you use frames in your page, it’s easy enough to create a link that updates one of them. But what do you do when you need to update two or more frames at the same time? You can use one of two methods to accomplish this task. One method

Confirm Dialog From a HREF

We can use the following JavaScript code to get a confirmation from the user before navigating to another page. Redirect

Associate a Label and Shortcut Key With a Text Box

We can associate a shortcut key to give focus to an tag as follows: Name: The letter “N” will be underlined, which gives a visual cue that N is the access key. Browsers that don’t support Accesskey will just ignore it.