Steve McKean Web Programming Pages

CH 3 -10

Chapter 3 - Passing data Between templates

3 - 1 Set variables to be passed to another template

3 - 2 URL Parameters from the Previous Template

3 - 3 Decoded URL Parameters

3 - 4 URLEncodedFormat(MyString)

3 - 5 Loop over the URL structure and output all of the variable names
and their associated values

3 - 6 Employee Contact Information

3 - 7 Form Output

3 - 8 Multiple Selection List Example - SUBMIT

3 - 9 Checkbox and Radio Button Example

3 - 10 Article Submission Form

3 - 11 Create a form field called form.Phone

3 - 12 LOOP Variable Name Value

3 -13 LOOP Fieldnames From A Form

displaycontactinfo.cfm

URL Parameters from the Previous Template

Form Field Validation Test Form

Chapter 4 - Database Basics

4 - 1 Employee Records

4 - 2 Sorting Query Results Using the SQL ORDER Clause

4 - 3 Failing to Use the group Attribute Results in Duplicate Values in the Output

4 - 4 Using the group Attribute of the cfoutput Tag to Group Records by Department

5 - case.cfm - UCase/LCase

6 - The Date

7 - DecimalFormat

8 - DollarFormat

9 - html code format

10 - html edit format(1)

11 - JavaScript Safe String

12 -Formatting Locale Specific Currency Values using LSCurrencyFormat

13 - Formatting Locale Specific Date Values using LSDateFormat

14 - Formatting Locale Specific Currency Values with the Euro using LSEuroCurrencyFormat

15 - Formatting Locale Specific Numeric Values using LSNumberFormat

16 - Istimeformat.cfm

17 - Formatting Numeric Values using NumberFormat

18 - Paragraph with the double newline characters.

19 - TheTime

20 - Wrap(myString, 80, False)

21 - xml Format

22 - Formatting Boolean Values using YesNoFormat

Chapter 5 - Maintaining Database Records

5 - 1 - Add a New User

5 - 2 - Record Inserted!

5 - 3 - Record Inserted using cfinsert without Field Names!

5 - 4 - Record Inserted using cfinsert with Specific Field Names!

5 - 5 - Employee Profiles

5 - 6 Employee Profiles

5 - 7 - Edit an Existing User

5 - 8 - Record updated using cfquery!

5 - 9 - Record updated using cfupdate without Field Names!

5 - 10 - Record updated using cfupdate with Specific Field Names!

5 - 11 - Populating a Text Area

5 - 12 - Populating a Select List

5 - 13 - Populating a Multiple Select Box

5 - 14 - Populating Multiple Checkboxes

5 - 15 Populating Radio Buttons

5 - 16 - Please select the employee you wish to delete

5 -17 - Please select the employee(s) you wish to delete

18 - insert.cfm - Record Inserted using cfinsert with Specific Field Names!

19 - insertform.cfm - Add a New User

20 - updateform.cfm - Record updated using cfupdate with Specific Field Names!

21 - updatemenuform.cfm Employee Profiles

Chapter 6 - Complex Datatypes

