COPYRIGHTED MATERIAL. Index SYMBOLS

Size: px
Start display at page:

Download "COPYRIGHTED MATERIAL. Index SYMBOLS"

Transcription

1 SYMBOLS -- (decrement operators), # (pound sign), 537 $() in jquery, 531 in MooTools, 535, in Prototype, 533 understanding jquery, 550 $ (dollar sign), 320 $$() in MooTools, 576 in Prototype, 559 $.get(), && (AND), 58 * (asterisk) in numerical calculations, precedence, repetition characters, 319 [...] in regular expressions, 315 [^...] in regular expressions, 315 ^ (carat), 320 { } (curly braces) in if statements, incorrect number of, 90 {n,}, 319 {n,m}, 319 {n}, 319 (OR), 58 Index + (plus sign) missing in concatenation, in numerical calculations, precedence, repetition characters, 319 in strings, (increment operators), < (less than), <= (less than or equal to), = (equals) vs. == (is equal to), 91 as assignment operator, 22 in numerical calculations, 27!= (unequal), == (is equal to) vs. = (equals), 91 defi ned, preventing infi nite loops, 77 > (greater than), >= (greater than or equal to), \ (backslash) reusing groups of characters, in strings, 19 when using RegExp(), 336 (double quotation marks) in strings, / (forward slash) in numerical calculations, precedence, in regular expressions, 307 setting cookie path, (hyphen) in CSS properties, 423 COPYRIGHTED MATERIAL

2 - (minus sign) - (minus sign) in numerical calculations, precedence, 30 34! (NOT), 58. (period) in regular expressions, 315? (question mark), 319 ; (semicolons) in statements, 9 (single quotation marks) in strings, ( ) (parentheses) grouping regular expressions, incorrect number of, using functions as properties, A abs(), 161 absolute values, 161 action attribute, 220 ActiveX controls checking for and embedding, exercise question, 489 overview, security issues, 516 summary, using, ActiveX objects defi ned, 454 XMLHttpRequest, ActiveXObject, 683 adding addevent(), 535 new options to selection boxes, options to selection boxes, selection options, address validation, advertisements adding timers to, animating, Ajax creating simple module, dealing with delays, defi ned, degrading gracefully, 524 exercise questions, 525 iframe smart form, jquery support, MooTools support, Prototype support, summary, 525 things to watch out for, validating forms fi elds with, XMLHttpRequest, XMLHttpRequest smart form, ajaxerror(), Ajax.Request(), alert() defi ned, in window, 191 alphabetical comparison, 66 altkey property of Event, 439 of event, 444 AND decision making, in if statements, animated advertisements, appearances changing in DOM, jquery, MooTools, Prototype, 560 appendchild(), 419 appending elements with jquery, applications tools for creating, 5 7 using JavaScript for, 4 appname, arithmetic operators, Array concat(), creating, JavaScript reference, join(), length property, 150 new array methods, object, 150 reverse(), slice(), sort(),

3 breakpoints arrays creating objects, looping, matching, multi-dimensional, searching for, 306 working with, assignment operators vs. comparison operators, 53 defi ned, 22 JavaScript reference, asterisk (*) in numerical calculations, precedence, repetition characters, 319 asynch property of Ajax.Request(), 568 defi ned, jquery s Ajax, 553 in MooTools, 584 asynchronous requests, attr(), 531 Attr defi ned, 403 properties, 705 attributes <form/>, <frameset/>, 267 ActiveX control, changing appearances with class, getting and setting with Element, 408, handling events with HTML, plug-in, radio button, RegExp, 308 in text boxes, 230 textarea, 236 availability of plug-ins/activex controls, available value, 506 B \B, 320 \b, 320 back(), 193 back button and Ajax, backslash (\) reusing groups of characters, in strings, 19 when using RegExp(), 336 base DOM objects, Berners-Lee, Tim, 392 bgcolor property, bind(), bitwise operators, 675 bitwise shift operators, 676 block statements, 8 9, blur(), blur events, 235 <body/> element, 400 BOM (Browser Object Model) defi ned, document, vs. DOM, 399 history, 193 images collection, links collection, 199 location, 194 navigator, overview, screen, 195 window, Boolean, 686 Boolean data, 20 boundary characters, break statements looping, in switch, 67 68, breakpoints defi ned, 103 setting in Dragonfl y, 130 setting in Firebug, setting in IE, setting with Web Inspector,

4 Browser Object Model Browser Object Model (BOM). see BOM (Browser Object Model) browser programming browser checking with navigator, connecting code to events, determining user s browser, document, events, exercise questions, 217 history, 193 images collection, links collection, 199 location, 194 navigator, objects, overview, screen, 195 summary, window, browsers Ajax support, compatibility and, 15 cookie limitations, cookies in Firefox, cookies in IE, debugging. see debugging DOM standard compliance, 398 exception objects, 95 JavaScript and, 2 3 methods for adding new options, needed to create applications, 5 opening new windows in, potential problems with plug-ins, 485 preventing errors in, 93 reference, 669 retrieving XML fi les cross-browser, using XMLHttpRequest, Web standards, writing cross-browser DHTML, bubbles property, 439 button elements combining with text boxes, defi ned, 224 in HTML forms, properties and methods, button property of Event, 439 of event, 444 buttons radio buttons, timer, 360 C call stacks defi ned, 103 Firebug, calling functions, cancelable property, 439 cancelbubble property, 444 carat (^), 320 Cascading Style Sheets (CSS). see CSS (Cascading Style Sheets) case checking character, conversion, case sensitivity common mistakes, 89 in ordering arrays, in RegExp, 308 RegExp() fl a gs, of special characters in regular expressions, 315 case statements, CDATASection, 403 ceil(), chaining methods in jquery, 531 in MooTools, 535 in Prototype, 533 change event, character classes, 315 characters case sensitivity, 89 checking for passphrases for alphanumeric, comparing strings, 66 comparison operator,

5 computer language converting to strings, 149 escaping, logical operator, 58 repetition, reusing groups of, selecting from strings, special characters in regular expressions, String object, 140 in strings, in variables, 21 charat(), charcodeat(), check boxes in HTML forms, checked attribute, checking code, 93 child nodes, 400 child window objects accessing parent variables and functions, defi ned, Chrome Ajax support, 493 browser checking with navigator, DOM standard compliance, 398 class attribute, classes altering styles with MooTools, manipulating styles with Prototype, 560 vs. reference types, 178 using CSS to change styles, classid attribute, clauses, clearing timers continually fi ring timers, 363 one-shot timers, 360 click events counting button, defi ned, 440 handling in DOM, 442 clients, 3 client-side processing, 219 client.x property, 579 clientx property of Event, 440 of event, 444 client.y property, 579 clienty property of Event, 440 of event, 444 clonenode(), 419 close() windows, 285 windows security, 298 closing tags, 9 closures, 501 code access, code stepping defi ned, 103 with Dragonfl y, Firebug, IE, Web Inspector, 127 codebase attribute, coding between frames, collections defi ned, 195 elements, 222 forms, images, links, 199 options, colors changing with style property, 423 setting document, cols attribute, 236 Comment, 403 comments, 12 comparison operators comparing strings, 66 defi ned, JavaScript reference, compatibility, cross-browser. see cross-browser compatibility compiled code, 2 compressed JavaScript frameworks, 529 computer language, 1 737

6 concat() concat(), concatenation defi ned, missing + in, conditional statements decision making, reference, 680 conditions evaluating with consoles, 113 if statement, multiple in if statements, for statement, 72 consoles in debugging, 103 Dragonfl y, 129 Firebug, IE, 122 Web Inspector, 127 constructors ActiveX object, 454 Ajax.Request(), creating, creating arrays, 183 creating elements in Prototype, 561 HttpRequest, object, 136 reference type, 178 RegExp, regular expression, 307 content animation, positioning and moving, separation of style and, continually firing timers defi ned, 358 setting, continue, controls accessing between frames with top, ActiveX. see ActiveX controls code access between frames, 276 HTML events, 726 conversion, data type, converting case, converting time setting and getting UTC date and time, setting timers to fi re at regular intervals, cookie pairs, 387 cookies creating, exercise questions, 389 fresh-baked, getting value, limitations, overview, 367 security and IE6+, strings, summary, 389 Coordinated Universal Time (UTC) defi ned, setting and getting date and time, copying part of array, parts of strings, createelement(), createxmlhttprequest(), 500, cross-browser compatibility defi ned, 15 determining user s browser, 206 with DHTML, retrieving XML fi les, of XML, 395 XMLHttpRequest, crtlkey property of Event, 440 of event, 444 CSS (Cascading Style Sheets) altering styles with MooTools, changing appearances with, changing styles with jquery, manipulating styles with Prototype, 560 rewriting DHTML toolbar with jquery, selecting elements with jquery, selecting elements with Prototype, 559 current date, current time,

