The Latest

DevX - Software Development Resource

Displaying User Confirmation Dialogs

In JavaScript, it is easy to ask the user to confirm an action by using JavaScript Confirm () function. Say you have a function NavigateToWebAddress() (which needs confirmation from the

DevX - Software Development Resource

Use JavaScript to Print an Entire Web Document

To print the entire document from JavaScript, use parent.print() in the code. For example, this code snippet can be used to print the entire document on click event. Related Posts

DevX - Software Development Resource

Do Easy Form-Level Keystroke Trapping

If you set a form’s KeyPreview property to True, all keystrokes for items on that form first trigger the form’s events. This makes it easy to do form-level filtering and

DevX - Software Development Resource

Know Where They’re Coming From

Sometimes you might find it important to know where your site visitors came from. You can then customize your ASP in a certain way, or you know how much your

DevX - Software Development Resource

Merge your view Windows in Visual InterDev

In Visual InterDev, you can have more than one view (Project Explorer, Properties, Data, Script Outline, Output, Find, Toolbox, etc) in a docked window. If you have too many of

DevX - Software Development Resource

What Final Does in Java

When you declare a class as final, it can no longer be subclassed. Java has used this for security purposes with classes like String and Integer. It also allows the

DevX - Software Development Resource

Understanding Interfaces

An interface describes the public methods that a class should implement along with the calling conventions of those methods. An Interface says nothing about implementation of its methods. In essence,

DevX - Software Development Resource

What ‘abstract’ does

When you declare a class as abstract, it cannot be instantiated. Only subclasses of an abstract class can be instantiated if they are not abstract themselves. When you declare a

DevX - Software Development Resource

What ‘synchronized’ does to a method

When you synchronize a method of a class, as in: public synchronized int getAge(){ …} that method will acquire a monitor lock before execution. If the synchronized method is static,

DevX - Software Development Resource

What ‘static’ Does

When you declare a field variable of a class as static, that field variable is instantiated only once, no matter how many instances of the class are created. In other

DevX - Software Development Resource

Persistence and Serialization

Question: What is the best source, print or online, for learning how to implement persistence in C++? I want to save my objects to disk and restore them, and I

DevX - Software Development Resource

Using ADO-Connected Recordsets with MTS

Question: Can I use ADO-connected recordsets with MTS? From the information I can find it seems that MTS does not handle them. Answer: You can, but the question is, do

DevX - Software Development Resource

Blinking Borders in Spy++

Question: How does Spy++ make the borders of a window blink when you select “Highlight” from the right-click menu? I have a MouseProc in the hook chain, so I can

DevX - Software Development Resource

queues

Question: I am a young programmer trying to learn C++. I have finished the three books that I own, but none of them cover queues or stacks. I have searched

DevX - Software Development Resource

SQL Redirection to a Text File

Question: How do I redirect the output of a SQL query to a file? Answer: Use the isql command-line switches to redirect the output of a query to a file.

DevX - Software Development Resource

Getting Data That Is in One of Two Tables

Question: I have a query that retrieves a field which is a foreign key in two tables. The tables are organization_name and person_name. Each instance of the foreign key is

DevX - Software Development Resource

Displaying the Timestamp in SQL Server 7

Question: I want to show my users when a record was last updated. Is there any way to display the timestamp field? Answer: The timestamp field is not a good

DevX - Software Development Resource

Error Message When Creating a New ActiveX Class

Question: I’m running Windows NT 4.0 (Service Pack 3) and have developed an ActiveX Server (EXE) using Visual Basic 6 (Service Pack 3). How come whenever I try to create

DevX - Software Development Resource

BIOS Version Information

Question: I have scoured the Web and can’t find any information on where to obtain BIOS version/name information. As far as I can tell, there are no APIs or C

DevX - Software Development Resource

Rediscover the FrontPage Server Administrator

After upgrading your system to FrontPage 2000, you may get an error message when you try to run the FrontPage Server Administrator from the Windows NT Option Pack group. The