Wrox guides are crafted to make learning programming languages and technologies easier than you think. Written by programmers for programmers, they provide a structured, tutorial format that will guide you through all the techniques involved.
Visit www.wrox.com and www.wiley.com
This lesson focuses on the syntax of one line of code — the variable declaration:
var message = "Hello, World!";
This lesson teaches the control structures you use in applications to have your code make decisions on conditions you set. You will learn about comparison operators, operator precedence, logical operators, logical AND, OR, and NOT, and executing code based on conditions using the if statement, the switch statement, and the ternary operator.
In programming, looping means to repeat one or more lines of code while a particular condition is true. This functionality and this lesson introduces some loops. You learn the for Loop, while Loop, and do-while Loop.
Scope is important to understand scope because it determines what variables a function can see and access. This lesson works with global scope, functional scope, no block-level scopes, variable delarations, and identifier lookup.
The <frameset/> element, however, allows web developers to divide a browser window into two or more smaller window panes. Each of these panes is itself a browser window, and as such has a full-fledged window object. Over the course of this lesson you’ll see many similarities between cross-frame scripting and cross-window scripting. In the Try It in this lesson, you learn how to script frames. You learn how the browser automatically creates a variable to allow access to a frame. You also learn about the parent and top objects that allow you to navigate the window object hierarchy created by framesets.
The DOM allows you to create new HTML elements and add them to the page on-the-fly. You can do this in one of two ways that you learn in this lesson: with creation methods provided by the DOM standard, and with the innerHTML property.
In this lesson, you learn how you can leverage the power of the DOM and CSS to change the appearance elements in a web page. You can modify an element’s style in two ways: 1. Change individual CSS properties using the style property. 2. Change the value of the element’s class attribute.
Lesson 16 is a short reading assignment with no accompanying video or Try It. In lesson 16, you learn about Events including mouse events, keyboard events, and events that happen from within an HTML document.
This lessons shows how to use HTML attributes to handle events. This approach can be very useful when you need to handle an event quickly.
In this lesson you learn to get the mouse pointer's location, move an element on the page, and use events to facilitate drag-and-drop. You then apply this information by writing a drag-and-drop script in the Try It.
To create animation on a web page you modify an element (the character) bit-by-bit (or frame by frame) over a certain period using timers. In this lesson you’ll learn about two methods that are used for timing. Then you’ll use the timers to create an animation.
This lesson teaches scripting the most common form control — the button.
Several text elements are the best way to have users input data into your web application. This lesson looks at scripting the textbox, password textbox, hidden textbox, and multiple textbox.
In this lesson you will see how to use the <select/> element DOM to add and remove options from <select/> elements on a page.
There are two types of requests you can make with XMLHttpRequest (XHR) objects: GET and POST. The majority of requests users make on the Internet are GET requests. Similarly, the majority of requests you’ll make with XHR will be GET requests. This lesson covers making GET requests and explains the asynchronous mode and how your programming approach with it will differ.
POST requests are the exact opposite of GET requests: They are used to submit data to a web application so the application can do something with that data. The request’s data is sent in the request’s body, unlike with GET requests, in which data can be sent in the URL’s query string. Despite these differences, making POST requests with XMLHttpRequest (XHR) objects is strikingly similar to making GET requests. There are, of course, some differences, and you’ll learn about them in this lesson.
There are some common mistakes that all developers make — even professionals. Mistakes are inevitable, but you can minimize the number of common ones you make by watching out for them as you code. The majority of mistakes covered in this lesson are syntax mistakes. Most syntax mistakes are reported by the browser, but some, as you’ll see, don’t cause the browser to throw any errors. The mistakes explained in this lesson are undefined variables, incorrect cases, closing braces and parenthesis, and operator misuse.
Lesson 39 is a short reading assignment with no accompanying video or Try It. You learn about how to use whitespace to make code readable, variable declarations, avoiding global scope, and using literals.
A naming conflict occurs when you use an identifier that is used in another script on the same level of scope. If multiple objects use the same identifier, one will overwrite the other and likely cause the page to break. This lesson shows you how to avoid naming conflicts by avoiding global scope.
Once your code is working and your application is running, you can improve performance by refactoring code, optimizing DOM code, and using event delegation, all discussed in this lesson.
Some primary topics covered are:
Founded in 1807, John Wiley & Sons, Inc. has been a valued source of information and understanding for more than 200 years, helping people around the world meet their needs and fulfill their aspirations. Wiley and its acquired companies have published the works of more than 450 Nobel laureates in all categories: Literature, Economics, Physiology or Medicine, Physics, Chemistry, and Peace.
Wiley is a global provider of content and content-enabled workflow solutions in areas of scientific, technical, medical, and scholarly research; professional development; and education. Our core businesses produce scientific, technical, medical, and scholarly journals, reference works, books, database services, and advertising; professional books, subscription products, certification and training services and online applications; and education content and services including integrated online teaching and learning resources for undergraduate and graduate students and lifelong learners. Wiley's global headquarters are located in Hoboken, New Jersey, with operations in the U.S., Europe, Asia, Canada, and Australia. The Company is listed on the New York Stock Exchange under the symbols JWa and JWb.