7 DHTML D \D, 315 \d, 315 data arrays, basic string operations, conversion, exercise questions, 50 mixing numbers and strings, multi-dimensional arrays, numerical calculations, operator precedence, primitive, 134 summary, 49 transfer with XML, 454 validation, 93 data types creating string objects, 140 ECMAScript, 396 objects and, overview, returning node, 413 databases, 20 Date calculations and, 173 getting Date values, getting time values, JavaScript reference, objects, setting and getting UTC date and time, setting Date values, 172 setting time values, summary, 364 using select element to calculate differences, world time, daylight savings time world time and, 348, 350 World Time Converter, debuggers, 5 debugging call stack window, exercise questions, Firebug code stepping, Firebug console, Firebug watches, in Firefox with Firebug, in IE, IE code stepping, IE console, 122 IE watches, 121 overview, in Safari, setting breakpoints in Firebug, setting breakpoints in IE, summary, 131 using Dragonfl y, decisions AND, comparing strings, 66 comparison operators, else and else if, exercise questions, 86 if statement, logical operators, 58 multiple conditions inside if statements, NOT, 60 OR, 59 overview, summary, switch statement, declarations, 680 decrement loop variables, 72 decrement operators, default statement, 67 68, 70 default windows, defaultstatus, degrading gracefully, 524 delays in Ajax, development tools, 5 DHTML (Dynamic HTML) animated advertisements, defi ned, 391 exercise questions, 468 moving and positioning content with, summary, 467 writing cross-browser with,

8 DHTML toolbar DHTML (Dynamic HTML) toolbar rewriting with jquery, rewriting with MooTools, rewriting with Prototype, displayevent(), 238 Document defi ned, 403 properties and methods, , Document Object Model (DOM). see DOM (Document Object Model) document cookie property, 367 defi ned, forms in, 220 navigating with DOM, as window property, DocumentFragment defi ned, 403 reference, documents defi ned, 9 document representation as tree structure, DocumentType, 403 Dojo, 528 dollar sign ($), 320 DOM (Document Object Model) animated advertisement example, vs. BOM, 399 changing appearances, core objects, defi ned, Document object properties and methods, Element object properties and methods, event handling, event handling in IE, event model and objects, extensions in Prototype, 533 high-level core objects, HTML document as tree structure, HTML elements, HTMLCollection, 709 HTMLDocument, low-level core objects, miscellaneous events, Node object methods, Node object properties, positioning and moving content, standard, summary, 467 domain, 377 domain name servers, 3 domain names cookies and, 370 validation, domready, 535 double quotation marks ( ) in strings, doubleandalert(), do...while, downloading frameworks, Dragonfly, drop-down lists adding and removing options from, creating, methods for adding new options, select element events, Drosera, 123 DTD, 403 Dynamic HTML (DHTML). see DHTML (Dynamic HTML) dynamic properties, 13 E each(), 559, 576 ECMA (European Computer Manufacturers Association), 3 ECMAScript defi ned, 3 Web standards, editors, 5 Element creating, inserting and removing in Prototype, properties and methods,

9 Event.observe() elements accessing in DOM, 422 accessing with for...in, animating, button, changing appearances, changing style with jquery, counting with length, 150 creating, appending and removing with jquery, creating, inserting and removing in MooTools, creating, inserting and removing in Prototype, 561 creating in DOM, 407 creating with DOM methods, defi ned, 41 fi nding with MooTools, form properties and methods, frame, in HTML forms, HTML objects, manipulating styles with Prototype, 560 in multi-dimensional arrays, operations with foreach() and map(), ordering with reverse(), ordering with sort(), positioning and moving, properties and methods, , retrieving in Prototype, select events, selecting with jquery, text, textarea, in tree structure, 400 elements collection, 222 else, else if, address validation, 342 field defi ned, validation, embedding ActiveX controls, plug-ins, enabling IE debugger, Web Inspector, Entity, 403 EntityReference, 403 equals (=) vs. == (is equal to), 91 as assignment operator, 22 in numerical calculations, 27 error handling finally clauses, nested try...catch, prevention, throwing errors, try...catch, error messages display example, jquery s Ajax, errors common, vs. exceptions, 94 potential problems with plug-ins, escape(), 378 escape characters, 19 escape sequences, 19 European Computer Manufacturers Association (ECMA), 3 Event accessing, properties, properties and methods, 724 properties in MooTools, event accessing, properties, event handling button element mouse events, counting button clicks, defi ned, 200 DOM, with HTML attributes, in IE, jquery s Ajax, with object properties, radio button, 240, select element, 254 in text boxes, 230 Event.observe(),

10 eventphase property eventphase property, 439 events connecting code to, defi ned, DOM, DOM model and objects, jquery, MooTools, Prototype, select element, EventTarget, 723 every(), 157 exception handling statements, 681 exception objects, 95 exceptions, 94 execution control statements, 681 exiting loops, expires, 375 expressions, 26. see also regular expressions Ext JS, 528 external JavaScript files, 7 8 external web sites, F features in windows, files, XML retrieving cross-browser, retrieving in Firefox and Opera, retrieving in IE, filter(), finally clauses, Firebug call stack window, code stepping, console, setting breakpoints with, watches, Firefox Ajax support, 493 browser checking with navigator, checking for and embedding plug-ins, compatibility, 15 creating JavaScript applications, 5 7 debugging with Firebug. see Firebug DOM standard compliance, 398 new array methods, problems with blur events and, 235 retrieving XML fi les in, viewing cookies in, firstchild property, 412 fix(), flags in RegExp, 308 floating-point numbers data type conversion, defi ned, 18 floor(), focus(), for statement, foreach(), for...in, form property, forms HTML. see HTML (HyperText Markup Language) forms jquery s Ajax validation, MooTools Ajax validation, Prototype s Ajax validation, validating fi elds with Ajax, XMLHttpRequest smart form, forms collection, forward(), 193 forward slash (/). see / (forward slash) fractional numbers numerical data, 18 in for statements, 74 <frame/>, frames code access between, coding between, exercise questions, overview, scripting iframes, security, 298 summary, support for hidden, 494 top property, window and,

11 href property <frameset/>, framesets code access between frames, defi ning, 267 using as modules, frameworks, JavaScript. see JavaScript frameworks fromcharcode(), 149 fromelement property, 444 Function, functions. see also methods accessing parent in frames, closure, 501 code access between frames, cookie creation, creating, defi ned, exercise questions, 86 getting cookie value, jquery, 531 MooTools, 535 Prototype, 533 scripting between windows, summary, top-level, understanding jquery, 550 using as properties, variable scope and lifetime, XMLHttpRequest, G garbage collection, 23 Garrett, Jesse James, 491 get() functions Date object s UTC date and time, for date values, fi nding elements by idvalue or tagname, getting attributes with Element, for time values, global matches in RegExp, 308 RegExp() fl a gs, global objects, 191 global scope, 83 GMT (Greenwich Mean Time), 348 go(), 193 Google Maps, 492 Google Suggest, 493 greater than (>), greater than or equal to (>=), Greenwich Mean Time (GMT), 348 group elements, 239 grouping regular expressions, H handledata(), 505 hard wrapping text, 236 haschildnodes(), 419 hasclass(), <head/> element, 400 height screen, 195 setting window, 285 Hewitt, Joe, 104 hidden frames, 494 hidden text boxes, hierarchies BOM, 191 frame, 275 HTML document as tree structure, window object, in XHTML, 396 high-level DOM objects defi ned, reference, history, 193 history stacks Ajax usability, defi ned, 193 hosts, 3 href property,

12 html() html(), HTML (HyperText Markup Language) adding to new window, 289 control events, 726 document representation as tree structure, dynamic. see DHTML (Dynamic HTML) elements, event handlers with attributes, navigating documents with DOM, properties vs. JavaScript properties, 13 splitting with match(), String methods, 699 Web standards, vs. XHTML, 396 HTML (HyperText Markup Language) forms adding and removing options from selection boxes, button elements, check boxes and radio buttons, element properties and methods, elements in, exercises, 262 methods for adding new options, object properties and methods, overview, select element events, selection boxes, summary, text elements, textarea element, <html/> element, 400 HTMLAnchorElement, 712 HTMLBodyElement, HTMLButtonElement, 713 HTMLCollection, 709 HTMLDivElement, 713 HTMLDocument, HTMLElement, 712 HTMLFormElement, 714 HTMLFrameElement, HTMLFrameSetElement, 715 HTMLImageElement, 716 HTMLInputElement, HTMLOptionCollection, 718 HTMLOptionElement, HTMLParagraphElement, 718 HTMLSelectElement, HTMLTableCellElement, HTMLTableElement, HTMLTableRowElement, 721 HTMLTableSectionElement, 722 HTMLTextAreaElement, HTTP (HyperText Transfer Protocol) defi ned, 3 standards, HttpRequest module, Hungarian notation, 21 HyperText Transfer Protocol (HTTP) defi ned, 3 standards, hyphen (-) in CSS properties, 423 I id attribute of <frameset/>, 267 accessing elements with, 422 fi nding elements by, identifiers to avoid, 671 IE (Internet Explorer) Ajax support, 493 browser checking with navigator, checking for and embedding ActiveX controls in, code stepping, compatibility, 15 console, 122 cookies and security, creating JavaScript applications, 5 7 debugging in, determining user s browser, event handling in, Node in, 414 potential problems with ActiveX controls, retrieving XML fi les in, scripting iframes,

13 JavaScript frameworks security issues and operator precedence, setting breakpoints in, using XMLHttpRequest, viewing cookies in, watches, 121 if statement decision making, else and, multiple conditions inside, throwing errors, iframes creating back/forward-capable forms with, 517 scripting, images displaying when page loads, images collection, img, incomplete forms, 233 increment loop variables, 72 increment operators, index property, 248 index values, 41 indexof() fi nding array elements with, 156 searching for substrings, infinite loops, 77 information storage with cookies. see cookies initialization defi ned, 25 for statement, 72, 74 <input/> element, insertbefore(), 419 inserting elements in MooTools, in Prototype, 561 installation ActiveX control, Firebug, framework, plug-in, testing framework, instances, integers data type conversion, numerical data, 18 Internet Explorer (IE). see IE (Internet Explorer) Internet protocol (IP) addresses, 3 interpreted code, 2 interpreters, 2 intervals, setting timer, invoking functions, IP (Internet protocol) addresses, 3 is equal to (==) vs. = (equals), 91 defi ned, preventing infi nite loops, 77 islessthan3(), iterations of Array, for statement, 72 J JavaScript browsers and compatibility, 15 ECMAScript and, introduction, 1 7 objects. see objects objects in, simple programs, 8 14 summary, 16 web pages, 7 8 XML and, JavaScript frameworks Ajax support in MooTools, Ajax support in Prototype, creating, appending and removing elements with jquery, creating, inserting and removing elements in MooTools, creating, inserting and removing elements in Prototype, 561 exercise questions, 590 fi nding elements with MooTools, getting started, jquery event model, jquery for Ajax, jquery styles, MooTools events, MooTools styles, Prototype events,

14 JavaScript frameworks (continued) JavaScript frameworks (continued) Prototype styles, 560 retrieving elements in Prototype, rewriting DHTML toolbar with jquery, rewriting DHTML toolbar with MooTools, rewriting DHTML toolbar with Prototype, selecting, selecting elements with jquery, summary, 590 JavaScript reference ActiveXObject, 683 arithmetic operators, Array, assignment operators, bitwise operators, 675 bitwise shift operators, 676 Boolean, 686 browsers, 669 comparison operators, Date, Function, identifi ers to avoid, 671 logical operators, Math, miscellaneous operators, 677 Number, Object, operator precedence, properties and functions, RegExp, reserved words, 670 statements, String, join() defi ned, in simple regular expressions, 314 joining arrays with concat(), jquery Ajax support, creating, appending and removing elements with, defi ned, 528 event model, rewriting DHTML toolbar with, selecting elements with, styles, testing installation, K keyboard events miscellaneous, 726 in text boxes, 230 watching, keycode property, 445 L lastchild property, 412 lastindexof() fi nding array elements with, 156 searching for substrings, using substr()with, 144 leaf nodes, 400 left operands, left property moving and positioning content with, performing animation with, left-hand side (LHS) of comparison operators, of logical operators, length property of Array, 150 of elements collection, 222 of history, 193 of String, 140 less than (< ), less than or equal to (<=), level 0 of DOM, 397 level 1 of DOM, 398 level 2 of DOM, 398 level 3 of DOM, 398 LHS (left-hand side) of comparison operators, of logical operators, lifespan, cookie, 375 lifetime, variable,

15 methods linking to external JavaScript files, 7 8 links collection, 199 list boxes adding and removing options from, creating, methods for adding new options, select element events, listeners, 200 literal values, 23 local time vs. world time, World Time Converter, location defi ned, 194 as window property, logical operators AND, decision making, 58 JavaScript reference, NOT, 60 OR, 59 looping break and continue, to check for plug-ins, defi ned, do...while, exercise questions, 86 for...in, iterative methods of Array, for statement, summary, 85 while, M machine code, 2 manipulating strings. see string manipulation map(), match() defi ned, 306 regular expressions, in simple regular expressions, 314 matches repetition characters, in simple regular expressions, Math JavaScript reference, overview, mathematical capabilities, max(), 161 maxlength attribute, 229 members, Element, 408 memory, message property, 95 message-of-the day displays, metakey property, 440 method attribute of <form/>, 220 of Ajax.Request(), 568 in MooTools, 584 methods for adding new options, Array, Boolean, 686 browser checking with navigator, calling object, 138 charat() and charcodeat(), concat(), creating, appending and removing elements with jquery, creating arrays, creating objects, css(), 539 Date, Document, DOM event model, Element, fromcharcode(), 149 Function, 690 hasclass(), high-level DOM object, HTML element object, HTML forms element, HTML forms object, HTMLCollection, 709 HTMLDocument, HttpRequest module, indexof() and lastindexof(), join(), jquery,

16 methods (continued) methods (continued) match(), Math, Math object, MooTools, 535, moving and positioning content, moving and resizing windows, 297 new array, Node, , Number, 693 Number object, 167 Object, 694 observe(), open(), Prototype, 533 reference type, 178 RegExp(), 307 RegExp, 695 replace(), reverse(), search(), 332 setting and getting UTC date and time, slice(), sort(), split(), String, string manipulation, substr() and substring(), tofixed(), toggleclass(), 540 tolowercase() and touppercase(), XMLHttpRequest, 500 Microsoft Internet Explorer. see IE (Internet Explorer) Microsoft MSXML library recommended versions, XMLHttpRequest, 494 Microsoft Web standards, 393 MIME (Multipurpose Internet Mail Extensions) types checking for plug-ins, 474 defi ned, 471 min(), 161 minified frameworks, 529 minus sign (-) in numerical calculations, precedence, mistakes, common, mobile technology, 395 MochiKit, 528 modal, 13 modular code creating simple Ajax module, defi ned, 263 using framesets as modules, MooTools Ajax support, creating, inserting and removing elements in, defi ned, 528 events, fi nding elements with, rewriting DHTML toolbar with, styles, testing installation, mouse events changing appearances in DOM, handling in IE, miscellaneous, 726 properties of, mousedown events, 440 MouseEvent, mousemove events, 440 mouseout events, 440 mouseover events, 440 mouseup events, 440 moveby(), 297 moveto(), 297 moving content with DHTML, windows, Mozilla Firefox. see Firefox multi-dimensional arrays, multi-line flags, 308 Multipurpose Internet Mail Extensions (MIME) types checking for plug-ins, 474 defi ned,

17 objects N name property accessing Form, exception object, 95 in form elements, 224 radio button, 239 setting cookie, window object, 268 NamedNodeMap defi ned, 402 properties and methods, 704 names changing appearance with classname, cookie, 380 function, returning node, 413 variable, 21 native JavaScript objects, 133 navigation Ajax usability, creating back/forward-capable forms with iframe, DOM with Node, with location, 194 tree structure, navigator browser checking with, defi ned, plugins property, as window property, negation, 60 nested if statements, nested try...catch, Netscape, 393 new keyword, 180 nextsibling property, 412 Node defi ned, 402 methods, properties, reference, NodeList defi ned, 402 properties and methods, <noscript/> element, 209 NOT decision making, 60 in if statements, Notation, 403 Number defi ned, 167 JavaScript reference, tofixed(), numerical data calculations, converting in text boxes, 229 data type conversion, defi ned, 18 mixing strings and, in regular expressions, O Object, objects array, 150 array length, 150 browser. see BOM (Browser Object Model) calculations and Date, 173 charat() and charcodeat(), concat(), creating and using reference type instances, creating array, creating Date, creating new types of, defi ning reference types, Document properties and methods, DOM, Element properties and methods, exception, 95 exercise questions, 188 Form, fromcharcode(), 149 getting Date values, getting time values, high-level DOM, in HTML forms,

18 objects (continued) objects (continued) indexof() and lastindexof(), join(), jquery, low-level DOM, Math, new array methods, Node methods, Node properties, Number, 167 object-based programming, RegExp, reverse(), setting Date values, 172 setting time values, slice(), sort(), String, String s length, 140 substr() and substring(), summary, tofixed(), tolowercase() and touppercase(), XMLHttpRequest, observe(), occurrences counting substring, searching for, 305 one-shot timers defi ned, 358 in web page, onfailure property of Ajax.Request(), 568 in MooTools, 584 onsuccess property of Ajax.Request(), 568 in MooTools, 584 open() using XMLHttpRequest, 497 in window, opener property, opening Dragonfl y, new browser windows, Opera Ajax support, 493 browser checking with navigator, debugging with Dragonfl y, determining user s browser, DOM standard compliance, 398 retrieving XML fi les in, operating systems and plug-ins, 486 operators arithmetic, assignment, 22, bitwise, 675 bitwise shift, 676 comparison, 52 54, logical, 58, miscellaneous, 677 numerical calculations, precedence, 30 34, string, options adding and removing from selection boxes, methods for adding new, select element events, in selection boxes, OR decision making, 59 in if statements, ordering arrays with reverse(), with sort(), ownerdocument property, 413 P page-level scope, 83 page.x property, 578 page.y property, 578 parameters adding features to new windows, adding HTML to new window, 289 of Ajax.Request(), 568 creating functions, defi ned, 13 function,

19 properties jquery s Ajax, method, 138 open(), of rounding methods, 162 using functions as, 92 parent nodes, 400 parent property code access between frames, coding between frames, vs. top property, 277 window object, 268 parent window objects, parentheses ( ) grouping regular expressions, incorrect number of, using functions as properties, parentnode property, 413 parsefloat(), parseint() data type conversion, rounding numbers, 162 parsing, 9 13 passphrases, Password field defi ned, validation, password text boxes, 235 path, patterns, character, 332 period (.) in regular expressions, 315 PHP form field validation with Ajax, plug-ins checking for and embedding, exercise question, 489 overview, summary, using, plus sign (+ ). see + (plus sign) pointers, 92 position characters, positioning content, postal code validation, pound sign (#), 537 pow(), precedence, operator comparison, 53 defi ned, reference, prevention, error, previoussibling property, 412 primitive data defi ned, 134 objects and, privacy and cookies, processing, client-side, 219 processing code, 1 ProcessingInstruction, 403 programming, browsers. see browser programming programming, object-based, properties accessing attributes as, Ajax.Request(), 568 Array, 684 asynchronous request, bgcolor, Boolean, 686 browser checking with navigator, changing appearances with CSS, checking for browser support, cookie, 367 creating arrays, 183 creating objects, 179 Date, 686 defi ned, 134 document, 9 of document, 195 Document, Element, Event, event, exception object, 95 Function, handling events with object, high-level DOM object, of history, 193 HTML element object, HTML forms element, HTML forms object,

20 properties (continued) properties (continued) HTMLCollection, 709 HTMLDocument, 710 img, length. see length property of location, 194 Math, 691 Node, , Number, 692 Object, 693 opener, parent in window, 268 plug-in, position, reference type, 178 RegExp, Request, 584 of screen, 195 String, 698 top, top-level, using as functions, using object, window, 192 Prototype Ajax support, creating, inserting and removing elements in, 561 defi ned, 528 events, retrieving elements in, rewriting DHTML toolbar with, styles, 560 testing installation, punctuation in regular expressions, Q question mark (?), 319 QuickTime determining availability, fi nishing up, plug-in example, potential problems, testing the disabling of form, R radio buttons, random(), readonly attribute, 230 readystate property asynchronous requests, defi ned, 456 installing ActiveX controls, 479 reference types creating and using instances, creating new object types, creating objects, defi ning, RegExp(), 307 RegExp defi ned, domain name validation, address validation, 342 JavaScript reference, postal code validation, telephone number validation, using constructor, regular expressions covering all eventualities, 323 defi ned, 301 grouping, overview, reusing groups of characters, simple, special characters in, using match() with, using replace() with, using search() with, 332 using split() with, relatedtarget property of Event, 440 in MooTools, 579 remote servers, 454 removing attributes with Element, 408, child nodes, 419 elements with jquery, elements with MooTools, elements with Prototype,

21 secure methods for node, 419 options, 253 options from selection boxes, repetition characters, replace() defi ned, 305 in location, 194 regular expressions, in simple regular expressions, request property, 500 requests. see XMLHttpRequest required fields, 233 reserved words defi ned, 21 overview, reset(), 222 Reset buttons, resizing windows, responsexml property, 500 retrieving cookie value, elements in Prototype, XML fi les cross-browser, XML fi les in Firefox and Opera, XML fi les in IE, return statements, 80 reusability of external files, 8 reverse(), RHS (right-hand side) of comparison operators, of logical operators, right operands, right-hand side (RHS) of comparison operators, of logical operators, root nodes, 400 rounding numbers, rows attribute of <frameset/>, 267 of textarea, 236 running code, 1 run-time errors, 93 S \s, 315 \S, 315 Safari Ajax support, 493 browser checking with navigator, debugging in, DOM standard compliance, 398 same-origin policy Ajax security, defi ned, 277 windows security, 298 scope, screen defi ned, 195 setting color depth, as window property, screenx property of Event, 440 of event, 445 screeny property of Event, 440 of event, 445 script blocks, 8 9 </script> tag, 9 <script> tag defi ned, 8 9 linking to external fi les, 7 8 scripting differences among plug-ins, iframes, with top property, between windows, windows security, 298 search() defi ned, regular expressions, 332 searching for date values, for substrings, secure,

22 security security Ajax, cookies and IE6+, IE issues and operator precedence, windows and frames, 298 select(), 229 select elements defi ned, 223 events, properties and methods, in selection boxes, selection boxes adding and removing options from, in HTML forms, methods for adding new options, select element events, selectors, CSS selecting elements in jquery, selecting elements with Prototype, 559 self property, 283 semicolons (;) in statements, 9 send() defi ned, 500, 503 using XMLHttpRequest, 498 separation of content and style, session cookies lifespan, 375 security, set() functions continually fi ring timers, cookie creation, Date object s UTC date and time, for date values, 172 frame and page controls, 282 setting attributes with Element, setting one-shot timers, styles, 560 for time values, SGML (Standard Generalized Markup Language) defi ned, 392 XML and, 394 shiftkey property of Event, 440 of event, 445 simple regular expressions, single quotation marks ( ) in strings, size attribute in selection boxes, 247 in text boxes, 229 slice(), smart forms iframe, XMLHttpRequest, soft wrapping text, 236 some(), 157 sort(), special characters RegExp, in regular expressions, speed in animation, 436 split() defi ned, regular expressions, src property, srcelement property, 445 Standard Generalized Markup Language (SGML) defi ned, 392 XML and, 394 standards DOM, Web, XMLHttpRequest, statements defi ned, 9 JavaScript reference, static methods, 149 static properties, 13 status property, stepping, code. see code stepping storing data with cookies. see cookies storing data with variables, String charat() and charcodeat(), fromcharcode(), 149 indexof() and lastindexof(), JavaScript reference, length property of,

23 Text objects, substr() and substring(), tolowercase() and touppercase(), string manipulation additional methods, covering all eventualities, 323 domain name validation, address validation, 342 exercise questions, grouping regular expressions, match(), overview, 301 postal code validation, RegExp constructor, regular expressions, replace(), reusing groups of characters, search(), 332 simple regular expressions, special characters in regular expressions, split(), summary, 345 telephone number validation, strings basic operations, comparing, 66 converting arrays to, cookie, data type conversion, defi ned, mixing numbers and, not convertible, 40 styles changing appearances with, jquery, MooTools, Prototype, 560 separation of content and, style object, 406 submit() defi ned, 222 vs. focus() and blur(), 225 Submit buttons, substr(), substring(), substrings creating array with split(), searching for, searching for occurrences, 305 switch statement, synchronous requests, T tab strip creation, tables in tree structure, tagname in Element, fi nding elements by, target property of <form/>, 220 of Event, 439 in MooTools, 579 telephone number validation, templates, test(), 314 test conditions. see conditions test expressions, 67 testing disabled forms, frameworks, methods of Array, 157 regular expressions, text boxes, changing appearances in DOM, defi ned, mixing with numbers, nodes, 407 in regular expressions, reversing order with split(), searching for, Text defi ned, 403 methods,

24 text elements text elements creating with DOM methods, defi ned, 223 in HTML forms, properties and methods, textarea, text property, 248 textarea, throwing errors, tick box elements defi ned, 223 properties and methods, time getting values, setting and getting UTC date and, setting values, summary, 364 world time, time zones, 348 timers defi ned, 347 exercise questions, 365 in web page, timestamp property, 439 toelement property, 445 tofixed(), toggleclass(), 540 tolowercase(), toolbar, DHTML. see DHTML (Dynamic HTML) toolbar tools, debugging. see debugging tools needed to create applications, 5 7 top property in frames, moving and positioning content with, performing animation with, top-level properties and functions, touppercase(), transferring data with XML, 454 tree structure of HTML document getting document s root element, navigating with DOM, overview, truth tables, try...catch error handling, finally clauses, nested, throwing errors, two-dimensional arrays, type attribute of <script>, 9 defi ned, 7 for plug-ins, type property of Event, 439 of event, 445 in form elements, 225 in MooTools, 579 types, data. see data types U unavailable value, 506 uncompressed JavaScript frameworks, 529 undefined variables, unequal (!=), unescape(), updates DOM, 422 fi nding changes with cookies, in Prototype, 561 World Time Converter, url property, 584 useragent, Username field defi ned, validation, users base, 15 browser checking, browser checking with navigator, disabling cookies, input errors, interacting with HTML forms. see HTML (HyperText Markup Language) forms UTC (Coordinated Universal Time) defi ned, setting and getting date and time,

25 width property V validation domain names, addresses, 342 form fi eld with Ajax, jquery s Ajax form, MooTools Ajax form, postal codes, Prototype s Ajax form, RegExp(), telephone numbers, XMLHttpRequest smart form, value property in form elements, 224 of Option, 248 setting cookie, values assigning to other variables, assigning to variables, getting cookie, readystate property, 456 returning node, 413 var keyword, 21 variables accessing parent in frames, arrays and, assigning comparison results in, 54 code access between frames, creating objects, IE watches, 121 multi-dimensional arrays, overview, scope and lifetime, scripting between windows, setting in Watch tab, undefi ned, Web Inspector watches, 126 Venkman, 104 Verify Password field defi ned, validation, versions browser checking with navigator, browsers and compatibility, 15 DOM, JavaScript framework, 529 MSXML, potential problems with plug-ins and ActiveX controls, of Web standards, XMLHttpRequest, viewing cookies in Firefox, cookies in IE, W \W, 315 \w, 315 W3C (World Wide Web Consortium) cookie security, 388 DOM. see DOM (Document Object Model) Web standards, watches defi ned, 103 Firebug, IE, 121 key events, web and JavaScript, 2 3 Web Inspector, web pages adding ActiveX controls, adding frameworks to, 530 adding plug-ins, displaying results in, 14 placing script in, 7 8 timers in, web servers Ajax usability and response, defi ned, 3 form fi eld validation with Ajax, Web standards, Webkit, 123 while, whole numbers, 18 width property screen, 195 setting window,

26 window window accessing event property, code access between frames, coding between frames, defi ned, frames and, scripting iframes, setting timers in, top property, windows events, 727 exercise questions, moving and resizing, opening new browser, scripting between, security, 298 summary, word-boundary characters, world time, World Time Converter setting and getting UTC date and time, setting to fi re at regular intervals, World Wide Web Consortium (W3C) cookie security, 388 DOM. see DOM (Document Object Model) Web standards, wrap attribute, 236 write() adding HTML to new window, 289 setting screen color depth, writeoptions(), 257 X XHMTL, XML (extensible Markup Language) error message display example, JavaScript and, retrieving fi le cross-browser, retrieving fi le in Firefox and Opera, retrieving fi le in IE, Web standards, XMLHttpRequest browser checking with, browser s back button and, creating simple Ajax module, dealing with delays, defi ned, smart form, Y Yahoo! User Interface Framework (YUI), 528 Z Zip files,

JavaScript Specialist v2.0 Exam 1D0-735

JavaScript Specialist v2.0 Exam 1D0-735 JavaScript Specialist v2.0 Exam 1D0-735 Domain 1: Essential JavaScript Principles and Practices 1.1: Identify characteristics of JavaScript and common programming practices. 1.1.1: List key JavaScript

More information

710 Index Attributes, 127 action attribute, 263 assigning, bottom attribute, domain name attribute, 481 expiration date attribute, 480 8

710 Index Attributes, 127 action attribute, 263 assigning, bottom attribute, domain name attribute, 481 expiration date attribute, 480 8 INDEX Symbols = (assignment operator), 56 \ (backslash), 33 \b (backspace), 33 \" (double quotation mark), 32 \e (escape), 33 \f (form feed), 33

More information

E ECMAScript, 21 elements collection, HTML, 30 31, 31. Index 161

E ECMAScript, 21 elements collection, HTML, 30 31, 31. Index 161 A element, 108 accessing objects within HTML, using JavaScript, 27 28, 28 activatediv()/deactivatediv(), 114 115, 115 ActiveXObject, AJAX and, 132, 140 adding information to page dynamically, 30, 30,

More information

Introduction to JavaScript p. 1 JavaScript Myths p. 2 Versions of JavaScript p. 2 Client-Side JavaScript p. 3 JavaScript in Other Contexts p.

Introduction to JavaScript p. 1 JavaScript Myths p. 2 Versions of JavaScript p. 2 Client-Side JavaScript p. 3 JavaScript in Other Contexts p. Preface p. xiii Introduction to JavaScript p. 1 JavaScript Myths p. 2 Versions of JavaScript p. 2 Client-Side JavaScript p. 3 JavaScript in Other Contexts p. 5 Client-Side JavaScript: Executable Content

More information

Client-Side Web Technologies. JavaScript Part I

Client-Side Web Technologies. JavaScript Part I Client-Side Web Technologies JavaScript Part I JavaScript First appeared in 1996 in Netscape Navigator Main purpose was to handle input validation that was currently being done server-side Now a powerful

More information

This course is designed for web developers that want to learn HTML5, CSS3, JavaScript and jquery.

This course is designed for web developers that want to learn HTML5, CSS3, JavaScript and jquery. HTML5/CSS3/JavaScript Programming Course Summary Description This class is designed for students that have experience with basic HTML concepts that wish to learn about HTML Version 5, Cascading Style Sheets

More information

JavaScript CS 4640 Programming Languages for Web Applications

JavaScript CS 4640 Programming Languages for Web Applications JavaScript CS 4640 Programming Languages for Web Applications 1 How HTML, CSS, and JS Fit Together {css} javascript() Content layer The HTML gives the page structure and adds semantics Presentation

More information

JavaScript CS 4640 Programming Languages for Web Applications

JavaScript CS 4640 Programming Languages for Web Applications JavaScript CS 4640 Programming Languages for Web Applications 1 How HTML, CSS, and JS Fit Together {css} javascript() Content layer The HTML gives the page structure and adds semantics Presentation

More information

CERTIFICATE IN WEB PROGRAMMING

CERTIFICATE IN WEB PROGRAMMING COURSE DURATION: 6 MONTHS CONTENTS : CERTIFICATE IN WEB PROGRAMMING 1. PROGRAMMING IN C and C++ Language 2. HTML/CSS and JavaScript 3. PHP and MySQL 4. Project on Development of Web Application 1. PROGRAMMING

More information

COMS 469: Interactive Media II

COMS 469: Interactive Media II COMS 469: Interactive Media II Agenda Review Ch. 5: JavaScript An Object-Based Language Ch. 6: Programming the Browser Review Data Types & Variables Data Types Numeric String Boolean Variables Declaring

More information

PHP / MYSQL DURATION: 2 MONTHS

PHP / MYSQL DURATION: 2 MONTHS PHP / MYSQL HTML Introduction of Web Technology History of HTML HTML Editors HTML Doctypes HTML Heads and Basics HTML Comments HTML Formatting HTML Fonts, styles HTML links and images HTML Blocks and Layout

More information

of numbers, converting into strings, of objects creating, sorting, scrolling images using, sorting, elements of object

of numbers, converting into strings, of objects creating, sorting, scrolling images using, sorting, elements of object Index Symbols * symbol, in regular expressions, 305 ^ symbol, in regular expressions, 305 $ symbol, in regular expressions, 305 $() function, 3 icon for collapsible items, 275 > selector, 282, 375 + icon

More information

Index. Ray Nicholus 2016 R. Nicholus, Beyond jquery, DOI /

Index. Ray Nicholus 2016 R. Nicholus, Beyond jquery, DOI / Index A addclass() method, 2 addeventlistener, 154, 156 AJAX communication, 20 asynchronous operations, 110 expected and unexpected responses, 111 HTTP, 110 web sockets, 111 AJAX requests DELETE requests,

More information

Chapter 1 Introduction to Computers and the Internet

Chapter 1 Introduction to Computers and the Internet CPET 499/ITC 250 Web Systems Dec. 6, 2012 Review of Courses Chapter 1 Introduction to Computers and the Internet The Internet in Industry & Research o E Commerce & Business o Mobile Computing and SmartPhone

More information

Such JavaScript Very Wow

Such JavaScript Very Wow Such JavaScript Very Wow Lecture 9 CGS 3066 Fall 2016 October 20, 2016 JavaScript Numbers JavaScript numbers can be written with, or without decimals. Extra large or extra small numbers can be written

More information

JavaScript Programming

JavaScript Programming JavaScript Programming Course ISI-1337B - 5 Days - Instructor-led, Hands on Introduction Today, JavaScript is used in almost 90% of all websites, including the most heavilytrafficked sites like Google,

More information

JavaScript: Events, the DOM Tree, jquery and Timing

JavaScript: Events, the DOM Tree, jquery and Timing JavaScript: Events, the DOM Tree, jquery and Timing CISC 282 October 11, 2017 window.onload Conflict Can only set window.onload = function once What if you have multiple files for handlers? What if you're

More information

Javascript. Many examples from Kyle Simpson: Scope and Closures

Javascript. Many examples from Kyle Simpson: Scope and Closures Javascript Many examples from Kyle Simpson: Scope and Closures What is JavaScript? Not related to Java (except that syntax is C/Java- like) Created by Brendan Eich at Netscape later standardized through

More information

CSC Web Programming. Introduction to JavaScript

CSC Web Programming. Introduction to JavaScript CSC 242 - Web Programming Introduction to JavaScript JavaScript JavaScript is a client-side scripting language the code is executed by the web browser JavaScript is an embedded language it relies on its

More information

CITS1231 Web Technologies. JavaScript Math, String, Array, Number, Debugging

CITS1231 Web Technologies. JavaScript Math, String, Array, Number, Debugging CITS1231 Web Technologies JavaScript Math, String, Array, Number, Debugging Last Lecture Introduction to JavaScript Variables Operators Conditional Statements Program Loops Popup Boxes Functions 3 This

More information

JavaScript & DHTML Cookbool(

JavaScript & DHTML Cookbool( SECOND EDITION JavaScript & DHTML Cookbool( Danny Goodman O'REILLY Beijing Cambridge Farnham Köln Paris Sebastopol Taipei Tokyo Table of Contents Preface xiii 1. Strings 1 1.1 Concatenating (Joining) Strings

More information

Varargs Training & Software Development Centre Private Limited, Module: HTML5, CSS3 & JavaScript

Varargs Training & Software Development Centre Private Limited, Module: HTML5, CSS3 & JavaScript PHP Curriculum Module: HTML5, CSS3 & JavaScript Introduction to the Web o Explain the evolution of HTML o Explain the page structure used by HTML o List the drawbacks in HTML 4 and XHTML o List the new

More information

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1 59313ftoc.qxd:WroxPro 3/22/08 2:31 PM Page xi Introduction xxiii Chapter 1: Creating Structured Documents 1 A Web of Structured Documents 1 Introducing XHTML 2 Core Elements and Attributes 9 The

More information

5/19/2015. Objectives. JavaScript, Sixth Edition. Introduction to the World Wide Web (cont d.) Introduction to the World Wide Web

5/19/2015. Objectives. JavaScript, Sixth Edition. Introduction to the World Wide Web (cont d.) Introduction to the World Wide Web Objectives JavaScript, Sixth Edition Chapter 1 Introduction to JavaScript When you complete this chapter, you will be able to: Explain the history of the World Wide Web Describe the difference between

More information

JavaScript. History. Adding JavaScript to a page. CS144: Web Applications

JavaScript. History. Adding JavaScript to a page. CS144: Web Applications JavaScript Started as a simple script in a Web page that is interpreted and run by the browser Supported by most modern browsers Allows dynamic update of a web page More generally, allows running an arbitrary

More information

COMS 469: Interactive Media II

COMS 469: Interactive Media II COMS 469: Interactive Media II Agenda Review Data Types & Variables Decisions, Loops, and Functions Review gunkelweb.com/coms469 Review Basic Terminology Computer Languages Interpreted vs. Compiled Client

More information

5. Strict mode use strict ; 6. Statement without semicolon, with semicolon 7. Keywords 8. Variables var keyword and global scope variable 9.

5. Strict mode use strict ; 6. Statement without semicolon, with semicolon 7. Keywords 8. Variables var keyword and global scope variable 9. Javascript 1) Javascript Implementation 1. The Core(ECMAScript) 2. DOM 3. BOM 2) ECMAScript describes 1. Syntax 2. Types 3. Statements 4. Keywords 5. Reserved words 6. Operators 7. Objects 3) DOM 1. Tree

More information

JavaScript. History. Adding JavaScript to a page. CS144: Web Applications

JavaScript. History. Adding JavaScript to a page. CS144: Web Applications JavaScript Started as a simple script in a Web page that is interpreted and run by the browser Supported by most modern browsers Allows dynamic update of a web page More generally, allows running an arbitrary

More information

Web Site Development with HTML/JavaScrip

Web Site Development with HTML/JavaScrip Hands-On Web Site Development with HTML/JavaScrip Course Description This Hands-On Web programming course provides a thorough introduction to implementing a full-featured Web site on the Internet or corporate

More information

CGS 3066: Spring 2015 JavaScript Reference

CGS 3066: Spring 2015 JavaScript Reference CGS 3066: Spring 2015 JavaScript Reference Can also be used as a study guide. Only covers topics discussed in class. 1 Introduction JavaScript is a scripting language produced by Netscape for use within

More information

Setting Up a Development Server What Is a WAMP, MAMP, or LAMP? Installing a WAMP on Windows Testing the InstallationAlternative WAMPs Installing a

Setting Up a Development Server What Is a WAMP, MAMP, or LAMP? Installing a WAMP on Windows Testing the InstallationAlternative WAMPs Installing a Setting Up a Development Server What Is a WAMP, MAMP, or LAMP? Installing a WAMP on Windows Testing the InstallationAlternative WAMPs Installing a LAMP on Linux Working Remotely Introduction to web programming

More information

JAVASCRIPT AND JQUERY: AN INTRODUCTION (WEB PROGRAMMING, X452.1)

JAVASCRIPT AND JQUERY: AN INTRODUCTION (WEB PROGRAMMING, X452.1) Technology & Information Management Instructor: Michael Kremer, Ph.D. Class 1 Professional Program: Data Administration and Management JAVASCRIPT AND JQUERY: AN INTRODUCTION (WEB PROGRAMMING, X452.1) WHO

More information

Index. C CakePHP framework, 232 Cascading Style Sheets (CSS)

Index. C CakePHP framework, 232 Cascading Style Sheets (CSS) A Absolute link, 61, 62 Agile project management, 15 16 budget management, 18 19 scope management, 19 20 time management, 17 Ajax. See Asynchronous JavaScript and XML (Ajax) Anonymous functions, 183 188

More information

JAVASCRIPT AND JQUERY: AN INTRODUCTION (WEB PROGRAMMING, X452.1)

JAVASCRIPT AND JQUERY: AN INTRODUCTION (WEB PROGRAMMING, X452.1) Technology & Information Management Instructor: Michael Kremer, Ph.D. Class 8 Professional Program: Data Administration and Management JAVASCRIPT AND JQUERY: AN INTRODUCTION (WEB PROGRAMMING, X452.1) AGENDA

More information

Creating HTML files using Notepad

Creating HTML files using Notepad Reference Materials 3.1 Creating HTML files using Notepad Inside notepad, select the file menu, and then Save As. This will allow you to set the file name, as well as the type of file. Next, select the

More information

JScript Reference. Contents

JScript Reference. Contents JScript Reference Contents Exploring the JScript Language JScript Example Altium Designer and Borland Delphi Run Time Libraries Server Processes JScript Source Files PRJSCR, JS and DFM files About JScript

More information

INDEX SYMBOLS See also

INDEX SYMBOLS See also INDEX SYMBOLS @ characters, PHP methods, 125 $ SERVER global array variable, 187 $() function, 176 $F() function, 176-177 elements, Rico, 184, 187 elements, 102 containers,

More information

Part 1: jquery & History of DOM Scripting

Part 1: jquery & History of DOM Scripting Karl Swedberg: Intro to JavaScript & jquery 0:00:00 0:05:00 0:05:01 0:10:15 0:10:16 0:12:36 0:12:37 0:13:32 0:13:32 0:14:16 0:14:17 0:15:42 0:15:43 0:16:59 0:17:00 0:17:58 Part 1: jquery & History of DOM

More information

UNIT -II. Language-History and Versions Introduction JavaScript in Perspective-

UNIT -II. Language-History and Versions Introduction JavaScript in Perspective- UNIT -II Style Sheets: CSS-Introduction to Cascading Style Sheets-Features- Core Syntax-Style Sheets and HTML Style Rle Cascading and Inheritance-Text Properties-Box Model Normal Flow Box Layout- Beyond

More information

Get in Touch Module 1 - Core PHP XHTML

Get in Touch Module 1 - Core PHP XHTML PHP/MYSQL (Basic + Advanced) Web Technologies Module 1 - Core PHP XHTML What is HTML? Use of HTML. Difference between HTML, XHTML and DHTML. Basic HTML tags. Creating Forms with HTML. Understanding Web

More information

,

, Weekdays:- 1½ hrs / 3 days Fastrack:- 1½hrs / Day [Class Room and Online] ISO 9001:2015 CERTIFIED ADMEC Multimedia Institute www.admecindia.co.in 9911782350, 9811818122 Welcome to one of the highly professional

More information

INDEX. Symbols. Eloquent JavaScript 2011 by Marijn Haverbeke

INDEX. Symbols. Eloquent JavaScript 2011 by Marijn Haverbeke INDEX Symbols &&, as logical and operator, 14, 28 * (asterisk), as multiplication operator, 11, 27, 142 *= operator, 23 \ (backslash), 12, 140, 141 {} (braces) for blocks, 21, 32, 194 for objects, 43,

More information

AJAX: The Basics CISC 282 March 25, 2014

AJAX: The Basics CISC 282 March 25, 2014 AJAX: The Basics CISC 282 March 25, 2014 Synchronous Communication User and server take turns waiting User requests pages while browsing Waits for server to respond Waits for the page to load in the browser

More information

COMS 469: Interactive Media II

COMS 469: Interactive Media II COMS 469: Interactive Media II Agenda Review Ch. 7: HTML Forms Ch. 9: String Manipulation Review Object Oriented Programming JavaScript Native Objects Browser Objects Review OOP Terminology Object Properties

More information

Lecture 3: The Basics of JavaScript. Background. Needs for Programming Capability. Origin of JavaScript. Using Client-side JavaScript

Lecture 3: The Basics of JavaScript. Background. Needs for Programming Capability. Origin of JavaScript. Using Client-side JavaScript Lecture 3: The Basics of JavaScript Wendy Liu CSC309F Fall 2007 Background Origin and facts 1 2 Needs for Programming Capability XHTML and CSS allows the browser to passively display static content How

More information

Index COPYRIGHTED MATERIAL

Index COPYRIGHTED MATERIAL Index COPYRIGHTED MATERIAL Note to the Reader: Throughout this index boldfaced page numbers indicate primary discussions of a topic. Italicized page numbers indicate illustrations. A abstract classes

More information

Working with JavaScript

Working with JavaScript Working with JavaScript Creating a Programmable Web Page for North Pole Novelties 1 Objectives Introducing JavaScript Inserting JavaScript into a Web Page File Writing Output to the Web Page 2 Objectives

More information

Developing Ajax Web Apps with GWT. Session I

Developing Ajax Web Apps with GWT. Session I Developing Ajax Web Apps with GWT Session I Contents Introduction Traditional Web RIAs Emergence of Ajax Ajax ( GWT ) Google Web Toolkit Installing and Setting up GWT in Eclipse The Project Structure Running

More information

JavaScript Introduction

JavaScript Introduction JavaScript Introduction Web Technologies I. Zsolt Tóth University of Miskolc 2016 Zsolt Tóth (UM) JavaScript Introduction 2016 1 / 31 Introduction Table of Contents 1 Introduction 2 Syntax Variables Control

More information

AJAX: The Basics CISC 282 November 22, 2017

AJAX: The Basics CISC 282 November 22, 2017 AJAX: The Basics CISC 282 November 22, 2017 Synchronous Communication User and server take turns waiting User requests pages while browsing Waits for server to respond Waits for the page to load in the

More information

HTML5. HTML5 Introduction. Form Input Types. Semantic Elements. Form Attributes. Form Elements. Month Number Range Search Tel Url Time Week

HTML5. HTML5 Introduction. Form Input Types. Semantic Elements. Form Attributes. Form Elements. Month Number Range Search Tel Url Time Week WEB DESIGNING HTML HTML - Introduction HTML - Elements HTML - Tags HTML - Text HTML - Formatting HTML - Pre HTML - Attributes HTML - Font HTML - Text Links HTML - Comments HTML - Lists HTML - Images HTML

More information

Govt. of Karnataka, Department of Technical Education Diploma in Computer Science & Engineering. Fifth Semester. Subject: Web Programming

Govt. of Karnataka, Department of Technical Education Diploma in Computer Science & Engineering. Fifth Semester. Subject: Web Programming Govt. of Karnataka, Department of Technical Education Diploma in Computer Science & Engineering Fifth Semester Subject: Web Programming Contact Hrs / week: 4 Total hrs: 64 Table of Contents SN Content

More information

The course is supplemented by numerous hands-on labs that help attendees reinforce their theoretical knowledge of the learned material.

The course is supplemented by numerous hands-on labs that help attendees reinforce their theoretical knowledge of the learned material. Lincoln Land Community College Capital City Training Center 130 West Mason Springfield, IL 62702 217-782-7436 www.llcc.edu/cctc WA2442 Introduction to JavaScript Objectives This intensive training course

More information

Index. Boolean value, 282

Index. Boolean value, 282 Index A AJAX events global level ajaxcomplete, 317 ajaxerror, 316 ajaxsend, 316 ajaxstart, 316 ajaxstop, 317 ajaxsuccess, 316 order of triggering code implementation, 317 display list, 321 flowchart, 322

More information

10.1 Overview of Ajax

10.1 Overview of Ajax 10.1 Overview of Ajax - History - Possibility began with the nonstandard iframe element, which appeared in IE4 and Netscape 4 - An iframe element could be made invisible and could be used to send asynchronous

More information

Web Designing HTML (Hypertext Markup Language) Introduction What is World Wide Web (WWW)? What is Web browser? What is Protocol? What is HTTP? What is Client-side scripting and types of Client side scripting?

More information

ABOUT WEB TECHNOLOGY COURSE SCOPE:

ABOUT WEB TECHNOLOGY COURSE SCOPE: ABOUT WEB TECHNOLOGY COURSE SCOPE: The booming IT business across the globe, the web has become one in every of the foremost necessary suggests that of communication nowadays and websites are the lifelines

More information

CSI 3140 WWW Structures, Techniques and Standards. Browsers and the DOM

CSI 3140 WWW Structures, Techniques and Standards. Browsers and the DOM CSI 3140 WWW Structures, Techniques and Standards Browsers and the DOM Overview The Document Object Model (DOM) is an API that allows programs to interact with HTML (or XML) documents In typical browsers,

More information

JAVASCRIPT FOR PROGRAMMERS

JAVASCRIPT FOR PROGRAMMERS JAVASCRIPT FOR PROGRAMMERS DEITEL DEVELOPER SERIES Paul J. Deitel Deitel & Associates, Inc. Harvey M. Deitel Deitel & Associates, Inc. PRENTICE HALL Upper Saddle River, NJ Boston Indianapolis San Francisco

More information

CSC Web Programming. JavaScript Browser Objects

CSC Web Programming. JavaScript Browser Objects CSC 242 - Web Programming JavaScript Browser Objects JavaScript Object Types User defined objects Native objects (Array, Math, Date, etc.) Host Objects provided by the browser The window object is a representation

More information

Ajax Ajax Ajax = Asynchronous JavaScript and XML Using a set of methods built in to JavaScript to transfer data between the browser and a server in the background Reduces the amount of data that must be

More information

PES DEGREE COLLEGE BANGALORE SOUTH CAMPUS 1 K.M. before Electronic City, Bangalore WEB PROGRAMMING Solution Set II

PES DEGREE COLLEGE BANGALORE SOUTH CAMPUS 1 K.M. before Electronic City, Bangalore WEB PROGRAMMING Solution Set II PES DEGREE COLLEGE BANGALORE SOUTH CAMPUS 1 K.M. before Electronic City, Bangalore 560 100 WEB PROGRAMMING Solution Set II Section A 1. This function evaluates a string as javascript statement or expression

More information

NEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS

NEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS NEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS LESSON 1 GETTING STARTED Before We Get Started; Pre requisites; The Notepad++ Text Editor; Download Chrome, Firefox, Opera, & Safari Browsers; The

More information

UI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML

UI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML UI Course (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) HTML: Introduction The World Wide Web (WWW) and history of HTML Hypertext and Hypertext Markup Language Why HTML Prerequisites Objective

More information

JavaScript: The Definitive Guide

JavaScript: The Definitive Guide T "T~ :15 FLA HO H' 15 SIXTH EDITION JavaScript: The Definitive Guide David Flanagan O'REILLY Beijing Cambridge Farnham Ktiln Sebastopol Tokyo Table of Contents Preface....................................................................

More information

Part of this connection identifies how the response can / should be provided to the client code via the use of a callback routine.

Part of this connection identifies how the response can / should be provided to the client code via the use of a callback routine. What is AJAX? In one sense, AJAX is simply an acronym for Asynchronous JavaScript And XML In another, it is a protocol for sending requests from a client (web page) to a server, and how the information

More information

AJAX ASYNCHRONOUS JAVASCRIPT AND XML. Laura Farinetti - DAUIN

AJAX ASYNCHRONOUS JAVASCRIPT AND XML. Laura Farinetti - DAUIN AJAX ASYNCHRONOUS JAVASCRIPT AND XML Laura Farinetti - DAUIN Rich-client asynchronous transactions In 2005, Jesse James Garrett wrote an online article titled Ajax: A New Approach to Web Applications (www.adaptivepath.com/ideas/essays/archives/000

More information

PHP & PHP++ Curriculum

PHP & PHP++ Curriculum PHP & PHP++ Curriculum CORE PHP How PHP Works The php.ini File Basic PHP Syntax PHP Tags PHP Statements and Whitespace Comments PHP Functions Variables Variable Types Variable Names (Identifiers) Type

More information

Background. Javascript is not related to Java in anyway other than trying to get some free publicity

Background. Javascript is not related to Java in anyway other than trying to get some free publicity JavaScript I Introduction JavaScript traditionally runs in an interpreter that is part of a browsers Often called a JavaScript engine Was originally designed to add interactive elements to HTML pages First

More information

Creating Web Pages with HTML-Level III Tutorials HTML 6.01

Creating Web Pages with HTML-Level III Tutorials HTML 6.01 Creating Web Pages with HTML-Levell Tutorials HTML 1.01 Tutorial 1 Developing a Basic Web Page Create a Web Page for Stephen DuM's Chemistry Classes Tutorial 2 Adding Hypertext Links to a Web Page Developing

More information

Sections and Articles

Sections and Articles Advanced PHP Framework Codeigniter Modules HTML Topics Introduction to HTML5 Laying out a Page with HTML5 Page Structure- New HTML5 Structural Tags- Page Simplification HTML5 - How We Got Here 1.The Problems

More information

Comprehensive AngularJS Programming (5 Days)

Comprehensive AngularJS Programming (5 Days) www.peaklearningllc.com S103 Comprehensive AngularJS Programming (5 Days) The AngularJS framework augments applications with the "model-view-controller" pattern which makes applications easier to develop

More information

Web Development. With PHP. Web Development With PHP

Web Development. With PHP. Web Development With PHP Web Development With PHP Web Development With PHP We deliver all our courses as Corporate Training as well if you are a group interested in the course, this option may be more advantageous for you. 8983002500/8149046285

More information

Catching Events. Bok, Jong Soon

Catching Events. Bok, Jong Soon Catching Events Bok, Jong Soon Jongsoon.bok@gmail.com www.javaexpert.co.kr What Is an Event? Events Describe what happened. Event sources The generator of an event Event handlers A function that receives

More information

JavaScript and XHTML. Prof. D. Krupesha, PESIT, Bangalore

JavaScript and XHTML. Prof. D. Krupesha, PESIT, Bangalore JavaScript and XHTML Prof. D. Krupesha, PESIT, Bangalore Why is JavaScript Important? It is simple and lots of scripts available in public domain and easy to use. It is used for client-side scripting.

More information

Ajax Ajax Ajax = Asynchronous JavaScript and XML Using a set of methods built in to JavaScript to transfer data between the browser and a server in the background Reduces the amount of data that must be

More information

Programming for the Web with PHP

Programming for the Web with PHP Aptech Ltd Version 1.0 Page 1 of 11 Table of Contents Aptech Ltd Version 1.0 Page 2 of 11 Abstraction Anonymous Class Apache Arithmetic Operators Array Array Identifier arsort Function Assignment Operators

More information

COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2017)

COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2017) COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2017) RAMANA ISUKAPALLI RAMANA@CS.COLUMBIA.EDU 1 LECTURE-1 Course overview See http://www.cs.columbia.edu/~ramana Overview of HTML Formatting, headings,

More information

Index LICENSED PRODUCT NOT FOR RESALE

Index LICENSED PRODUCT NOT FOR RESALE Index LICENSED PRODUCT NOT FOR RESALE A Absolute positioning, 100 102 with multi-columns, 101 Accelerometer, 263 Access data, 225 227 Adding elements, 209 211 to display, 210 Animated boxes creation using

More information

The course also includes an overview of some of the most popular frameworks that you will most likely encounter in your real work environments.

The course also includes an overview of some of the most popular frameworks that you will most likely encounter in your real work environments. Web Development WEB101: Web Development Fundamentals using HTML, CSS and JavaScript $2,495.00 5 Days Replay Class Recordings included with this course Upcoming Dates Course Description This 5-day instructor-led

More information

Chapter 4 Basics of JavaScript

Chapter 4 Basics of JavaScript Chapter 4 Basics of JavaScript JavaScript/EcmaScript References The official EcmaScript, third edition, specification http://www.ecma-international.org/publications/files/ecma-st/ecma-262.pdf A working

More information

CORE PHP CURRICULUM. Introductory Session Web Architecture Overview of PHP Platform Origins of PHP in the open source community

CORE PHP CURRICULUM. Introductory Session Web Architecture Overview of PHP Platform Origins of PHP in the open source community CORE PHP CURRICULUM What you will Be Able to Achieve During This Course This course will enable you to build real-world, dynamic web sites. If you've built websites using plain HTML, you realize the limitation

More information

Outline. Introduction to JavaScript Resources What is JavaScript? JavaScript in web pages

Outline. Introduction to JavaScript Resources What is JavaScript? JavaScript in web pages JavaScript CMPT 281 Outline Introduction to JavaScript Resources What is JavaScript? JavaScript in web pages Announcements Layout with tables Assignment 3 JavaScript Resources Resources Why JavaScript?

More information

ver Wfl Adobe lif Sams Teach Yourself Betsy Bruce Robyn Ness SAMS 800 East 96th Street, Indianapolis, Indiana, USA WlM John Ray ^lg^

ver Wfl Adobe lif Sams Teach Yourself Betsy Bruce Robyn Ness SAMS 800 East 96th Street, Indianapolis, Indiana, USA WlM John Ray ^lg^ Betsy Bruce John Ray Robyn Ness Sams Teach Yourself Adobe Wfl lif ver W ^msssi^ mm WlM ^lg^ SAMS 800 East 96th Street, Indianapolis, Indiana, 46240 USA Table of Contents Introduction What Is Dreamweaver

More information

Chapter 2: Functions and Control Structures

Chapter 2: Functions and Control Structures Chapter 2: Functions and Control Structures TRUE/FALSE 1. A function definition contains the lines of code that make up a function. T PTS: 1 REF: 75 2. Functions are placed within parentheses that follow

