Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.
If you have the same JavaScript program appearing on several different Web pages, you might want to consider using an external file. That way all the pages can refer to
You accomplish basic file I/O in Java using data streams. The most basic file I/O operations in Java use the functionality offered by these classes: FileInputStreamFileOutputStream If you’re new to
There are several situations when you need to retain the state of a flag between different instances in a program. The standard way to do this is to declare the
You can use the generic algorithm find() to locate an element of a container. The find() algorithm takes three arguments. The first two are iterators that point at the beginning
C and C++ define NULL differently: #define NULL 0; // A typical definition of NULL in C++ #define NULL ((void*)0) // C defines NULL this way Why is it defined
Although most Web servers give you the option of allowing users to view the list of files in a Web site directory, you may not want to show some types
Question: I want to add a simple form to my Web page, but I can’t figure it out. I want a form that lets my users enter text into a
Nested namespaces are useful in large-scale projects, whereby every development team gets a dedicated namespace within the project’s namespace. Nested namespaces reduce the likelihood of name clashes among different teams
The JSlider component can be customized so that its labels, track, and tickmarks (or any combination of the three) are hidden. Unfortunately, there’s no way to turn off the slider
Hide your navigation buttons using DHTML when you don’t need them. Imagine a page with a databound table on it showing ten rows of data. When you’re at the beginning
The Visual Basic Snapshot data object is closely related to the Dynaset data object, but differs in several key respects. Snapshots are stored entirely in RAM on the user’s local
All SQL-compliant systems, including Microsoft JET SQL, have a set of functions to return computed results of numeric data stored in a column. All the aggregate functions create effects that
All of the aggregate components in Swing–that is, components made up other components, such as JTable, JTree, or JComboBox–can be highly customized. For example, a JTable component normally displays a
Environment variables are useful for gathering data about a client’s system settings, but different servers have different environment variables available to them. To find out what environment variables are available
Question: I developed a Web site with a database on my machine using Internet Information Server (IIS), Active Server Pages (ASP), and SQL Server. I want to install the site,
Question: What HTML tag do I use to have the screen refresh every two minutes? Answer: The following META tag will work. The value of the CONTENT parameter will determine
Question: I am designing a Web site for a conference. Over 2000 attendees are going to use the Web site for registering online, as well as for other interactive tasks,
Question: I am building Web pages using Visual Basic 6, Web Classes, HTML, DHTML, and JavaScript. Do you know of any good books that actually explain this type of programming?
Question: We have one phone line coming into the house. How can I get the phone to ring and the Internet connection to be broken if I’m on the net
Question: Can I use two submit buttons in the same form, but refer to two different scripts? Answer: Yes, it is possible to add two submit buttons to an HTML
In general, API functions and classes enable you to interact with the operating system. Sometimes, however, it is much simpler to execute a system command directly. For this purpose, you
When developing a database program, always keep the data-input user in mind. The most elegant program in the world is useless if the data is riddled with errors. If a
You can initialize a vector with the contents of a built-in array like this: #include#include using namespace std;int main(){ int arr[3]; arr[0] = 4; arr[1] = 8; arr[2] = 16;
Here’s a useful utility for finding the full pathname for a class (or any other file) from a Java program. This utility uses the method getClassNameFromPackage() described in the Tip
Although your Internet Service Provider (ISP) tells you the virtual directory that holds your Active Server Pages site, you may need to know the actual path where your files reside.
A reference is always bound to an object. In fact, you can think of a reference variable as an alias of its bound object. However, void& is not bound to
You can use a basic class finder utility to find the actual class file from a class. You can use the complete utility to locate a class file (or any
It’s fairly simple to customize the welcome message on your IIS/Windows NT FTP server. Welcome messages can contain directory information, usage guidelines, unauthorized access warnings, server news, and other useful
Use the #INCLUDE statement in your Active Server Pages (ASP) to utilize common code throughout your Web site. An Include file can contain client-side script, HTML or ASP. By coding
Question: I am using Visual Basic 6 and have a data grid referencing the Data environment command with a parameter. The grid won’t refresh to allow for different parameters. The


