May 31, 2006

A Server-Side Assist for Loading Client-Side JavaScript Code

f you’re at all involved with Web development, you know about AJAX (Asynchronous JavaScript and XML). And you probably noticed the astonishing proliferation of AJAX frameworks, which provide a unified set of libraries for writing AJAX applications more easily. One of the reasons frameworks are so important is that JavaScript

Entering Dates in Different Formats

Suppose you are developing a Web page which contains a text field in which a user can enter a date. The problem is that in different parts of the world people enter dates in different formats. By default, .NET accepts dates in English US format (MM/DD/YYYY). But what if one

Fetching Even and Odd Records in Oracle

This tip will help you understand how to apply the mod function and use it to obtain even and odd records from columns in Oracle. You basically want to retrieve records in odd and even order based on a column. So, suppose you want to fetch all records with the

Modifying Member Variables Inside const Member Functions

Declaring a member variable as mutable is not the only way to mark it as modifiable within a constant member function. It is actually not really good practice to mark a member variable as mutable because this allows all const member functions to modify this member variable. The compiler invisibly

Dig Deep into Python Internals, Part 2

his article is the second in a two-part series that digs deep to explore the fascinating new-style Python object model, which was introduced in Python 2.2 and improved in 2.3 and 2.4. The object model and type system are very dynamic and allow quite a few interesting tricks. In part

Firing Focused JButtons with the ENTER Key

Most users of GUI software know they can move the focus from one control to another by pressing the tab key. There is usually some visual cue to let them know which control has the current focus?for example, when a JButton acquires the focus, a small box will appear around