devxlogo

The Latest

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

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

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,

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

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 Related Posts RESTful VerbsASUS Routers Are Vulnerable!How to Configure .NETAddressing

A Smart Ceiling for a Ratio of Two Integers

I often use the following trick in my code. Let “a” and “b” be real positive numbers. You want to find the smallest integer greater than or equal to “a/b”.

Separating Colors with a Pull-Down Menu

Question: When I implemented a pull-down menu, it wiped out the default, anchoring color schemes. When I changed the pull-down menu to blue text, my anchored text showed blue again.

Custom Menu Pop-Up

Question: When I press the right mouse click, I’d like to have a custom menu pop up instead of the usual default browser pop-up. How can I do this with

Opening New Windows With iframes

Question: I’m loading news links from our companies’ database to our home page using the tag. However, when a user clicks on one of these links, the news item appears

HTML Table Filling Using DHTML

Question: Is there a way to read the contents of a directory into a table so that the contents of each cell of the table becomes a link? Answer: This

Inserting Data Through SQL

Question: I’m using ASP to register data in a DBF table through a SQL statement. I get data from a form (textarea) in an HTML page. However, the SQL statement

String Contains a Greater-than Sign

Question: My app. name contains the char “> “: myapp>name Of course, this creates huge problems. How do I get past this in HTML, when displaying or referencing the app.

Get the Cache to Load Graphics Ahead of Time

If you have light menu pages but heavy graphics on pages deeper into the site, sneak a graphic or two into the user’s cache while someone is reading your home

Kill the Browser’s Offset Bug

On May 9, Mark Williams contributed the following:Manoj Singh’s tip to “Kill the Browser’s Offset Bug” was only partially correct. You can fix this “bug” under Netscape as well as

Ensure Proper Remote Scripting Parameter Types in ASP

You may already know that remote scripting is a great way to access server-side functions and procedures from client-side scripting. However, when you use parameters in a server-side function intended

Set Home Page with DHTML

DHTML intrinsic behavior gives advantage to changing the user’s home page to the current page. The style block, which goes in the of the document, associates the home page class

Activating Trim Trailing Blanks

Question: How do I activate trim trailing blanks from No to Yes? Answer: The SET ANSI PADDING statement controls the setting you are referring to. When a table is being

Accessing SIM Cards Via GSM Commands With WML

Question: I have to build a GSM application as written with the SIM toolkit protocol but within the WAP environment. How can I communicate via WML with the SIM card,

Folder Removal

Question: How do you delete folders like Front Page, Outlook Express and the like? Answer: Well, from the command line you have several options. You can use DelTree to remove

Renaming a SQL Column

Question: Can I rename a SQL column without making a new table or relying on GUI? Answer: The ALTER TABLE ALTER COLUMN SYNTAX supports either dropping an existing column or

Writing Null Values to a File

Question: What’s the best way to write null values in file, then read them back from file? Answer: If you are using the built-in PowerBuilder functions to read the data

Product Compatibility

Question: How can I find out which Informix products/versions are compliant/compatible with other Informix product/version combinations? Answer: Try calling your local Informix office. They may have something. As a general

Error When Starting IDS

Question: I just installed IDS 7.31.uc5 on HPUX 11. When I try starting it up (oninit -iy) I get the following error: unable to open input file ‘s’unable to open

Sorting by Year From a Date Column

Question: How do I sort by year a datawindow that already sorts in ascending or descending? (The field is in mm/dd/yy format.) Answer: Create a computed column on the datawindow

Animated Image Bitmaps

Question: How do I animate an image in PowerBuilder? Someone told me I would have to split the gif into frames and then set up a timer. Answer: You can

Quickly create HTML tables from an ADO Recordset

The ADO Recordset object exposes the GetString method, which returns the values in the Recordset into a formatted string. Here’s its syntax: res = GetString([StringFormat As StringFormatEnum = adClipString], _