Main

 
GrassBlade [The Learning Curve]

Home

GrassBlade:
The Learning Curve

View Source

 
 
 

[Business] [CheckBoxes & Radio Buttons] [Games] [Images] [Miscellaneous] [Selection Lists] [Text] [Validation]

 
 
 
 

     This section of the web site is devoted to coding. The categories listed below are reflective more of their end results than any particular methodology or algorithms. For better or worse, the code itself reflects my programming skills and preferences. While I strive for elegance (to be read as: brevity, readability, and innovation) in my code, you may occasionally find some spaghetti code.

     If you do, advise me; I was probably asleep when I wrote and published it. After all, spaghetti belongs on a plate with meatballs and sauce, or with broccoli, garlic and oil.

 
 
Business
Orderform A primitive, but functional order form
Currency A routine for formatting numbers as US currency
Checkboxes and Radio Buttons
Check Them All Want to use one click to check off all the checkboxes?
Check Them All, But Want to use one click to check off all the checkboxes but one or two?
Tallying Radio Buttons OK, how many "A"s did the user click? 3 versions, one of them offsite.
DropDowns/Selection Lists
Select & Go Menus an introduction to selection list menus.
Selector Lists 3 routines to generate, swap, and execute dynamically generated selector list forms
Multiple Select List Swapping a function for moving "one, all or all but" number of options to another list.
Reordering Selection Lists a script for shifting an option to the first position in the list
Cascading Selects 1 an introductory script for creating cascading menus -- menus that depend upon a prior selection.
Cascading Selects 2 a more generalized versions of the above script.
Reordering Selects 2 an in-place shifting of options, incremental and absolute
Appending Options from Child Windows a method for creating new options from a data located in a popUp window.
Games
DiceRoll A dice roll form for Advanced Dungeon & Dragons
Attribute Generator A form that generates AD&D character attributes
Images
Slideshow 1 a function for displaying X number of images for Y number of. slideshows
Miscellaneous
Add to Favorites a method for bookmarking both viewed and non-viewed pages.
The Arguments Object a method for passing a variable number of parameters to a function.
Document Title Change a snippet for changing the document's title.
The Label Tag HTML for making forms more user-friendly.
RUsure? a snippet for delaying users when they leave your site.
Adding Search Capability a script for searching major search sites from your site.
Text
Reading Text Files into Selects A method for reading text files into a web page
Read Only Fields Two implementations of field locking
Sting Functions 3 string functions: strLeft(), strRight(), lTrim()
Validation and Formatting Routines
Masking Phone Numbers a revision of the Masking Text script. Allows for 2 or more phone numbers
Masking Text a text masking routine that validates phone numbers as an example
Email Address Validation version 2 An email address validation routine.
Validating SSNs two functions for validating U.S. SSNs; one uses text masking.
Validating Forms 1 a routine for ensuring user input
Alert Tricks Some codes for formatting the alert(), confirm(), and prompt() methods
Validating Text 1 Two routines -- script and inline -- for validating and adding to the user's input.
 
     
 

Top of Page

 

Home

   

Last update: