JavaScript Programming
Code | Completion | Credits | Range | Language |
---|---|---|---|---|
BI-PJS | KZ | 4 | 0+3 | Czech |
- Lecturer:
- Pavel Štěpán (gar.), Helena Wallenfelsová
- Tutor:
- Pavel Štěpán (gar.), Helena Wallenfelsová
- Supervisor:
- Department of Software Engineering
- Synopsis:
-
Students are acquainted with the principles of dynamically generated client-side web pages. JavaScript programming language, its basic structures, types and definitions of variables, operators, arrays, loops, definitions and calls of functions are discussed. JavaScript code embedding into the HTML page and JavaScript global functions will be introduced. Students gain an insight into the implementation of object oriented programming in JavaScript - definition and class instancing, constructors, methods, and properties. The browser object model, webpage object model, and forms, as well as events, debugging errors and exceptions are focussed. Finally, Ajax and JSON and a particular use of JavaScript framework are introduced.
- Requirements:
-
Algorithmization, essential knowledge of the programs development, and the knowledge of HTML and CSS are assumed. The fundamentals in the object oriented programming are an advantage, but not necessity.
- Syllabus of lectures:
-
1.JavaScript syntax
- statement structure, literals, identifiers
- variables, strings, numbers, Boolean variable, objects, arrays
- expressions and operators
- if, while, for, for ? in, do ? while statements
- switch, break, continue, with, var
2.Functions
- definition and call of function
- functions and data types
- Function object
- basic embedded functions
3.Objects
- introduction
- object creation using the constructor
- methods
- classes
- objects and associative arrays
- some of embedded objects
4.Array
- definition and use
- multidimensional array
- an array and an object
- array properties and methods
- embedded arrays
5.Web page scripting
- Scripting on the client
- Script embedding
- Data input - forms
6.Browser Object Model (BOM)
- Window
- History
- Navigator
- Location
- Screen
7.Document Object Model (DOM)
- Document
- Element
- Text
- CData
- Attr
- Form objects
8.Events
- Introduction to Event programming
- Levels DOM 0, DOM 2; IE
- Event object
- Event types
9.Error and Event processing
- Error reporting in browsers
- Debugging tools
- Try and catch statements
10.Advanced topics
- JavaScript Incompatibility in browsers
- Ajax and JSON
- Use of JavaScript Framework (sample)
- Syllabus of tutorials:
- Study Objective:
- Study materials:
-
Programmes developed in the course of the semester are considered to be the main study source. However you can use the following literature:
Zakas, Z., Z. „JavaScript pro webové vývojáře“. Computer Press, 2009. ISBN: 978-80-251-2509-0
Thau, D. „Velký průvodce JavaScriptem“. Grada Publishing, a.s., 2009. ISBN: 978-1-59327-106-0
- Note:
- Time-table for winter semester 2011/2012:
- Time-table is not available yet
- Time-table for summer semester 2011/2012:
-
06:00–08:0008:00–10:0010:00–12:0012:00–14:0014:00–16:0016:00–18:0018:00–20:0020:00–22:0022:00–24:00
Mon Tue Fri Thu Fri - The course is a part of the following study plans: