JavaScript Editor JavaScript Validator     JavaScript Editor 



Team LiB
Previous Section Next Section

Index

C

.cab files, 638
calcFactorial function, 407, 410
CalcFactorial.htm file, 406–407
CalcFactorialTopFrame.htm file, 405, 406, 410
call method (Function object), 907
Call Stack window
Microsoft Script Debugger, 386–389
Venkman Debugger, 394
caller property (Function object), 907
calling
function, 94, 95
method, 110
cancelable property (event object), 553
caret (^) regular expression special character, 300, 302, 305
carriage return escape sequence, 21, 205
Cascading Style Sheets. See CSS
Cascading Style Sheets: The Definitive Guide (O'Reilly publishers), 452
case statement, 80, 81, 83, 84
case (text)
checking, 113–117
converting, 80, 122, 367, 920
sensitivity
array sorting, 134
error caused by mistake in, 367
password, 874
regular expression, 299, 301
replacement operation, 299–300
SQL, 739
string comparison, 79, 80
variable name, 23, 367, 836
XML, 527, 586, 599
catch statement
browser support, 402–403
exception, catching, 401–404, 407–408, 409
finally clause, 411, 896
nesting, 408–410
throwing error within, 404–408
CDATA block, 601
CDATASection object, 534
ceil method (Math object), 123, 124, 910
cellPadding property (TABLE object), 622
centigrade to Fahrenheit converter application, 62, 797–798. See also Fahrenheit to centigrade converter application
changeImg function, 172
character index, 112
charAt method (String object), 112–113, 919
charCode variable, 115
charCodeAt method (String object), 112–113, 115, 919
charToCheck variable, 115
CheckAnswer.asp file, 778
checkbox control, 192, 208–215, 928–929
Checkbox object, 209, 929
checkboxValue variable, 678
checkBrowser function, 810
checkCharType function, 114
checked
input tag attribute, 208
property
Checkbox object, 209, 929
Radio object, 940
CheckLogOn.asp file, 700
ch1_examp1.htm file, 7
ch2_examp1.htm file, 24
ch2_examp2.htm file, 26
ch2_examp3.htm file, 36
ch2_examp4.htm file, 40
ch2_examp5.htm file, 42
ch2_examp6.htm file, 44
ch3_examp1.htm file, 68
ch3_examp2.htm file, 74
ch3_examp3.htm file, 81–82
ch3_examp4.htm file, 86
ch4_examp1.htm file, 114
ch4_examp2.htm file, 119
ch4_examp3.htm file, 124
ch4_examp4.htm file, 127
ch4_examp5.htm file, 135
ch4_examp6.htm file, 138
ch4_examp7.htm file, 143
ch5_examp1.htm file, 160
ch5_examp2.htm file, 164
ch5_examp3.htm file, 167
ch5_examp4.htm file, 171
ch5_examp5.htm file, 172
ch5_examp6.htm file, 179
ch5_example6.htm file, 175
ch6_examp1.htm file, 189
ch6_examp2.htm file, 196
ch6_examp3.htm file, 197
ch6_examp4.htm file, 200
ch6_examp5.htm file, 206
ch6_examp6.htm file, 211
ch6_examp7.htm file, 218, 221
ch6_examp9.htm file, 223
ch6_examp8_IE.htm file, 221
ch8_examp1.htm file, 293
ch8_examp2.htm file, 302
ch8_examp3.htm file, 313
ch8_examp5.htm file, 320
child property (window object), 239, 249
childNode variable, 622–623
chkDaylightSaving_onclick function, 344–345
choosePage_onchange function, 254
ch16_q2_BuySystem.asp file, 866, 868
ch16_q2_FinalStage.asp file, 866
ch02_q1.htm file, 797
ch02_q2.htm file, 799
ch03_q2.htm file, 800
ch03_q3.htm file, 801
ch03_q4.htm file, 802
ch04_q1.htm file, 803
ch04_q2.htm file, 804
ch04_q3.htm file, 806
ch05_q1.htm file, 807
ch05_q3.htm file, 811
ch06_q1.htm file, 813
ch06_q2.htm file, 816
ch08_q2.htm file, 827
ch08_q3.htm file, 828
ch09_q1.htm file, 830
ch09_q2.htm file, 832
ch11_q1.htm file, 838
ch11_q2.htm file, 841
ch15_q1.htm file, 857
Ch17_LogOn.asp file, 870, 872
Ch17_MessageBoard.htm file, 876
Ch17_MessageBody.asp file, 877, 881
Ch17_Messages.asp file, 876, 880
Ch17_NewMessage.asp file, 878, 882
ch16_q2_PickSystem.htm file, 863, 867
ch16_q2_PurchaseOrder.asp file, 867
Ch17_StoreMessage.asp file, 879
ch16_q2_TopFrame.htm file, 862
ch07_q1_TopFrame.htm file, 818, 820
cinema class, 150–151, 154
class. See also specific class
constructor, 146
CSS class, 448–449
defining, 146–148
empty, 146
house analogy, 145–146
instance, 146–147, 148–150
introduced, 145–146
method definition, 146
object, relation to, 145, 146–147
property, 146
class attribute (HTML element), 449
classid attribute (object tag), 634, 636–637
clearInterval method (window object), 352, 362, 947
clearTimeout method (window object), 348–349, 947
click
event, 554, 556
method
Button object, 928
Checkbox object, 929
Reset object, 941
Submit object, 943
clientHeight property, 848
client-side scripting, server-side compared, 650, 669
clientWidth property, 848
clientX property (event object), 553, 557
clientY property (event object), 553, 557
clipboardData property (window object), 176
clip.right property (Layer object), 507
cloneNode method (Node object), 547
close method
Connection object, 753
document object, 498, 931
window object, 258, 270, 947
closed property (window object), 268, 269, 946
cmdStartQuiz_onclick function, 283, 358–359, 717, 778–779
code
areas, splitting into logical, 16–17
block, 6, 67, 800, 893
breakpoint, inserting in, 383–384, 394–395
browser, opening in, 5
commenting
DTD, 595
HTML, 534
JavaScript, 11
XML, 534, 600, 602
editor, 4–5
execution order, 2
frame code, accessing from another frame, 247–250
function, splitting into, 16
introduced, 1
looping
array, accessing, 87, 88
condition, testing, 85–88, 89–91, 894–895
counter, 85–86, 87, 90, 833
data, handling invalid, 92
debugging loop structure, 380–382, 386
do while loop, 90–91, 894, 895
exiting prematurely, 90–91
Fahrenheit to centigrade converter application, in, 86–88, 90, 91–92
for in loop, 88–89, 894
for loop, 85–88, 894
infinite loop, 90
introduced, 84–85
scripting, in server-side, 671–673
variable, using in, 85–86, 87
while loop, 89–90, 672
modular, 237
parsing, 8
processing, 1
reusing, 16
running, 1
stepping through, 378, 379–383
syntax, 5–6
codebase attribute (object tag), 634, 637–638
collection property, 675
colon (:)
CSS property prefix, 605
HTML style attribute assignment operator, 447
color
background, 7, 11–12, 490, 502, 515
DHTML, formatting using, 455–457, 490, 497–498, 515, 565–567
foreground, 930
hyperlink, 930
screen color depth, 163–166
text
DHTML color effect, 456–457, 565–567
font formatting, using, 919
mouse rollover effect, 456–457, 565–567
style, applying using, 448, 455–457
color property (style object), 455–456, 457
colorDepth property (screen object), 163, 164–165
cols attribute
frameset tag, 254
textarea tag, 205
comma (,)
array data separator, 50
operator, 892
Command window
Microsoft Script Debugger, 384–386
Venkman Debugger, 394
comment
object, 534
statement, 898
commenting code
DTD, 595
HTML, 534
JavaScript, 11
XML, 534, 600, 602
CompBitsCo database
AddOrderDetails.asp file, 761, 763, 764, 767
adoRecordSet variable, 753, 754, 758, 769
BuyItem.asp file, 759, 761–762
CompBitsCo.mdb file, 724, 751
CustomerAddress field, 727
CustomerName field, 727
CustomerOrder table, 728–729, 739, 761, 768
DisplayStock.asp file, 756, 763
form submission, 766–767
form1_onsubmit function, 766
GoodsOrdered field, 727
ItemCost field, 723
ItemDescription field, 723
mySQL variable, 758, 768
NumberInStock field, 723
Order table, 739
OrderDate field, 727, 767
OrderItem table, 728, 729, 731, 761, 769
OrderNo field, 727
QtyOrdered field, 727
Stock table, 725, 731–733
StockId field, 733
TelNumber field, 727
compile method (RegExp object), 915
compiling
conditional, 896–897
introduced, 2
complete property (IMG object), 935
ComplexForm.htm file, 680, 682
complex_frameset_page.htm file, 252
component, 704–710
concat method
Array object, 130–131, 901
String object, 919
concatenating
string, 42–43, 368, 887, 919
URL, variable to, 688
concatString variable, 43
condition, testing
combining conditions, 76
comparison
assignment versus, 66, 70–71, 369
equal to, 65
greater than, 65, 80, 888
greater than or equal to, 65, 80, 888
less than, 65, 80, 888
less than or equal to, 65, 80, 888
not equal to, 65, 888
string comparison, 79–80
variable, assigning result to, 66
compilation, conditional, 896–897
debugging, evaluating condition when, 385–386, 399
else if statement, using, 77–79, 893
else statement, using, 77–79
if statement, using, 66–71, 73–77
logical operator, 71–73
loop statement, in, 85–88, 89–91, 894–895
multiple conditions, 73–77
negation, 73
number value, comparing, 65
operand, 65
precedence, 65–66
RHS, 65
switch statement, using, 80–84, 116, 893, 895
variable, assigning comparison result to, 66
confirm method (window object), 947
Connection object
close method, 753
creating, 752–753, 758
described, 747
Execute method, 753, 758, 761
open method, 752
recordset, opening using, 753–754, 758
SQL, executing using, 747, 753, 761, 768
constructor property
Array object, 900
Boolean object, 902
Date object, 903
Function object, 907
Number object, 911
Object object, 912
RegExp object, 914
String object, 918
Container variable, 539, 540
continue statement, 91–92, 895
Control Panel (Windows)
Add or Remove Programs option, 655
Add/Remove Windows Components option, 651
Administrative Tools, 657, 749
Create New Data Source dialog box, 750
Data Sources (ODBC) icon, 749
ODBC window, 749, 751
Performance and Maintenance option, 657, 748
System DSN tab, 749
controlIndex variable, 215
convertToCentigrade function, 94, 95–97
cookie. See also specific cookie
advertisement, updating using, 444, 839–841
ASP, working with in, 689, 698, 703
browser support, testing, 437
character position, returning, 432
creating, 415, 427–431, 698, 709
deleting, 419, 422, 431, 841
domain parameters, 425–427
expiration, 425, 429, 431, 838
lifespan, 425
name, 419, 426
number of cookies on user computer, maximum, 437
opening, 419
page update since last visit, checking using, 433–437
page visit number, tracking using, 444, 837–839
personalization enabled by, 415
privacy, 438
P3P recommendation, 438
scripting, working with in server-side, 689
security, 419, 426, 427, 438–439
session
limiting cookie lifespan to, 425
tracking using, 710, 712
size, maximum, 437
SSI, inserting using, 709
storing multiple pieces of information in single, 437–438
string
domain portion, 427
empty, 429
expires portion, 425, 429, 431
introduced, 415
name portion, 424–425, 428, 429, 430
path portion, 425–427, 428, 429
searching, 432
secure portion, 427
value portion, 424–425, 428, 429, 430
Trivia Quiz application, 439–443, 793
value
changing, 431
escaping/unescaping, 428, 433
returning, 428, 430, 431–433, 435, 438
setting, 429–431, 435, 436, 437, 438
variable, storing in, 432
viewing, 416–424
Cookie Manager (NN), 423–424
cookie property (document object), 415, 429, 930
Cookies property
Request object, 689
Response object, 698, 794
cookies.txt file, 421, 422
cookieValue
function, 441
variable, 432
Coordinated Universal Time. See UTC
cos method (Math object), 910
Create New Data Source dialog box (Windows Control Panel), 750
createAttribute method (document object), 547
CreateCookie.htm file, 430
createElement method (document object), 547, 549
create.htm file, 548, 550
createMenu function, 486, 487–488, 513–514, 576
CreateObject method (Server object), 704, 707, 746, 752
createTextNode method (document object), 547, 549
credit card information, validating, 868
CSS (Cascading Style Sheets)
AREA object, 604
BLOCK object, 604
browser
override of CSS by, 448
support, 454
class, 448–449
described, 450
Display property, 604
FLOW object, 604
PAGE object, 604
property, 604–605
XML, using with, 603–608, 612–613
ctrlKey property (event object), 554
Currency data type, 723
currentImgNumber variable, 351–352
currentTarget property (event object), 553
cursor type, 760
CustomerAddress field, 727
CustomerBooking class
bookingId property, 148
customerName property, 147, 148
definition, 146–148
film property, 148
get method, 147–148, 152
getCustomerName method, 148
set method, 147–148
showDate property, 148
CustomerName field, 727
CustomerOrder table, 728–729, 739, 761, 768

Team LiB
Previous Section Next Section


JavaScript Editor JavaScript Validator     JavaScript Editor


©