Course Outline

Title:	Introduction to JavaScript & Server-Side Scripting		Course Number:	CS-133S

		Credits:	3

		Date:	November 2010

Institution:	Clackamas Community College

Outline Developed by:	Debra Carino

Type of Program:	Lower Division Collegiate

Course Description:
Design, programming, testing of scripted web pages using JavaScript for client-side applications and PHP for server-side applications. Introduction to fundamental concepts of interactive web pages and server-side database connectivity. Covers the Document Object Model (DOM) and programming constructs like variables, operators, functions, control structures, exception handling.

Course Objectives:
•	Introduce common object-oriented programming constructs and techniques, including the use of objects, properties, methods, variables, control structures, and functions.
•	Present the request-response models for client- and server-side scripting.
•	Foster an understanding of the Document Object Model and Browser Object Model.
•	Provide specific examples of and opportunities for students to program in JavaScript and PHP

Student Learning Outcomes:
Upon successful completion of this course, a student should be able to:
•	Describe the Document Object Model and use the DOM to dynamically alter aspects of web pages via the use of JavaScript.
•	Identify the basic programming structures (objects, functions, comments, variables, loops, logical structures) and implement them in JavaScript and PHP syntax.
•	Explain the difference between client-side and server-side scripting, including the advantages and disadvantages of each.
•	Add interactivity to web pages with client-side JavaScript including:
o	Working with dates and times
o	Performing client-side form validation
o	Performing calculations with form data.
o	Client-side dynamic interaction (image roll-overs, preloaders, drop-down menus, etc.)
•	Create a basic PHP web application that includes:
o	Forms for user-entered data
o	Pages that process the form data by:
•	Validating form data
•	Displaying data onscreen
•	Entering data into a database
•	Removing data from a database
•	Updating data from a database

Length of Course:	33 lecture hours

Grading Method:	Letter grades (A-F) or Pass/No Pass

Prerequisites:	Pass CS-125H and MTH-065 or placement in MTH-095.

Major Topic Outline:
1.	HTML Concept Review
a.	How the Web works
b.	Creating basic web pages
c.	Formatting techniques
d.	Creating HTML forms
e.	Basics of FTP

2.	Introduction to JavaScript
a.	Object-based languages
i.	Objects
ii.	Methods
iii.	Properties
b.	Producing output
c.	Documenting via comment characters
d.	Placing a script in a web page
e.	Calling separate script files

3.	JavaScript Document Object Model (DOM) and Browser Object Models (BOM)
a.	DOM Heirarchy
i.	Modifying pages
ii.	Inserting/deleting/updating elements
iii.	Styles

4.	JavaScript Variables and Operators
a.	Declaring and using variables
b.	Variable scope
c.	Mathematical Operators
d.	Text Operators
e.	Logical Operators
f.	Comparison Operators

5.	JavaScript Functions
a.	Defining and calling functions
i.	Custom defined functions
ii.	Built in JavaScript functions
b.	Using event handlers

6.	JavaScript Control Structures
a.	Logical structures
i.	If, if…else
ii.	Switches
b.	Loops
i.	While, do…while
ii.	For, for…in
c.	Try-catch Exception Handling

7.	JavaScript Applications
a.	Preloading page content
b.	Form Validation
c.	Drop-down Menus
d.	Cookies
e.	Interactive game

8.	Introduction to PHP
a.	Basic syntax
i.	Comments
ii.	Print and echo
iii.	Variables
iv.	Calculations
b.	Built-in functions
c.	Extracting form data

9.	PHP & Database Connectivity
a.	MySQL vs SQL Server vs Oracle
b.	Database Functions
c.	SQL Statements
i.	SELECT
ii.	INSERT
iii.	UPDATE
iv.	DELETE

CCC AAOT/ASOT GENERAL EDUCATION OUTCOMES 	Course Title and Number:   CS-133S
COURSE OUTLINE MAPPING CHART	Introduction to JavaScript & Server-Side Scripting

 Mark outcomes addressed by this course:
•	Mark “C” if this course completely addresses the outcome. Students who successfully complete this course are likely to have attained this learning outcome.
•	Mark “S” if this course substantially addresses the outcome. More than one course is required for the outcome to be completely addressed. Students who successfully complete all of the required courses are likely to have attained this learning outcome.
•	Mark “P” if this course partially addresses the outcome. Students will have been exposed to the outcome as part of the class, but the class is not a primary means for attaining the outcome and assessment for general education purposes may not be necessary.

 As a result of completing the AAOT /ASOT general education requirements, students will be able to:
WR: Writing Outcomes		
1. Read actively, think critically, and write purposefully and capably for academic and, in some 
              cases, professional audiences.		
2. Locate, evaluate, and ethically utilize information to communicate effectively.		
3. Demonstrate appropriate reasoning in response to complex issues.		
SP: Speech/Oral Communication Outcomes		
1. Engage in ethical communication processes that accomplish goals.		
2. Respond to the needs of diverse audiences and contexts.		
3. Build and manage relationships.		
MA: Mathematics Outcomes		
1. Use appropriate mathematics to solve problems.	P	
2. Recognize which mathematical concepts are applicable to a scenario, apply appropriate 
    mathematics and technology in its analysis, and then accurately interpret, validate, and
    communicate the results.	P	
AL: Arts and Letters Outcomes  		
1. Interpret and engage in the Arts & Letters, making use of the creative process to enrich the quality of
    life. 		
2. Critically analyze values and ethics within a range of human experience and expression to engage 
    more fully in local and global issues. 		
SS: Social Science Outcomes		
1. Apply analytical skills to social phenomena in order to understand human behavior.		
2. Apply knowledge and experience to foster personal growth and better appreciate the diverse social
    world in which we live.		
SC: Science or Computer Science Outcomes		
1. Gather, comprehend, and communicate scientific and technical information in order to explore 
    ideas, models, and solutions and generate further questions.		
2. Apply scientific and technical modes of inquiry, individually, and collaboratively, to critically
    evaluate existing or alternative explanations, solve problems, and make evidence-based decisions 
    in an ethical manner.		
3. Assess the strengths and weaknesses of scientific studies and critically examine the influence of 
    scientific and technical knowledge on human society and the environment.		
CL: Cultural Literacy Outcome		
1. Identify and analyze complex practices, values, and beliefs and the culturally and historically 
              defined meanings of difference. 		
IL: Information Literacy Outcomes		
1. Formulate a problem statement.	P	
2. Determine the nature and extent of the information needed to address the problem.	P	
3. Access relevant information effectively and efficiently.	P	
4. Evaluate information and its course critically.	P	
5. Understand many of the economic, legal, and social issues surrounding the use of information.