Third password tutorial Colorado

This is the third in a string of JavaScript password script tutorials.

Local Companies

Database Link LLC
303 269 1801
7125 E.Townsend Dr.
Denver, CO
The Logix Group
(720) 259-7500
8801 E. Hampden Ave.
Denver, CO
Amadeus Consulting
720 564 1231
1995 N. 57th Ct.
Boulder, CO
International Computer Services
720-859-0404
10 S Havana St
Aurora, CO
deSabran
(303) 782-9101
5082 E Hampden Ave
Denver, CO
Database Link LLC
303 269 1801
7125 E.Townsend Dr.
Denver, CO
21st Century Technologies, Inc.
303-744-2178
1566 S. Pennsylvania St.
Denver, CO
EDUSS Education Software
303-779-8700
8000 E Belleview
Greenwood Village, CO
Rapid Refill Ink
303-292-9465
1719 Wazee St
Denver, CO
C Graphics
720-890-2911
8547 E. Arapahoe Rd.
Greenwood Village, CO

provided by: 
Originally published at Internet.com


Hey there...

In this script we again use a format in which the password is the name of the page to be linked to, except in this one, the concept is further hidden because the user will not put in the name of the page. The user will put in a numeric password which will then be turned into the name of the page by the script.

It's done through an array. Let's take a look.

The Script's Effect

Use the password 145

-----------------------------------

Here's the Code

Of course when we have form elements in a script, we start with them so we can understand the hierarchy statements in the functions.

The form itself is given the name "userInput". Following the form flag are three input text boxes, each set to accept only two characters.

The text boxes are named "u1" "u2" and "u3" down the line.

A final button triggers a function called GoIn(). Now we can put together hierarchy statement to grab whatever the user puts into the boxes. Now the GoIn() function: function GoIn() { var Password = new Array("p","j","l","z","o","e","m","b","x","z") ...

Read article at Internet.com site

Featured Local Company

Database Link LLC

303 269 1801
7125 E.Townsend Dr.
Denver, CO
http://www.dblink.co.nz

Related Local Events
SEG - Society of Exploration Geophysicists Annual International Meeting and Exposition 2010
Dates: 10/17/2010 - 10/21/2010
Location: Denver Convention Center
Denver, CO
View Details

INTC 2009
Dates: 9/21/2009 - 9/24/2009
Location: Hyatt Convention Center Hotel
Denver, CO
View Details

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML