This example shows how to parse string containing date and time in custom formats into Date object using Java SimpleDateFormat class. imp...
Home
Archive for
September 2012
A simple JDBC application sample code
The basic process for a single data retrieval operation using JDBC would be as follows. a JDBC driver would be loaded; a database Conne...
The History of AJAX
In the beginning, there was the World Wide Web. Compared with desktop applications, web applications were slow and clunky. People liked we...
Using revealTrans to do page transitions in Javascript
Here are some page transitions to amaze your visitors. All you have to do is add a new meta tag to the <HEAD> section of your page: ...
Scrolling message on the status bar using Javascript
If you are looking for a simple java script to show a scrolling message on the status bar then you can use this script. TWO STEPS TO INS...
Getting Browser's height and width using Javascript
Getting the Browser's height and width is quite useful in many circumstances. For example if you are using a google map in your site, y...
Disabling Right Click option in a browser using Javascript
There are two ways you can disable the 'Right Click' option on a browser's window. These get placed in the <HEAD> of your...
Program to read a file line by line in Java
This sample Java program demonstrates how to read a file in Java Line by Line. For this the following two classes DataInputStream and Buffe...
Program to write to a file in Java
This sample Java program demonstrates how to write to a file in Java. For this, the following two classes FileWriter and BufferedWriter are...
Program to execute system commands in a Java
Most often in your Java programs you will find a need to execute system DOS commands. You can execute any system commands that are OS speci...
Short-Circuit Logical Operator In Java
Java provides two interesting Boolean operators not found in most other computer languages. These are secondary versions of the Boolean AND...
How to get List of stored procedures in SQL Server
This post is about sp_stored_procedures which is used to get a list of stored procedures in a SQL Server database. The simplest way to us...
How to get list of tables in SQL Server
sp_tables returns a list of tables and views that can be queried in a selected database. The basic usage is as follows: sp_tables [ [ @tab...
How To describe table structure in SQL Server
This post is about sp_columns which is used to describe the table structure of a SQL Server table. The simplest way to use sp_columns to s...
HTML5 : Form Input Elements
Apart from the above mentioned attributes, HTML5 input elements introduced several new values for the type attribute. These are listed be...
HTML5 Events
Below are the global event attributes that can be added to HTML5 elements to define event actions. Window Events : Events triggered fo...
Subscribe to:
Posts
(
Atom
)