This worked example applies styling and functionality to a basic grid of data to produce a simple form control that's a pleasure to use. Features:
Subtle 3D styling, Row selectors & select-all function, Sortable columns.
Select Menu List JavaScript / Forms
Move items from one menu to another by using two multiple-select menus. Make it easy to create a list, for example. I found this useful when creating a distribution list where I had a set of people available on one side and the list on the other.
Control Statements in Java JavaScript / Miscellaneous
A program is a group of statements that are executed to achieve a predetermined task. Statements in a program are generally executed in a sequential manner, which is called sequential execution or sequential control flow. However, by putting the decision-making statement in the program, the normal flow of the program can be controlled. Statements that control the flow of the program are called control statements.
Set Focus to First Available Form Control JavaScript / Forms
Sometimes it is necessary to set the focus to the first available form control. The problem is that complex web pages can contain multiple forms and each form individually can contain hidden or disabled elements and controls that cannot accept focus.
Ajax Rotating Includes Script JavaScript / AJAX
This script lets you input a list of external pages for the script to choose and selectively include one onto the current page, using Ajax. You can choose to display a different file for each day of the week, month, or randomly.
Changing Select element content on the fly JavaScript / Forms
Changing a select element's content on the fly is a powerful feature of JavaScript that's just as practical. It forms the basis of implementing inter-dependant select menus, where the selection of one menu changes the contents of another. In this tutorial, lets look at how this is done, and also, how to create a 2 level interdependent select list using the technique.
Check All/Clear All links for dynamic check-boxes (IE4+ & NN4+) JavaScript / DHTML and DOM
In forms when using check boxes for a list of records that is generated dynamically (example: display of messages in your yahoo or hotmail inbox) you might want a simple feature of checking or clearing all the check boxes related to those records before deleting or moving. Use this simple script to do just so.
Javascripts For Your Website JavaScript / Getting Started
Here is a list of short but invaluable Java scripts you can insert into your own site code to implement a number of small but extremely useful features: Add To Favorite, Set As Homepage, Go To Top Of Page, No Right Click, Print Page, Adding Current Date, Adding Current Time, Pop-Up Page Creation, Closing Window and Copyright Notice Updation.
DHTML Slider Weight Control JavaScript / DHTML and DOM
Slider has two math options: Percent and Score. Percent option has automatic weight redistribution to non-selected sliders if they are not locked.
Browser Version Control JavaScript / User Info
There are different browsers and versions out there. Thus you, the programmer, do not know what JavaScript capabilities the user has. Insuring that the scripts you write run in most users browsers can be done in a few different ways.One way is to use JavaScript to check which browser they are using, and then program accordingly. This is the most common way to avoid any scripting error.
Conditional Statements JavaScript / General Development
A script is usually executed in a top-down approach. Instead of letting the browser proceed as you wish, you can set a condition that would control the sequence of processing. If the condition you set if true, then you can perform a desired operation. This processing is performed using the if condition.
HTML Forms Validation On The Client Side JavaScript / Forms
Form validation on the client-side is essential - it saves time and bandwidth; you also have better control to show the user the wrong field. This comparison of different validation methods includes comments for improving portability and maintainability.
Loops JavaScript / Getting Started
JavaScript performs several types of repetitive operations, called "looping". Loops are set of instructions used to repeat the same block of code till a specified condition returns false or true depending on how you need it. To control the loops you can use counter variable that increments or decrements with each repetition of the loop.