Web Development with jQuery®
Programming Conventions (^) ❘ 11 ➤ (^) Avoid inaccessible markup. Stay away from frames, where possible. Organize your markup us ...
(^12) ❘ CHAPTER 1 INTRODUCTION TO JQUERY at least in the style sheet, you can control which element gets which style. span.someC ...
Programming Conventions (^) ❘ 13 Avoid Making Documents Inaccessible Accessibility is also an important factor to consider in th ...
(^14) ❘ CHAPTER 1 INTRODUCTION TO JQUERY overall popularity of a site increases. As the complexity of a website increases, it be ...
Programming Conventions (^) ❘ 15 and the compression and consolidation portion of development simply becomes a manual task. ➤ (^ ...
(^16) ❘ CHAPTER 1 INTRODUCTION TO JQUERY Include All Script in External Documents Part of making JavaScript nonobtrusive means m ...
Programming Conventions (^) ❘ 17 FIGURE 1-2 Here are the problems with this approach: ➤ (^) If JavaScript is disabled, viewing t ...
(^18) ❘ CHAPTER 1 INTRODUCTION TO JQUERY Open Picture Then in the externally loaded JavaScript you do something like the f ...
Programming Conventions (^) ❘ 19 This is an example of nonobtrusive JavaScript. Nonobtrusive JavaScript provides extended, inter ...
(^20) ❘ CHAPTER 1 INTRODUCTION TO JQUERY rule that tabs cannot be used in place of individual spaces, even though, technically, ...
Programming Conventions (^) ❘ 21 Compare the preceding to the next convention, which is known as Allman Style, which is the defa ...
(^22) ❘ CHAPTER 1 INTRODUCTION TO JQUERY event? event.preventDefault() : (window.event.returnValue = false); }; } }; In the One ...
Programming Conventions (^) ❘ 23 break; default: condition = 'those'; } Note in the preceding that no break statement appears in ...
(^24) ❘ CHAPTER 1 INTRODUCTION TO JQUERY The preceding fails with a syntax error when you try to execute it. It fails because th ...
Programming Conventions (^) ❘ 25 sticking to object-oriented code, wrapping all your programs in just one or a handful of object ...
(^26) ❘ CHAPTER 1 INTRODUCTION TO JQUERY Summary jQuery takes what would otherwise be a more complex or verbose task in traditio ...
Selecting and Filtering This chapter talks about jQuery’s sophisticated implementation of the Selectors API, which provides the ...
(^28) ❘ CHAPTER 2 SELECTING AND FILTERING After you select elements from the DOM, you can apply behavior to them. You can listen ...
Using the Selectors API (^) ❘ 29 The great thing about jQuery and other JavaScript frameworks is that they had their own version ...
(^30) ❘ CHAPTER 2 SELECTING AND FILTERING Wrox Daring Fireball Apple jQuery Example 2-2 Example 2-3 In the preceding markup d ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf