List of Tests
PHP
test_access.php
- tests the page and field access function check_access()
test_ads.php
- tests the code for the interstial advertisements
test_cookies.php
- tests how cookies work
test_empty_variables.php
- compares usage of empty(), isset(), is_null() functions
test_encrypt.php
-
test_graph.php
- shows simple method for creating bar graphs
test_included_variables.php
- tests how variables can be passed to external and included pages
test_magic_quotes.php
- tests if majic quotes are enabled
test_mysql_real_escape_string.php
- shows what the function does to various special characters
test_path.php
- shows what the results of the various server path global variables are
test_session_variables.php
- tests what kills session variables
test_urlencode_variables.php
-
test_submit.php
- shows approriate code for pressing enter during a form
CSS
test_display_two_divs_on_same_line.htm
- CSS displaying two divs on the same line
JavaScript / AJAX
test_change_button_text.htm
- show how to change 'Submit' button to 'Please wait...'
AJAX Call
- explains the three steps of an AJAX call
test_textarea.htm
- code for counting characters in a textarea
Fade Images In and Out
- use native JavaScript to fade an image in and out
Hidden: Show and Hide Text
- clicking a button shows text, then hides text
Hidden: Show and Hide Divs
- click a link to show and then hide a div. Plus the link changes to the appropriate action.
Hidden: Show and Hide Divs for a Tabbed Menu
- a simple, three tabbed menu that displays content at each tab is clicked
Hidden: Counts and Then Hides All Elements in a Div
- in this example, counts the number of list items in a div and then hides them.
Update Multiple Tags Simultaneously
- this function updates multiple elements with the same class name.
Alerts
: Pull data from input fields and send to alert boxes.
Call a Function from a Function
: Call a function from within another function and pass it arguments.
Change the Text of the Submit Button
: This JavaScript changes the text of the Submit button when clicked.
Compare Date Fields
: Compare the date fields to make sure they make sense.
Compare Two Text Fields
: Compares two dropdown boxes to makes sure they are not the same.
Compare Two Dropdown Boxes
: Compares two dropdown boxes to makes sure they are not the same.
Count Elements
: Count the number of elements by element type (e.g. divs, p, etc.) and/or by class name.
Detect JavaScript
: Redirect users whose browsers do not have JavaScript enabled.
Disappearing Example Text
: The example format is shown within the field, but disappears as soon as the user enters the field.
Dynamic Dropdown Boxes
: Change the choices of a second dropdown box based on the choice selected in the first dropdown box.
Dynamic Text
: Entering text in a field dynamically populates a DIV and a hidden field.
Dynamically Set Hidden Text Fields
: Entering text in a field dynamically sets the value of a hidden text field.
JavaScript Functions
: A list of JavaScript functions (not mine).
Minimum Characters
: Check for a minimum number or characters not including spaces.
Relationship Matrix
: Elaborate JavaScript functions needed for the Breakup Central site
Returning Focus
: When validating a field, this function returns you to the offending field and selects the text.
Validate Date Format
: OnBlur checks to see if date is a valid format.
Wikipedia Link
: Click the link and it dynamically searches Wikipedia for the person's name.
Popups
Window Popup
: Click a link to have a new window pop up.
Send Data Back
: Click a link in the popup window to send data back to the parent window.
Regular Expressions
Valid Surnames
: Checks for special characters and allows apostrophes only in names like O'Conner.
ASP
Contact ID Generator
: Creates a unique, 10 digit contact ID based on date and time.
Date and Time
: Various date and time functions.
List All Server Variables
: A list of all variables on the server.
List All Server Components
: A list of all components installed on the server.
Random Password Generators
: Generates random alphanumeric and numeric passwords.
FrontPage:
File Upload
: Upload files to the server using FrontPage web bots
HTML:
Mailto Links
: build a subject and a message with carriage breaks into a Mailto: link.
Misc.
Standards
: Miscellaneous development standards.
test_regex.php
- tests regex patterns
stars.htm
- simple star rating system