Sei sulla pagina 1di 20

Appendixes-1

Appendixes
Appendix A:
Appendix B:
Appendix C:
Appendix D:
Appendix E:
Appendix F:
Appendix G:
Appendix H:
Appendix J:
Appendix K:
Appendix L:
Appendix M:
Appendix N:

CIW JavaScript Specialist Objectives and Locations


XHTML 1.0 / HTML 4.01 Elements and Attributes
JavaScript and Active Content
JavaScript Operator Precedence
Pass By Value and By Reference in JavaScript
The JavaScript sort() Method and Arrays
JavaScript and Image Maps
Complex Custom Objects in JavaScript
Metadata and the Web
Color Names and Values
HTML Frames and JavaScript
JavaScript Resources
Works Consulted

All appendixes located on the CIW Online site (http://education.certificationpartners.com/ciw/)

2011 Certification Partners, LLC. All Rights Reserved.


Authorized to be used in American Public University System.
To report abuse, go to www.CIWcertified.com/abuse.

Version 1.01

Appendixes-2

2011 Certification Partners, LLC. All Rights Reserved.


Authorized to be used in American Public University System.
To report abuse, go to www.CIWcertified.com/abuse.

Version 1.01

Glossary-1

JavaScript Specialist
Glossary
add-on A supplemental program that can be
installed in a browser to extend its functionality;
another term for plug-in.
AJAX (Asynchronous JavaScript and XML) A
technology that combines functionality from
JavaScript and XML to allow a Web page to reload only
a specified portion, rather than the entire page, in
response to a request.
argument A value or expression containing data or
code that is passed on to a function or procedure.
array A single variable with multiple values, which
are indexed for easy referencing. In JavaScript, an
array index is zero-based.
bug A term used in computer programming for an
error in the code.
calling statement A statement that transfers
program execution to a subroutine, procedure or
function. When the subroutine is complete, execution
transfers back to the command following the call
statement.
camelCase A common naming convention used in
scripting languages, in which two words are placed
together with no space between and the second (and
sometimes first) word capitalized. In JavaScript,
commonly used for variable, function, object and class
names.

objects cannot be used or referenced without also


referencing the parent (container) object.
control structure In programming, a statement
that uses a comparison operator to make decisions
based on Boolean values, or a statement that causes
code to execute repeatedly (i.e., loop).
cookie Small pieces of information collected by a
Web browser to help maintain state and track user
activities. Cookies can reside in memory or be placed
on a hard drive in the form of a text file.
cross-site scripting (XSS) A security vulnerability
in which an attacker embeds malicious script into a
link that appears to be from a trusted site. Upon
clicking the link, the embedded script is submitted in
the client's HTTP request and can execute on the
user's computer, enabling the attacker to steal
information.
debugging A term used in computer programming
for troubleshooting and repairing code that does not
work properly or at all.
digital certificate An electronic mechanism used to
establish the identity of an individual or an
organization.
Document Object Model (DOM) A W3C
specification intended to render an X/HTML page or
XML document as a programmable object.

casting In JavaScript, a technique for variable


control in which a variable's value is changed from one
data type to another.

Document Type Definition (DTD) A file that


specifies markup declaration for one or more XML
documents; specifies the "grammar" for the XML tags.

code library A collection of predefined, fully formed


scripts, stored in files and made available to Web
developers to copy/paste in order to speed
development of basic functions.

dot notation A reference used to access a property


or method of an object.

concatenation Synthesis of code to simplify it and


reduce duplication; linking two or more units of
information, such as strings or files, to form one unit.
constructor A special function that enables you to
create instances of custom objects.
containership In programming, the principle that
objects are contained within larger objects, and some

2011 Certification Partners, LLC. All Rights Reserved.


Authorized to be used in American Public University System.
To report abuse, go to www.CIWcertified.com/abuse.

event handler In JavaScript, a piece of code that


processes and responds to an event by intercepting the
event and associating executable code with it.
external script JavaScript code that is placed in a
file separate from the X/HTML file, and referenced and
applied to the X/HTML page using the <script> tag. An
alternative to embedding the script within the X/HTML
code. Often a pre-made (pre-written) script provided by
a code library.

Version 1.01

Glossary-2

floating-point calculation A calculation in which


the decimal point can move as needed to account for
significant digits.

nested statement A common programming


practice of embedding a script block within another
script block.

frame-to-frame URL change A technique in which


one frame in a frameset can direct the URL in another
frame to display a different page. This ability
introduces security concerns.

object A programming function that models the


characteristics of abstract or real "objects" using
classes.

function A named block of code that can be called


when needed. In JavaScript, a function can return a
value.

"on the fly" A term describing the creation or


changing of something when needed, even during
execution of an activity. In Web development, the
ability to change X/HTML on a Web page or before it
renders.

global variable In JavaScript, a variable declared


outside of any function, whose value can be accessed
from any function or script block on the page.

operand Data that is to be operated upon or


manipulated in some manner.

graphical user interface (GUI) A program that


provides graphical navigation with menus and screen
icons.

operator A symbol character used in programming


expressions to instruct the program how to store or
manipulate (operate on) a value.

helper application Applications launched


separately from the browser that help the browser
render certain file types, such as .pdf, .mpeg and .doc.

pass by reference Mode that describes when values


are passed to a function, and the function's
parameters receive its argument's actual value.

infinite loop A JavaScript statement that has no


conditions for ending, and thus requires the user to
close the browser in order to end the script.

pass by value Mode that describes when values are


passed to a function, and the function's parameters
receive a copy of its argument's value.

inline scripting Placing JavaScript code within an


X/HTML tag, rather than between the file's <body>
</body> tags.

Perl A script programming language commonly


used for Web server tasks and CGI programs.

JavaScript A scripting language for adding dynamic


interactivity to Web pages. Generally used on the client
side but can also be used on the server side.
JavaScript plug-in In Web development, a file
separate from the X/HTML file and containing
formatting code or programming/ scripting code. The
X/HTML references the external file to apply its
functionality. Generally associated with a specific code
library.
local variable In JavaScript, a variable declared
within a function, whose value cannot be accessed
from any function other than the one in which it was
declared.

PHP (PHP Hypertext Preprocessor) A server-side


X/HTML-embedded scripting language for developing
dynamic Web sites.
property A descriptive characteristic of an object
(such as color, width or height) that the developer
stipulates in the creation of the object.
regular expression In scripting/programming, a
mechanism that searches for specified patterns in text.
relational database A database in which
information from one table can be related to
information in another table, creating data
relationships.

loosely typed language A scripting or programming


language that does not require the developer to declare
a variable's data type and allows a variable's data type
to change. JavaScript is loosely typed.

same origin A policy that defines the relationships


among various pages within a single Web site. It
requires that pages be "ancestors" (e.g., parents,
siblings, children) in order to be allowed to navigate
each other.

maintenance debugging Code repairs performed


after a site has been launched into production. Highly
undesirable.

signed script A script validated by a certificate


authority that can request extended privileges and
abilities in the browser.

metacharacter In programming, a character that


has special meaning, or that can represent a variety of
other characters.

statement A single line of code to be executed in a


script or program.

method An action that can be performed by an


object.

user agent The W3C term for any application, such


as a Web browser or help engine, that renders
X/HTML for display to users.

2011 Certification Partners, LLC. All Rights Reserved.


Authorized to be used in American Public University System.
To report abuse, go to www.CIWcertified.com/abuse.

Version 1.01

Glossary-3

valid XML A term used to describe an XML


document that is well-formed and references a DTD.
value The specific quality (such as a specified color,
width or height) that belongs to the property of an
object.
variable A named space of memory that holds a
value. The value can change depending on a condition
or information passed to the program, or by
reassignment of a new value.
watchpoint In JavaScript, a technique used to
troubleshoot logic errors. Generally an alert, placed in
JavaScript code to check on the program at certain
points, and to ensure the actual output matches the
expected output.

X/HTML entities Symbol characters (such as < or


&) that can be represented as themselves or, in
X/HTML, as an alphanumeric code for purposes of
programming or security. Also known as X/HTML
escape characters.
XML (Extensible Markup Language) A metalanguage that enables the developer to create unique
tags for structuring Web documents based on context
rather than appearance.
XMLHttpRequest A JavaScript object that is used
to request either XML data or plaintext data from a
Web server. Used in AJAX technology.
z-index A CSS property that sets the stack order for
specific elements on a Web page.

well-formed XML A term used to describe an XML


document whose XML coding conforms to strict,
specific syntax rules.

2011 Certification Partners, LLC. All Rights Reserved.


Authorized to be used in American Public University System.
To report abuse, go to www.CIWcertified.com/abuse.

Version 1.01

Glossary-4

2011 Certification Partners, LLC. All Rights Reserved.


Authorized to be used in American Public University System.
To report abuse, go to www.CIWcertified.com/abuse.

Version 1.01

Index-1

Index
- operator, 2-18, 2-21
-- operator, 2-21
-- operator, 2-22
! operator, 2-19
!= operator, 2-19
!== operator, 2-20, 2-22
$ variable, 11-9, 11-18
% operator, 2-18, 4-19
%= operator, 2-18
&& operator, 2-19
* operator, 2-18
*= operator, 2-18
/ operator, 2-18
/= operator, 2-18
? operator, 2-20
{ }, 4-3
|| operator, 2-19
+ operator, 2-18, 2-20, 2-21
++ operator, 2-21, 2-22
+= operator, 2-18, 2-20
< operator, 2-20
<= operator, 2-20
<noscript> tag, 1-12
<script> tag, 1-9, 11-6
= operator, 2-18, 2-21
== operator, 2-19
=== operator, 2-19
> operator, 2-20
>= operator, 2-20
accidental coding, in security, 8-15
addition operator, 2-20
Adobe Flash, vs. AJAX, 12-20
AJAX (Asynchronous JavaScript and XML), 12-3
AJAX and databases, 12-13
AJAX and databases, security issues, 12-16
AJAX and libraries, 12-16
AJAX and servers, 12-12
AJAX scripts, using, 12-7
AJAX, common interactions, 12-6
AJAX, server response issues, 12-13
AJAX, usability issues, 12-16
AJAX, using to edit DOM, 12-10
AJAX-based requests, 12-13
alert dialog box, 5-23
alert messages, 2-4
alert() method, 2-3
alternative coding, browser compatibility, 8-7
ancestor pages, 8-20
anti-virus software, 8-13
appendChild method, 10-17
arguments, 3-3
arguments, passing to functions, 3-6
arguments, using, 3-9
arithmetic expression, 2-17
Array object, 6-23, 9-3
Array object length property, 6-25
array, definition of, 6-23
arrays, 10-8
arrays, custom objects and databases, 9-3
assigning and adding variables, 2-22

2011 Certification Partners, LLC. All Rights Reserved.


Authorized to be used in American Public University System.
To report abuse, go to www.CIWcertified.com/abuse.

assignment expression, 2-16


Asynchronous JavaScript and XML (AJAX), 12-3
attributes, modifying on the fly, 10-13
authentication, with cookies, 8-29
bgColor property, 5-18
Blackberries, 13-18
blocking JavaScript from browser, 8-14
blocking scripts, 8-13
break statement, 4-16, 4-27
browser compatibility, 8-6
browser compatibility, alternative coding, 8-7
browser detection, problems with, 8-7
browser properties, identifying with navigator
object, 5-33
browser restrictions, URL changing, 8-20
browser support for JavaScript versions, 1-8
browser, in security, 8-4
browsers, as user agents, 1-5
browsers, specific, and cookies, 8-30
browsers, standards-based, 8-6
browsers, testing code in various, 13-13
browser-specific security issues, 8-4
BSD (Berkeley Software Distribution) license, 11-19
bug, 13-3
built-in debugging tool, 13-4
built-in functions, 3-18
button object, 7-5
button object, method and event handler of, 7-6
button object, properties of, 7-6
calling statement, 3-3
camelCase, 2-13
Cancel button, 2-7
case statement, 4-26
case-sensitivity, 2-13
casting, 13-17
casting variables, 3-18
CGI, 1-3
characteristics of JavaScript, 1-3
charAt() method, of String object, 6-15
checkbox object, 7-7
checkbox object, method and event handler of, 7-8
checkbox object, properties of, 7-8
Chrome, debugging code in, 13-7
client-side applications, 1-9
client-side detection, 8-6
client-side vs. server-side applications, 1-9
cloaking, 8-19
code comments, 1-13
code libraries, best practices, 11-17
code library, 11-3
code, testing in various browsers, 13-13
code-injection attack, 8-23
coding practice, good, 3-4
ColdFusion, 1-3
comment tag, 1-10
comment, multiple-line, 1-13
comment, single-line, 1-13
comments, 1-13
Common Gateway Interface (CGI), 1-4
communicating with the user, 2-3

Version 1.01

Index-2

comparison expression, 2-17


compiled language, 1-7
complex custom objects, 9-19
concatenating variables, 2-14
concatenation, 2-5, 13-16
concatenation operator, 2-20
condition, single, 4-3
condition, test, 4-3
conditional expression, 2-17
conditional program flow, 4-4
conditions, multiple, 4-4
confirm dialog box, 2-8
confirm() method, 2-7
constructor, 9-4
constructor, the (creating custom objects), 9-4
containership, 5-4
continue in a while loop, 4-18
continue statement, 4-18
control structure, 4-3
cookie crumbs, 8-27
cookie files, deleting or disabling, 8-31
cookie header, 8-28
cookie presence, testing for, 8-32
cookie, assigning, 8-32
cookie, clearing, 8-32
cookie, setting, viewing and clearing, 8-36
cookies, 8-27
cookies and specific browsers, 8-30
cookies and XSS, 8-26
cookies in the browser, users controlling, 8-33
cookies, setting passwords with, 8-41
cookies, shared, 8-29
cookies, storing, 8-30
cookies, why use, 8-29
cookies, with passwords, 8-40
copycenter, 11-19
copyleft, 11-19
copyright issues, 11-18
cross-site scripting (XSS), 8-23
CSS and JavaScript, creating a slideshow, 11-9
curly braces, 4-3
custom JavaScript objects, 9-3
custom object, creating an instance, 9-5
custom objects, advantages, 9-3
custom objects, arrays and databases, 9-3
custom objects, complex, 9-19
custom objects, creating functions for, 9-10
data types, variables, 2-11
database relationships, 12-14
databases, 10-8
databases and AJAX, security issues, 12-16
databases and arrays, 9-3
databases, and AJAX, 12-13
Date object, 6-28
Date object, methods of, 6-30
Date object, methods of, 6-29
debugging, 13-3
debugging code in Google Chrome, 13-7
debugging code in Internet Explorer, 13-5
debugging code in Mozilla Firefox, 13-8
debugging code, steps for, 13-3
debugging logic errors, 13-14
debugging tools, 13-4
debugging, maintenance, 13-14
declaring variables, 2-13
decrement operator, 2-21
default case statement, 4-26
default image, 5-24
default object, 2-9

2011 Certification Partners, LLC. All Rights Reserved.


Authorized to be used in American Public University System.
To report abuse, go to www.CIWcertified.com/abuse.

deprecated code, 8-44


development, quick (JavaScript characteristic), 1-5
DHTML (Dynamic HTML), 12-5
dialog box, 2-5
digital certificate, 8-23
do...while statement, 4-11
Document Object Model (DOM), 5-3
document object, methods of, 5-18
document object, properties of, 5-17
Document Type Definition (DTD), in XML, 12-4
document.write method, differences among
browsers, 8-14
document.write statement, 4-12
document.write() method, 2-9
Dojo, 11-4
DOM, appending text to, 10-17
DOM, changing with getElementsByName, 10-9
DOM, editing with AJAX, 12-10
DOM, manipulating wtih AJAX, 12-3
DOM-based XSS, 8-25
dot notation, 2-9, 5-12
DTD, in XML, 12-6
Dynamic HTML (DHTML), 12-5
dynamic image swapping, 5-26
ECMA, 1-7
ECMA interpretations, 13-13
elements, of forms, 7-3
else keyword, 4-4
else...if statements, multiple (using switch), 4-21
embedding JavaScript into X/HTML, 1-9
encoding, output, 8-25
encryption, 8-3
entities, 8-25
equal operator, 2-19
Error Console, 13-12
evaluating strings, 6-12
event handler, 2-8, 2-25
event handler of button object, 7-6
event handler of checkbox object, 7-8
event handler of radio object, 7-16
event handlers, 3-16
event handlers of form object, 7-5
event handlers of image object, 5-26
event handlers of select object, 7-19
event handlers of text and textarea objects, 7-9
event handlers, window object, 5-6
event-driven, 1-4
events, image object, 5-27
events, user, 3-16
expression types, 2-16
expression with multiple conditions, 4-5
expressions, regular, 6-20
Extensible HTML (XHTML), 12-5
Extensible Markup Language (XML), 12-3
external scripts, 1-12, 11-5
external scripts, loading, 11-6
Extrensible Stylesheet Language Transformation
(XSLT), 12-7
fgColor property, 5-18
field, in database, 12-14
Firebug debugger add-on, 13-8
Firebug, installing and debugging with, 13-9
Firefox, debugging code in, 13-8
Flash, vs. AJAX, 12-20
flavors of JavaScript, 1-6
floating-point calculation, 3-18
for statement, 4-13
form elements, 7-3

Version 1.01

Index-3

form elements, referring to, 7-4


form object, event handlers of, 7-5
form object, JavaScript, 7-4
form object, methods of, 7-5
form object, properties of, 7-4, 7-5
form validation, 7-26
form validation tips, 7-31
form validation using string methods, 6-15
formatting methods of String object, 6-4
forms, interactive, 7-3
frameset page, 8-19
frame-to-frame URL changing, 8-18
function, calling a, 3-6
function, calling from within another function, 3-12
function, defining a, 3-3
function, user-defined, 3-5
functions, 3-3
functions for your objects, creating, 9-10
functions, built-in, 3-18
functions, inserting into X/HTML pages, 3-4
functions, JavaScript in AJAX, 12-7
functions, methods as, 3-17
functions, passing arguments to, 3-6
functions, returning values from, 3-7
functions, using, 3-9
getAttribute() method, 10-13
getElementById method, 10-4
getElementByID, redirecting with, 10-5
getElementsByName() method, 10-7
getElementsByTagName method, 10-11
getFullYear() method vs. getYear(), 6-33
global variable, 3-8
global vs. local variables, 3-8
GNU General Public License (GPL), 11-19
Google Chrome, debugging code in, 13-7
graphical user interface (GUI), 1-5
GUI, 1-5
helper applications, 8-5
history object, properties and methods of, 5-31
HTML, see X/HTML, 1-3
HTTP request, 12-8
Hypertext Markup Language (HTML), 1-3
if statement for conditional program flow, 4-4
if statements, additional, 4-5
if...else statement, 4-3
iframe, 8-19
image maps and JavaScript, 5-30
image object, 5-24
image object events, 5-27
image object, properties of, 5-26, 5-27
image, default, 5-24
images, preloading, 5-25, 5-27
increment operator, 2-21
indexOf() method, 6-12
infinite loop, 8-15
inline frame (iframe), 8-19
inline scripting, 2-25, 5-13
innerHTML property, 8-15, 10-5, 12-7
input validation, 8-26
instance of a custom object, creating an, 9-5
integrated debugging tool, 13-4
interactive forms, 7-3
Internet Explorer, debugging code in, 13-5
interpreted language, 1-7
iPhones, 13-18
isNaN method, 4-9
Java applets, vs. AJAX, 12-20
Java vs. JavaScript, 1-6

2011 Certification Partners, LLC. All Rights Reserved.


Authorized to be used in American Public University System.
To report abuse, go to www.CIWcertified.com/abuse.

JavaScript, 1-3
JavaScript Console, 13-7
JavaScript expressions, 2-16
JavaScript functions, in AJAX, 12-7
JavaScript object hierarchy, 5-3
JavaScript plug-in, 11-5
JavaScript vs. Java, 1-6
JavaScript, native, 13-13
JavaScript-enabled page, creating, 1-14
join() method of Array, 6-24
jQuery, 11-4
jQuery-friendly XHTML, 11-18
JScript, 1-7
JScript, 13-13
keywords in JavaScript, 2-28
language, characteristics of JavaScript, 1-3
lastIndexOf() method, 6-13
lastModified property, 5-18
length property, 6-12
length property of Array object, 6-25
libraries and AJAX, 12-16
libraries, best practices, 11-17
library plug-in, 11-5
library, JavaScript, 11-3
library, loading a, 11-7
literal types, 2-12
load-time error, 13-3
load-time errors, debugging, 13-14
local variable, 3-8
local vs. global variables, 3-8
location, 5-32
locking the browser, 8-15
logic error, troubleshooting, 13-15
logic errors, 13-3
logic errors, debugging, 13-14
logical expression, 2-17
loosely typed language, 3-9
macro, 1-4
maintenance debugging, 13-14
malicious coding, 8-15
Math object, 6-37
Math object, methods of, 6-38
Math object, properties of, 6-38
Math object, using, 6-38
mathematical precedence, 2-24
method inside another method, 2-5
method of button object, 7-6
method of checkbox object, 7-8
method of radio object, 7-16
method, definition, 1-6
methods, 3-3
methods as functions, 3-17
methods of Date object, 6-29
methods of document object, 5-17
methods of form object, 7-5
methods of history object, 5-31
methods of Math object, 6-38
methods of navigator object, 5-33
methods of String object, additional, 6-21
methods of text and textarea objects, 7-9
methods, for formatting String object, 6-4
methods, window object, 5-5
Microsoft Silverlight, vs. AJAX, 12-21
MIT (Massachusetts Institute of Technology)
license, 11-19
mobile devices, 13-18
modulus operator, 2-18, 4-19
MooTools, 11-4

Version 1.01

Index-4

multiple conditions, 4-4


multiple conditions in same expression, 4-5
multiple-line comment indicator, 1-13
multiple-selection list box, 7-24
naming variables, 2-12
native debugging tool, 13-4
native JavaScript, 13-13
navigator object, methods of, 5-33
navigator object, properties of, 5-33
nested statements, 4-17
Number object, 2-24
object hierarchy, JavaScript, 5-3
object methods, creating, 9-6
object, creating a, 9-4
object, definition, 1-5
object-based, 1-4
objects, commonly used, 5-4
objects, custom, 9-3
OK button, 2-7
on the fly, changing XHTML, 10-3
onblur event handler, 3-17
onclick event handler, 3-17
onfocus event handler, 3-17
onload event handler, 2-26, 3-17
onmouseout event handler, 3-17, 5-13
onmouseover event handler, 3-17, 5-13
onunload event handler, 2-25
onunload event handler, 3-17
Open Source Initiative, 11-20
Open Web Application Security Project (OWASP), 8-26
operand, 2-21
operands, 2-17
operating system, in security, 8-4
operator, 2-18
operator precedence, 3-8
operators, definition, 2-17
operators, in JavaScript, 2-17
output encoding, 8-25
OWASP (Open Web Application Security Project), 8-26
parsing XML, with AJAX, 12-13
pass by reference, 3-11
pass by value, 3-11
passwords, with cookies, 8-40
patterns with alphanumeric characters, 6-21
PDAs, 13-18
Perl, 1-3
persistent XSS, 8-24
PHP, 1-3
platform-independence, 1-5
plug-in, from code library, 11-5
plug-ins (library), using, 11-11
pop-up window, 2-3
preloading images, 5-27
pre-made scripts, 11-5
program flow, conditional, 4-4
programming concepts, 1-5
prompt dialog box, 2-6
prompt dialog boxes, 5-22
prompt() method, 2-5
properties of button object, 7-6
properties of checkbox object, 7-7
properties of document object, 5-17
properties of form object, 7-4
properties of history object, 5-31
properties of image object, 5-26
properties of location object, 5-32
properties of Math object, 6-38
properties of navigator object, 5-33

2011 Certification Partners, LLC. All Rights Reserved.


Authorized to be used in American Public University System.
To report abuse, go to www.CIWcertified.com/abuse.

properties of radio object, 7-15


properties of select object, 7-19
properties of text and textarea objects, 7-9
properties, window object, 5-4
property, definition, 1-6
prototype property, 9-6
prototype property, of String object, 6-9
Prototype, code library, 11-4
radio object, 7-15
radio object, method and event handler of, 7-16
radio object, properties of, 7-16
readyState values, in XMLHttpRequest, 12-9
record, in database, 12-14
redirecting browser, 5-36
redirecting with getElementByID, 10-5
reflected XSS, 8-24
RegExp object, 6-20
regular expressions, 6-20
regular expressions, creating, 6-20
relational databases, 12-14
remote objects, referencing, 5-19
removeAttribute() method, 10-13
reserved words in JavaScript, 2-28
return values, using, 3-9
reverse() method of Array, 6-24
REXX, 1-4
rollover image, 5-27
root element, in XML, 12-5
run-time error, 13-3
run-time errors, debugging, 13-14
same origin policy, 8-20
schema, in database, 12-14
script blocking, 8-13
script blocking and XSS, 8-26
script versioning, 1-11
scripting language, 1-3
scripting languages, origins of, 1-3
scripting, introduction to, 1-3
secure JavaScript code, creating, 8-44
security issues, AJAX and databases, 12-16
security issues, browser-specific, 8-4
security zones, 8-22
select object, 7-18
select object, event handlers of, 7-19
select object, properties and subproperties,
7-19, 7-20
selection list box, multiple, 7-24
semicolons in JavaScript, 2-5
separation of scripting from presentation, 11-6
server response issues, AJAX, 12-13
servers, and AJAX, 12-12
server-side applications, 1-9
server-side vs. client-side applications, 1-9
setAttribute() method, 10-13
SGML (Standard Generalized Markup Language), 12-3
shared cookies, 8-29
signed script, 8-22
Silverlight, vs. AJAX, 12-21
single condition, 4-3
single-line comment indicator, 1-13
smartphones, 13-18
sort() method of Array, 6-24
special characters, String object, 6-5
Spry, 11-4
SSL/TLS, 8-3
standards-based browsers, 8-6
state maintenance with cookies, 8-30
stateless language, 10-4

Version 1.01

Index-5

statement, 2-3
statements. nesting, 4-17
status property, 5-13
storing user information, cookies, 8-30
string expression, 2-17
string methods, for form validation, 6-15
String object, 6-3
String object formatting methods, 6-4
String object formatting methods, using, 6-6
String object special characters, 6-5
String object, additional methods, 6-21
subproperties of select object, 7-19
substring() method, 6-13
switch statement, 4-21
switchtest function, 4-26
syntax errors, debugging, 13-14
table, in database, 12-14
Tcl, 1-3
ternary operator, 2-20
test condition, 4-3
testing code, 13-3
testing code, various browsers, 13-13
text and textarea object, event handlers of, 7-10
text and textarea object, methods of, 7-9
text and textarea objects, 7-9
text and textarea objects, properties of, 7-9
text dynamically written to window, 2-9
this keyword, 9-5
time information, setting and extracting, 6-34
title property, 5-18
Tool Command Language (Tcl), 1-3
troubleshooting a logic error, 13-15
type attribute, 1-10
URL changing, frame-to-frame, 8-18
URLs, specifying with location object, 5-31
usability issues, with AJAX, 12-16
user agent, 1-5
user considerations, in code testing, 13-13
user events, 3-16
user-defined function, creating a, 3-5
valid XML, 12-4
validation tips, for forms, 7-31
validation, input, 8-26
validation, of forms, 7-26
value, definition, 1-6

2011 Certification Partners, LLC. All Rights Reserved.


Authorized to be used in American Public University System.
To report abuse, go to www.CIWcertified.com/abuse.

values, returning from functions, 3-7


variable data types, 2-11
variable, definition, 2-11
variables, casting, 3-18
variables, concatenating, 2-14
variables, declaring, 2-14
variables, local vs. global, 3-8
variables, naming, 2-12
variables, storing user data in, 2-15
VBScript, 1-8
versions of JavaScript, 1-8
Visual Basic and VBScript, 1-8
watchpoint, 13-14, 13-15
well-formed XML, 12-5
while statement, 4-8
while statement, using, 4-9
window attributes accessible in open () method, 5-7
window object, as default object, 2-9
window object, event handlers of, 5-6
window object, methods of, 5-5, 5-6
window object, properties of, 5-4, 5-5
windows, opening additional, 5-6
with statement, 5-19
with statement, code comparison, 5-20
X/HTML attributes, modifying, 10-13
X/HTML form elements, 7-3
X/HTML, changing on the fly, 10-3
X/HTML, embedding JavaScript into, 1-9
X/HTML, optimizing for libraries, 11-17
XHTML (Extensible HTML), 12-5
XHTML, jQuery-friendly, 11-18
XML (Extensible Markup Language), 12-3
XML and XHTML, interactions with JavaScript in
AJAX, 12-5
XML DTD, 12-6
XML structures, in AJAX, 12-6
XML, valid, 12-4
XML, well-formed, 12-5
XML-based AJAX, alternatives to, 12-20
XMLHttpRequest object, 12-3, 12-7
XMLHttpRequest, interactions in AJAX, 12-7
XSLT (Extrensible Stylesheet Language
Transformation), 12-7
XSS (cross-site scripting), 8-23
XSS, types of, 8-24

Version 1.01

Index-6

2011 Certification Partners, LLC. All Rights Reserved.


Authorized to be used in American Public University System.
To report abuse, go to www.CIWcertified.com/abuse.

Version 1.01

Supplemental Files Contents-1

Supplemental Files
Contents
The JavaScript Specialist supplemental materials are located on the CIW Online site
(http://education.certification-partners.com/ciw/). The supplemental materials for this course include the
following files to complete the course labs and supplement the course information:

Answers
ANSWERS_Activity.pdf
ANSWERS_CourseAssessment.pdf
ANSWERS_Lab.pdf

Appendix
Appendix_A.pdf
Appendix_B.pdf
Appendix_C.pdf
Appendix_D.pdf
Appendix_E.pdf

Handouts
HANDOUTS_Activity.pdf
HANDOUTS_CourseAssessment.pdf

JavaScript_Spec_Lab Files
Lesson01

Lesson02

Lesson03

Lesson04

Lesson05

ANSWERS_OptionalLab.pdf
ANSWERS_PreAssessment.pdf

Appendix_F.pdf
Appendix_G.pdf
Appendix_H.pdf
Appendix_I.pdf

ANSWERS_Quiz.pdf
ANSWERS_Review.pdf

Appendix_K.pdf
Appendix_L.pdf
Appendix_M.pdf
Appendix_N.pdf

Appendix_J.pdf

HANDOUTS_Lab.pdf

HANDOUTS_Quiz.pdf

HANDOUTS_OptionalLab.pdf

Lesson06
Lesson07
Lesson08
Lesson09

JavaScript_Spec_Lab Files\Lesson01
example_scriptversioning.htm
lab1-1.htm

JavaScript_Spec_Lab Files\Lesson02
example_docWrite.htm
lab2-3.htm
example_mathPrecedence.htm
lab2-3_complete.htm
lab2-1.htm
lab2-4.htm
lab2-1_complete.htm
lab2-4_complete.htm
lab2-2.htm
lab2-5.htm
lab2-2_complete.htm
lab2-5_complete.htm

2011 Certification Partners, LLC. All Rights Reserved.


Authorized to be used in American Public University System.
To report abuse, go to www.CIWcertified.com/abuse.

Lesson10
Lesson11
Lesson12
Lesson13

lab1-1_complete.htm

lab2-6.htm
lab2-6_complete.htm
lab2-7.htm
lab2-7_complete.htm
optionalLab2-1.htm
optionalLab2-2.htm

Version 1.01

Supplemental Files Contents-2

JavaScript_Spec_Lab Files\Lesson03
example_castingError.htm
lab3-2_complete.htm
example_castingError_fixed.htm
lab3-2a.htm
lab3-1.htm
lab3-2a_complete.htm
lab3-1_complete.htm
lab3-2b.htm
lab3-2.htm
lab3-2b_complete.htm

JavaScript_Spec_Lab Files\Lesson04
lab4-2_complete.htm
example_continue.htm
example_doWhile.htm
lab4-2a.htm
example_doWhile_fixed.htm
lab4-2a_complete.htm
example_switch.htm
lab4-3.htm
lab4-1.htm
lab4-3_complete.htm
lab4-1_complete.htm
lab4-4.htm
lab4-2.htm
lab4-4_complete.htm

JavaScript_Spec_Lab Files\Lesson05
images
Lab5-4.htm
example_mouseover.html
Lab5-4_complete.htm
example_withStatement.html
Lab5-5.htm
lab5-1.htm
lab5-5_complete.htm
lab5-1_complete.htm
lab5-6.htm
lab5-2.htm
lab5-6_complete.htm
lab5-2_complete.htm
Lab5-7.htm
Lab5-3.htm
Lab5-7_complete.htm
Lab5-3_complete.htm
lesson5AppProj.htm

JavaScript_Spec_Lab Files\Lesson05\images
ciw.gif
ciw1_off.gif
ciw.jpg
ciw1_on.gif
ciw_off.gif
CIW2.jpg
ciw_on.gif
ciwx.gif
JavaScript_Spec_Lab Files\Lesson06
images
lab6-2a_complete.htm
example_phoneNumberTest.htm
lab6-3.htm
lab6-1.htm
lab6-3_complete.htm
lab6-1_complete.htm
lab6-4.htm
lab6-2.htm
lab6-4_complete.htm
lab6-2a.htm
lab6-5.htm

lab3-3.htm
optionalLab3-1.html
optionalLab3-2.htm
optionalLab3-3.htm
optionalLab3-3_complete.htm

lab4-5.htm
lab4-5_complete.htm
Lab4-6.htm
Lab4-6_complete.htm
lab4-6_newCode.txt
optionalLab4-1.htm
optionalLab4-1_complete.htm

optionalLab5-1.htm
optionalLab5-2.htm
optlab5-1newwindow.htm
optlab5-1newwindow1.htm
optlab5-1newwindow2.htm
optlab5-1newwindow3.htm
optlab5-1newwindow4.htm
optlab5-1newwindow5.htm
optlab5-1newwindow6.htm

mountains.jpg
sunset1.jpg
trees.jpg

lab6-5_complete.htm
lab6-6.html
lab6-6_complete.htm
lab6-6a_IE_complete.htm
lesson6AppProject.htm
optionalLab6-1.htm

JavaScript_Spec_Lab Files\Lesson06\images
ciw.gif
ciw.jpg

2011 Certification Partners, LLC. All Rights Reserved.


Authorized to be used in American Public University System.
To report abuse, go to www.CIWcertified.com/abuse.

Version 1.01

Supplemental Files Contents-3

JavaScript_Spec_Lab Files\Lesson07
lab7-1.htm
lab7-2a.htm
lab7-1_complete.htm
lab7-2a_complete.htm
lab7-1a.htm
lab7-3.htm
lab7-1b.htm
lab7-3_complete.htm
lab7-1b_complete.htm
lab7-3a.htm
lab7-2.htm
lab7-3a_complete.htm
lab7-2_complete.htm
lab7-4.htm
JavaScript_Spec_Lab Files\Lesson08
lab8-1.htm
lab8-1a_code.htm
lab8-1_code.htm
lab8-1a_complete.htm
lab8-1_complete.htm
lab8-2.htm
lab8-1a.htm
lab8-2_complete.htm

JavaScript_Spec_Lab Files\Lesson09
images
lab9-1.htm
CIWProducts.htm
lab9-1_complete.htm
CIWProducts2_suppliers.htm

JavaScript_Spec_Lab Files\Lesson09\images
backpack.jpg
polo.jpg
denim.jpg
rain.jpg
hat.jpg
sport.jpg
notebook.jpg

JavaScript_Spec_Lab Files\Lesson10
images
example_getElementsByTagName.htm
example_appendChild.htm
lab10-1.htm
example_getAttributes.htm
lab10-2.htm
example_getElementById.htm
lab10-2_complete.htm
example_getElementsByName.htm

lab7-4_complete.htm
lab7-5.htm
lab7-5_complete.htm
lab7-5a.htm
lesson7AppProject.htm
optionalLab7-1.htm

lab8-3.htm
lab8-4.htm
lab8-4a.htm
optionalLab8-1.html

optionalLab9-1.htm
optionalLab9-1_complete.htm

suede.jpg
sweat.jpg
sweater.jpg

lab10-3.htm
lab10-3_complete.htm
optionalLab10-1.htm
optionalLab10-1a.htm

JavaScript_Spec_Lab Files\Lesson10\images
pic1.jpg
pic3.jpg
pic2.jpg
pic4.jpg

pic5.jpg

JavaScript_Spec_Lab Files\Lesson11
Lab11-1
Lab11-3
Lab11-2

OptionalLab11-1

JavaScript_Spec_Lab Files\Lesson11\Lab11-1
jquery-1.4.4.min.js
lab11-1_complete.htm
lab11-1.htm

script.js

JavaScript_Spec_Lab Files\Lesson11\Lab11-2
Lab11-2
Lab11-2_completed
2011 Certification Partners, LLC. All Rights Reserved.
Authorized to be used in American Public University System.
To report abuse, go to www.CIWcertified.com/abuse.

Version 1.01

Supplemental Files Contents-4

JavaScript_Spec_Lab Files\Lesson11\Lab11-2\Lab11-2
css.css
pic1.jpg

jquery-1.4.4.min.js
pic2.jpg

lab11-2.html
pic3.jpg

pic4.jpg
pic5.jpg
script.js

JavaScript_Spec_Lab Files\Lesson11\Lab11-2\Lab11-2_completed
css.css
pic1.jpg
pic4.jpg
jquery-1.4.4.min.js
pic2.jpg
pic5.jpg
lab11-2.htm
pic3.jpg
script.js
JavaScript_Spec_Lab Files\Lesson11\Lab11-3
contact.htm
jquery-1.4.4.min.js
jquery.validate.js
lab11-3.htm

lab11-3_complete.htm

JavaScript_Spec_Lab Files\Lesson11\OptionalLab11-1
css.css
optionalLab11-1.htm

jquery-1.4.4.min.js

script.js

JavaScript_Spec_Lab Files\Lesson12
example_changingText
Lab12-1
example_XML
Lab12-2

OptionalLab12-1

JavaScript_Spec_Lab Files\Lesson12\example_changingText
example.htm
example.txt
JavaScript_Spec_Lab Files\Lesson12\example_XML
example_XML.xml
test.dtd
JavaScript_Spec_Lab Files\Lesson12\Lab12-1
ajax.js
Data2.js
Data1.js
Data2.txt
Data1.txt
Data3.js
JavaScript_Spec_Lab Files\Lesson12\Lab12-2
Additional resources and demos
Lab12-2

Data3.txt
lab12-1.htm

Lab12-2_complete

JavaScript_Spec_Lab Files\Lesson12\Lab12-2\Additional resources and demos


css
images
.gitignore
demo
lib
tooltip-info_from-jQuery.html
JavaScript_Spec_Lab Files\Lesson12\Lab12-2\Lab12-2
demo.css
jquery.hoverIntent.js
demo.js
vjquery-1.4.4.min.js
jquery.bgiframe.min.js
lab12-2.html
jquery.cluetip.css
test1.html
jquery.cluetip.js
test2.html

2011 Certification Partners, LLC. All Rights Reserved.


Authorized to be used in American Public University System.
To report abuse, go to www.CIWcertified.com/abuse.

test3.html
test4.html
test5.html
themeswitchertool.js

Version 1.01

Supplemental Files Contents-5

JavaScript_Spec_Lab Files\Lesson12\Lab12-2\Lab12-2_complete
ajax_jquery.js
jquery.hoverIntent.js
test2.html
demo.css
jquery-1.4.4.min.js
test3.html
demo.js
lab12-2.html
test4.html
jquery.bgiframe.min.js
lab12-2_complete.html
test5.html
jquery.cluetip.css
script.xml
themeswitchertool.js
jquery.cluetip.js
test1.html
JavaScript_Spec_Lab Files\Lesson12\OptionalLab12-1
1.jpg
4.jpg

2.jpg
5.jpg

3.jpg
ajax_rotator.js

JavaScript_Spec_Lab Files\Lesson13
example_error.htm
lab13-2.htm
lab13-1.htm
lab13-2_complete.htm
lab13-1_complete.htm
lab13-2a.htm

2011 Certification Partners, LLC. All Rights Reserved.


Authorized to be used in American Public University System.
To report abuse, go to www.CIWcertified.com/abuse.

demo.css
optionalLab12-1.htm
picture.xml

lab13-2b.htm
optionalLab13-1.htm
optionalLab13-1_complete.htm

Version 1.01

Supplemental Files Contents-6

2011 Certification Partners, LLC. All Rights Reserved.


Authorized to be used in American Public University System.
To report abuse, go to www.CIWcertified.com/abuse.

Version 1.01

Authorized to be used in American Public University System.


To report abuse, go to www.CIWcertified.com/abuse.

www.CIWcertified.com
I SBN 0 - 74 2 3 - 2 9 2 8 - 3

*ECL02CEJSRFPR1109*

Authorized to be used in American Public University System.


To report abuse, go to www.CIWcertified.com/abuse.

9 780742 329287

Potrebbero piacerti anche