JavaScript Editor JavaScript Validator     JavaScript Editor 



Team LiB
Previous Section Next Section

Index

T

tab escape sequence, 21
table, database. See database, table
table (layout element)
DHTML
alignment, 581, 853
border, 581, 853
menu, table coding for, 477–479, 481, 487–488, 570–571
HTML
database query result, loading to, 755–759
method result, inserting, 125–126
style, applying to cell, 447, 448
TABLE object, 622
tablehtml variable, 487
tagName property (Element object), 539–540
taint function, 926
taintEnabled method, 938
tan method (Math object), 911
tangent, returning, 911
target
form tag attribute, 258
property
event object, 553, 569, 577
Form object, 933
Link object, 936
tbody
HTML tag, 570, 571
object, 622, 623
TD HTML tag
ElementName tag property, as, 447
onclick event handler, 476
RollOut attribute, 477, 481
RollOver attribute, 477, 481
style tag, defining within, 448
syntax, 126
TDMenu style class, 478
TECHFREAKZ.ORG website (www.hacksrus.com), 391
TelNumber field, 727
template rule, 609–610
temporary Internet file folder, clearing, 416–417
test method (RegExp object), 297–298, 303
test2.htm file, 258
test3.htm file, 258
testing application on different platform, 400
text
array
case sensitivity when sorting, 134
match operation, returning in, 296–297, 318–319
string, converting array to, 132–134, 902
blinking, 918
box, creating, 204–205
case, checking, 113–117
case, converting, 80, 122, 367, 920
case 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
character
escape, 21–22, 45, 294, 295, 686
hexadecimal, returning, 428
index, 112
position, returning character at specific, 112, 919
regular expression, matching alternation character in, 310
regular expression, matching position character in, 305–308
regular expression, matching repetition character in, 304–305
regular expression, matching special character in, 300–301
selecting character in string, 112–113
Unicode value, returning, 113, 919
color
DHTML color effect, 456–457, 565–567
font formatting, using, 919
mouse rollover effect, 456–457, 565–567
style, applying using, 448, 455–457
comparing strings, 79–80
concatenating, 42–43, 368, 887, 919
cookie 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
copying substring, 120–122
counting substring occurrences, 119–120
data type, 20–22, 43–45, 723
delimiting string, 21–22
DHTML, in
adding text, 561–565
animating text, 558–561
color effect, 456–457, 565–567
deleting text, 561–565
mouse rollover effect, 456–457, 565–567
moving text, 458–460
referencing Text object, 455
sizing text, 455
spacing text, 455
DOM text node, 547, 549, 569–570
empty string, 41, 429
escape character/sequence, 21–22, 45, 294, 295, 686
font
bold, 919
browser override of formatting, 448
color, 919
italic, 919
size, 919
small, 920
style sheet, formatting using, 446, 448, 449
XML, formatting using, 543
HTML form text element, 191, 198–199, 201–203, 204–206
Latin-1 character set, 949–955
length of string, returning, 111, 112
literal string, 115
numerical data type
converting text to, 45–48, 69
mixing with text in same expression, 43–45
order, reversing, 292–295
position of string, returning, 118, 432
primitive
converting to string, 112
declaring, 112
string, as, 109
replacing, 262, 296, 298–300, 314–318, 919
search operation in cookie string, 432
search operation using indexOf method, 117–120, 432, 919
search operation using match method, 296–297, 318–319
search operation using regular expression
alphanumeric character, 301–304
alternation character, 310
browser support, 294, 295, 306, 307–308
case sensitivity, 299, 301
constructor, 297, 322–323
digit, 300, 302, 311–312
flag, multi-line, 299
global match, 299
grouping, 309–312, 314, 826
introduced, 291
position character, 305–308
repetition character, 304–305
special character, 300–301
splitting text, 313–314, 321
syntax, 297, 300
Trivia Quiz application, 323–329, 789–790
white space, 300
wildcard, 300, 302
search operation using search method, 296, 318, 920
sizing, 455, 919
status bar text, scrolling, 353–357
String object, 110–112
time
formatting time string, 346–347
string, returning time value as, 142, 337–338
Unicode value, returning, 113, 919
word
regular expression, matching in, 300, 306–307, 310, 331, 826–829
reserved, 23, 33, 885–886
wrap, 205, 678, 682
XML
CDATA block, 601
character encoding, 586
entity reference, 600–601
LF character, 600
reserved character, 600
Text object
blur method, 944
defaultValue property, 944
DHTML, referencing in, 455
DOM Text object, 534
focus method, 944
form property, 944
name property, 944
onblur event, 194, 199, 204, 944
onchange event, 198–199, 201, 944
onfocus event, 199, 944
onselect event, 198–199, 944
select method, 198, 944
type property, 944
value property, 198, 944
text property
Anchor object, 927
Option object, 216, 220, 939
textarea HTML tag
cols attribute, 205
rows attribute, 205
wrap attribute, 205, 678, 682
Textarea object
blur method, 945
defaultValue property, 945
described, 945
focus method, 945
form property, 945
name property, 945
onblur event, 945
onchange event, 206–207, 945
onfocus event, 945
onkeydown event, 206–207, 945
onkeypress event, 206–207, 945
onkeyup event, 206–207, 945
onselect event, 945
select method, 945
type property, 945
value property, 206, 945
textArray variable, 295
tfoot HTML tag, 570
thead HTML tag, 570
theDate variable, 225
theregExp variable, 313
theTotal variable, 799
thirdCall function, 388
this
keyword, 146–147
operator, 891
throw statement, 404–408, 896
Time data type, 723
time operation. See also date operation
calculation involving, 106–107
current time, returning, 142–144, 145
date, returning based on time zone, 137
daylight saving time, 337, 340, 343, 344–346
file download timer, 616
GMT, 334
setting time value, 144–145, 339–341
string
formatting time string, 346–347
returning time value as, 142, 337–338
timer
banner, updating using, 349–352, 364, 829–831
clearing, 348–349, 352, 362
DHTML, using, 458–460
image movement, using in, 847
one-shot timer, 347–352
starting, 347–349, 351
status bar text, scrolling using, 353–357
stopping, 348–349
Trivia Quiz application, 357–363, 779, 781
updating at regular interval, 352–357, 360
UTC
converting local time to, 334–339
getting/setting, 339–341, 905
introduced, 334
offset of local time from, calculating, 334, 337, 346
web page
inserting current time in, 142–144
inserting one-shot timer in, 347–352
inserting updating timer in, 352–357, 360
world time, 333
World Time Converter application, 341–347, 352–353
timeDiff variable, 346
timeLeft variable, 360, 361
timelimit variable, 359
timertest.htm file, 348
timertest2.htm file, 349
timesTable variable, 380, 394, 802
timeStamp property (event object), 553
timeString variable, 347
timetest.htm file, 336
title property (document object), 930
toArray method (VBArray object), 921
toDateString method (Date object), 137, 334, 336
toElement property (event object), 472, 569, 577, 578
toElementid variable, 578
toFixed method (Number object), 129–130
toGMTString method (Date object), 905
toLocaleDateString method (Date object), 334, 336
toLocaleString method (Date object), 334, 905
toLocaleTimeString method (Date object), 334, 336, 338
toLowerCase method (String object), 80, 122, 920
toolbar, displaying/hiding, 263
Tools ® JavaScript Console (NN), 397
Tools ® Web Development ® JavaScript Debugger (NN), 392
top
attribute
div tag, 451–453
layer tag, 490, 503
property
Layer object, 490
style object, 458
window object, 250–251, 946
TopWindow.htm file, 238, 240
toSource method
Array object, 901
Boolean object, 902
Date object, 905
Function object, 907
Number object, 912
Object object, 913
RegExp object, 915
String object, 920
toString method
Array object, 225, 902
Boolean object, 902
Date object, 905
JavaArray object, 908
Number object, 912
Object object, 913
RegExp object, 915
String object, 920
totalLayers variable, 513
totalQuestionsToAsk variable, 360, 362
toTimeString method (Date object), 143, 334, 336, 338
toUpperCase method (String object), 80, 122, 367, 920
toUTCString method (Date object), 334, 337, 905
tr HTML tag, 126
Transfer method (Server object), 699
Trivia Quiz application
Answer field, 770
answer variable, 232, 284, 789, 790
answerCorrect function, 99, 232–233, 284, 285
answerRegExp variable, 790
areas, logical, 16–17
AskQuestion.asp file, 778
AskQuestion.htm file, 275–278, 283–284, 323, 328, 782–787
butCheckQ_onclick function, 284
buttonCheckQ_onclick function, 229, 232
CheckAnswer.asp file, 778
cmdStartQuiz_onclick function, 283, 358–359, 717, 778–779
code reuse, 16
cookie usage, 439–443, 793
cookieValue function, 441
data reuse, 16
database
Answer field, 770
AskQuestion.htm file, coding for database functionality, 782–787
key, primary, 775
NoteUserSelections.asp file, coding for database functionality, 777–778, 781
OptionOrder field, 772
query coding, 785, 789
Question table, 770–772, 774, 776
Questionhtml field, 770
QuestionId field, 770, 772, 775–776, 778
QuestionOptions table, 770, 771–772, 775–776, 777
QuestionType field, 770, 789
referential integrity, 776
table relationship, 775–776
described, 14–15
FinalResults.asp file, 778, 788, 790, 791–794
frame structure
banner frame (menubar.htm), 272, 280
fraGlobalFunctions frame, 280–283, 284
fraMenubar frame, 279–280
frameset pages, 273, 274, 278–280
fraQuizPage frame, 274, 777
fraTopFrame frame, 278–279
globalfunctions.htm frame coding, 272, 280–283, 284–287
question frame (AskQuestion.htm), 272, 275–278, 283–284, 323, 328
quiz frame (QuizPage.htm), 272, 274–275, 283, 357–359, 715
function, defining custom in, 97–100
getAnswer function, 283–284, 328
getQuestion function
button coding, 229, 231–232
cookie coding, 440
GlobalFunctions.htm, coding when located in, 285, 323
trivia_quiz.htm, coding when located in, 229, 231–232
globalfunctions.htm file
ASP environment, 718
cookie handling, coding for, 439–441
database interaction, coding for, 779–781
frame handling, coding for, 272, 280–283, 284–287
string manipulation coding for, 323, 325–328
timer, coding for, 357, 358, 359–362
menubar.htm file, 272, 280
multicol_heading.jpg file, 280
noQuestions variable, 359
NoteUserSelections.asp file, 716, 717, 777–778, 781
numberOfQuestionsAsked variable, 285, 360
numberOfQuestionsCorrect variable, 285
OptionOrder field, 772
OutOfTime.asp file, 778, 795
questionChoice variable, 231
Questionhtml field, 770
questionHTML variable, 229, 232, 286
QuestionId field, 770, 772, 775–776, 778
questionLength variable, 231
questionNumber variable, 231
questionsAsked variable, 285
QuestionType field, 770, 789
quizcomplete.gif file, 791
QuizPage.asp file, 714, 715, 717–718, 778–779
QuizPage.htm file, 272, 274–275, 283, 357–359, 715
radio button, 229–233
regular expression usage, 323–329, 789–790
resetQuiz function, 283, 284–285, 778
scripting, server-side, 713–718
SSI usage, 790–791
startTimer function, 779, 781
stopTimer function, 779, 781
timeLeft variable, 360, 361
timelimit variable, 359
timer, 357–363, 779, 781
TopFrame.htm file, 273
totalQuestionsToAsk variable, 360, 362
TriviaQuestions.mdb file, 772
TriviaQuiz.htm file, 273
updateTimeLeft function, 360, 781, 795
truth table, 72
try...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
TryCatch.htm file, 402
txtName_onchange function, 201
type
attribute
embed tag, 629
input tag, 193, 195, 198, 204, 208
script tag, 6
property
Button object, 928
Checkbox object, 929
event object, 553, 555, 931
FileUpload object, 932
form element object, 194
Hidden object, 934
Password object, 939
Radio object, 940
Reset object, 941
Select object, 942
Submit object, 943
Text object, 944
Textarea object, 945
typeof operator, 268, 327, 892

Team LiB
Previous Section Next Section


JavaScript Editor JavaScript Validator     JavaScript Editor


©