More information

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0 WEB TECHNOLOGIES A COMPUTER SCIENCE PERSPECTIVE CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0 Modified by Ahmed Sallam Based on original slides by Jeffrey C. Jackson reserved. 0-13-185603-0 HTML HELLO WORLD! Document

More information

A Web-Based Introduction

A Web-Based Introduction A Web-Based Introduction to Programming Essential Algorithms, Syntax, and Control Structures Using PHP, HTML, and MySQL Third Edition Mike O'Kane Carolina Academic Press Durham, North Carolina Contents

More information

PHP by Pearson Education, Inc. All Rights Reserved.

PHP by Pearson Education, Inc. All Rights Reserved. PHP 1992-2012 by Pearson Education, Inc. All Client-side Languages User-agent (web browser) requests a web page JavaScript is executed on PC http request Can affect the Browser and the page itself http

More information

Static Webpage Development

Static Webpage Development Dear Student, Based upon your enquiry we are pleased to send you the course curriculum for PHP Given below is the brief description for the course you are looking for: - Static Webpage Development Introduction

More information

UNIT 3 SECTION 1 Answer the following questions Q.1: What is an editor? editor editor Q.2: What do you understand by a web browser?

UNIT 3 SECTION 1 Answer the following questions Q.1: What is an editor? editor editor Q.2: What do you understand by a web browser? UNIT 3 SECTION 1 Answer the following questions Q.1: What is an editor? A 1: A text editor is a program that helps you write plain text (without any formatting) and save it to a file. A good example is

