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.








Question: How do I make an alert that pops up and says “this site best viewed with IE4 at 1024 x 768”? Answer: Making such a popup is easy. Just
Question: How can I change the title of a JavaScript alert box from “www.www.www (JavaScript Application)” to whatever I want? Answer: Simple?you can’t. Unfortunately, JavaScript coders don’t have any control
As with dates, different countries and regions use different symbols and formats when displaying currency values. Java 1.1 provides a simple facility for displaying a currency value in a manner
If you write CGI programs in Perl, you probably find yourself using a lot of long print statements for outputting HTML. HTML uses a lot of double quotes, so it’s
Perl’s regular expression substitution function is useful for CGI string manipulation, but using the default delimiter / can lead to leaning-toothpick syndrome if you use it for paths or URLs.
When delaring an array of primitive types in C and C++, you have to assign a constant for the array size. Since Java treats arrays as objects, the size of
Graphs, charts, and maps often use color to help the user tell data points apart. For instance, a line graph comparing processor benchmarks might show the Motorola processor in red,
Once your Perl CGI program has run and you’re ready to display the results, you have a couple of choices. If the results are dynamic and different for every user,
You can use this simple code to start any executable application or any executable files. Suppose you want to start the netscape.exe in your application. You can easily do this
The world of DHTML is a chaotic one right now. Netscape Navigator 4.x and Internet Explorer 4.x have sufficiently different implementations of the Document Object Model (DOM) that cross-browser DHTML
You can easily make your program show descriptive text on a StatusBar control in response to mouse movement. Assign the text to the appropriate panel in the MouseMove events of
Sometimes you want to give your users the chance to confirm that they wish to proceed with the closure of a form. Instead of using a MsgBox function and a
You can easily create a calendar grid similar to the one in Outlook to show data. First, start a VB project, then place an MSFlex Grid on the form, with
Subclassing a listbox allows you to monitor horizontal scrolling. To subclass a listbox, you store the original WndProc in the UserData area of the listbox, allowing a single replacement of
When a constructor has to pass arguments to its base class constructor or to an embedded object, you must use a mem-initializer: class base {private: int num1; char * text;public:
Fundamental types have a pseudo destructor. A pseudo destructor is a syntactic construct whose sole purpose is to satisfy the need of generic algorithms and containers. It is a no-op
When an exception is thrown, the exception handling mechanism searches for a matching handler for it. The matching rules for exceptions are more restrictive than the matching rules for function
You can initialize std::string with a pointer to char. However, it does not check the pointer. When the pointer happens to be NULL the results are undefined: #includeusing std::string;const char
Unlike ordinary functions, overloaded operators cannot declare a parameter with a default value (overloaded operator() is the only exception): class Date{ private: int day, month, year; public: Date & operator
You can easily create simple database projects in design mode by assigning a set of database properties to the Data control. Once you assign a database and record source, you
If you have header or footer material which appears on every page in your site, such as navigation or copyright information, it makes sense to store it centrally and use
By default, Internet Information Server (IIS) does not log very much information about who has been visiting your site. It does, however, have options to track a plethora of information,
The default behavior of the JComboBox is sufficient enough in most cases. If you select an item from the pull down list, an action event is generated and sent to
The Standard Template Library defines a specialized form of the queue container called priority_queue. A priority_queue is a queue whose elements are internally sorted according to their priority. Thus, an
The capacity of a vector can be resized by calling either reserve() or resize(). These member functions differ in two respects. Unlike resize(), which allocates memory and initializes it with
Take a few minutes to customize your Internet Information Server (IIS) site by specifying a page (other than the default) to handle erroneous page requests. The standard response page looks
The EventObject class is the base class for transferring events in Java (see Tip “Understanding the Listener Pattern”). It provides these methods: public EventObject (Object source) // Constructor. The “source”
A bit of randomness can help keep your Web site from getting stale. You can use the JavaScript rand() function to display random text or a random image. function goRand()
esource bundles are intended to provide locale-specific resources so that an application can customize data, usually strings, based on the country or language of the computing environment. Though mostly used
There are two types of const data storage: true const and contractual const. const int cn = 5; // true const A contractual const variable is a non-const one, which



