Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
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:
Version 1.01
Appendixes-2
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.
Version 1.01
Glossary-2
Version 1.01
Glossary-3
Version 1.01
Glossary-4
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
Version 1.01
Index-2
Version 1.01
Index-3
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
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
Version 1.01
Index-6
Version 1.01
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
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
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
Version 1.01
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
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
test3.html
test4.html
test5.html
themeswitchertool.js
Version 1.01
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
demo.css
optionalLab12-1.htm
picture.xml
lab13-2b.htm
optionalLab13-1.htm
optionalLab13-1_complete.htm
Version 1.01
Version 1.01
www.CIWcertified.com
I SBN 0 - 74 2 3 - 2 9 2 8 - 3
*ECL02CEJSRFPR1109*
9 780742 329287