More information

Introduction to the Internet and World Wide Web p. 1 The Evolution of the Internet p. 2 The Internet, Intranets, and Extranets p. 3 The Evolution of

Introduction to the Internet and World Wide Web p. 1 The Evolution of the Internet p. 2 The Internet, Intranets, and Extranets p. 3 The Evolution of Introduction to the Internet and World Wide Web p. 1 The Evolution of the Internet p. 2 The Internet, Intranets, and Extranets p. 3 The Evolution of the World Wide Web p. 3 Internet Standards and Coordination

More information

Pace University. Fundamental Concepts of CS121 1

Pace University. Fundamental Concepts of CS121 1 Pace University Fundamental Concepts of CS121 1 Dr. Lixin Tao http://csis.pace.edu/~lixin Computer Science Department Pace University October 12, 2005 This document complements my tutorial Introduction

More information

COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2018)

COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2018) COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2018) RAMANA ISUKAPALLI RAMANA@CS.COLUMBIA.EDU 1 LECTURE-1 Course overview See http://www.cs.columbia.edu/~ramana Overview of HTML Formatting, headings,

More information

Module 5 JavaScript, AJAX, and jquery. Module 5. Module 5 Contains 2 components

Module 5 JavaScript, AJAX, and jquery. Module 5. Module 5 Contains 2 components Module 5 JavaScript, AJAX, and jquery Module 5 Contains 2 components Both the Individual and Group portion are due on Monday October 30 th Start early on this module One of the most time consuming modules

More information

HTML CS 4640 Programming Languages for Web Applications

HTML CS 4640 Programming Languages for Web Applications HTML CS 4640 Programming Languages for Web Applications 1 Anatomy of (Basic) Website Your content + HTML + CSS = Your website structure presentation A website is a way to present your content to the world,

More information

What Is JavaScript? A scripting language based on an object-orientated programming philosophy.

What Is JavaScript? A scripting language based on an object-orientated programming philosophy. What Is JavaScript? A scripting language based on an object-orientated programming philosophy. Each object has certain attributes. Some are like adjectives: properties. For example, an object might have

More information

Copyright 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 11 Introduction to PHP

Copyright 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 11 Introduction to PHP Chapter 11 Introduction to PHP 11.1 Origin and Uses of PHP Developed by Rasmus Lerdorf in 1994 PHP is a server-side scripting language, embedded in XHTML pages PHP has good support for form processing

More information

Module 5 JavaScript, AJAX, and jquery. Module 5. Module 5 Contains an Individual and Group component

Module 5 JavaScript, AJAX, and jquery. Module 5. Module 5 Contains an Individual and Group component Module 5 JavaScript, AJAX, and jquery Module 5 Contains an Individual and Group component Both are due on Wednesday October 24 th Start early on this module One of the most time consuming modules in the

More information

PHP,HTML5, CSS3, JQUERY SYLLABUS

PHP,HTML5, CSS3, JQUERY SYLLABUS PHP,HTML5, CSS3, JQUERY SYLLABUS AAvhdvchdvchdvhdh HTML HTML - Introduction HTML - Elements HTML - Tags HTML - Text HTML - Formatting HTML - Pre HTML - Attributes HTML - Font HTML - Text Links HTML - Comments

More information

COPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Structuring Documents for the Web 1

COPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Structuring Documents for the Web 1 Introduction Chapter 1: Structuring Documents for the Web 1 A Web of Structured Documents 1 Introducing HTML and XHTML 2 Tags and Elements 4 Separating Heads from Bodies 5 Attributes Tell Us About Elements

More information