6 - 1 - List1 (#List1#) contains #ListLen(List1)# elements.<br>

6 - 1 - b List2

6 - 1 - c List3

6 - 2 - For Loop

6 - 3 - cfloop index="Element" from="1" to="#ArrayLen(Grades)#

6 - 4 - Create a two dimensional array of student Grades

6 - 5 - StructNew

6 - 6 - StructNew into Table

6 - 7 - cfloop index="position"

6 - 8 - cfloop collection

6 - 9 - Employees in an Array of Structures

6 - 10 - Create a table and output the contents of the query object

11 - complexValuesInQueryCells.cfm

12 - listfirst.cfm - ListFirst

13 - listGetAt.cfm

14 - listLast.cfm -ListLast

15 - queryArraySyntax.cfm - Products = QueryNew

16 - strutCopy.cfm - Create a copy and a duplicate of the structure

7. Maintaining State
     
Setting Up the Web Application Framework

7-1.cfm <cfsilent> Data- output- Suppresses output produced by CFML within the tag's scope.

<cflocation> example

(My Portal)

7-2.cfm

7-3.cfm - 7.3a.cfm
      Using Shared Scope Variables

7.4.cfm this is a called .css template

7.5.cfm EMAIL call customize.cfm

7.6.cfm STOCKS call customize.cfm

7.7.cfm NEWS HEADLINEScall customize.cfm

7.8.cfmBOOKMARKS call customize.cfm

7.9.cfm Customize Your Portal call customize.cfm

    Browser Redirection

PORTAL
      Portal Example CALLS index.cfm

index.cfm

8. Security
      Security Basics

8-1.cfm

<!--- Set the default session state to false, meaning that by default,
users are not logged into the application --->

8-2.cfm

<!--- If the login is successful, log the user in. Otherwise, redirect
them back to the login.cfm page --->

8-3.cfm

<!--- Check to see that passwords match in case the user had JavaScript disabled --->

<!--- Check to make sure the username (the primary key) doesn't already
exist. If it does, make the user go back and enter a different username --->

8-4.cfm

<!--- You may use other files here. Simply change the file name and MIME
type to match the file you wish to use --->

8-5.cfm

<!--- Check to make sure the filename and mime type were passed in
before processing --->

8-6.cfm

8-7.cfm

user login revisited

8-8.cfm

<cfheader statuscode="401">
<cfheader name="WWW-Authenticate" value="Basic realm=""MyPortal""">
<h3>You are not authorized to access the portal</h3>

8-9.cfm

8-10.cfm

My Portal revisited

display.cfm

file="c:\SecuredFiles\#URL.Filename#">
      Implementing Security from Scratch
      Taking Advantage of ColdFusion MX's New Security Framework

9. Error and Exception Handling
      Basic Exception Handling

9-1.cfm

9-2.cfm

9-3.cfm

9-4.cfm

9-5.cfm

9-6.cfm

9-7.cfm

9-8.cfm

9-9.cfm

9-10.cfm

9-11.cfm

9-12.cfm

9-13.cfm

9-14.cfm

9-15.cfm

9-16.cfm

9-17.cfm


      Custom Exception Handling
      Rethrowing Exceptions
      Error Handling Within the Web-Application Framework
      Server-Wide Error Handling

 

10. Dynamic Form Controls
      Combining HTML and CFML Form Controls


      Basic Input Controls

10-1.cfm submits to own html

10-2cfm Error check numbers

10-3.cfm username PASSWORD-CONFIRM PASSWORD


      Textual Input

10-4.cfm text input

10-5.cfm text/numeric input   

  A Selection Control

10-6.cfm textBOX submit

10-7.cfm submit CALLING DATASOURCE - PROGRAMMINGCF


      Sliders

10-8.CFM SLIDER JAVA APPLETS

10-9.CFM SLIDER JAVA APPLETS

10-10.CFM SLIDER JAVA APPLETS
     

Grids

10-11.CFM THROUGH 10-18.CFM
      Trees

10-19.CFM THROUGH 10-24.CFM

10-25.cfm -10-26.cfm COMBINATION OF ALL OF ABOVE
      Preserving Input
      Custom Controls

GO TO CHAPTERS 11 - 17

 

 

Other information:

 

 

 

dsn=ProgrammingColdFusion

 

 

 


[top]

BOOK EXAMPLES PAGE

HOME- INDEX - HTM
oreilly EX. 3 -10
OREILLY EX. 11 - 17
OREILLY EX. 18 - 28
OREILLY PAGE INDEX
WACK
WACK EX. 1 - 14
WACK EX. 15 - 25
WACK EX. 26 - 36
WACK PAGE INDEX

 

ADOBE - COLDFUSION TAG REFERENCE
FUNCTION REFERENCE
 
MACROMEDIA LIVEDOCS
 
macromedia help

 

Course Project

MY LINKS- RESOURCES

Steve McKean
UH-Email

CT LOGIN

CT FORUM CF
user - enter

MACROMEDIA FORUM
user - enter

Course Project MY LINKS- RESOURCES Steve McKean UH-Email
 
ADOBE - COLDFUSION TAG REFERENCE
FUNCTION REFERENCE
 
42773
7

 

Course Project

MY LINKS- RESOURCES

Steve McKean
UH-Email

CT LOGIN

CT FORUM CF
user - enter

MACROMEDIA FORUM user - enter

 
TWW

O'Reilly Book Site

Read Me

 

CFMX HISTORY RESOURCES
OBJECTIVESEXERCISES

1.-Introduction to web programming
2. Implementation tool: CFML

Application
Examples

3.- Market research application
4.- Using databases
5.- Online experiments
6.- Search engines
7.-e-learning
8.- e-shops
9.- Agents

Implementation aspects:

10.-Data exchange
11. -Regular expressions
12. -Re-using code
13. -Distributed processing
14 .- CF components
15. -Web services

Course project