Web Development with jQuery®
Attaching Persistent Event Handlers (^) ❘ 71 The style sheet that you used for the previous two examples is modifi ed a bit as w ...
(^72) ❘ CHAPTER 3 EVENTS border-radius: 5px; } div.finderDirectoryName, div.finderFileName { text-align: center; } span.finderDi ...
Attaching Persistent Event Handlers (^) ❘ 73 { return; } $('div#finderAdditionalFiles > div.finderFile').each( function() { $ ...
(^74) ❘ CHAPTER 3 EVENTS .removeClass('finderIconSelected'); $('span.finderDirectoryNameSelected') .removeClass('finderDirectory ...
Removing Event Handlers (^) ❘ 75 addedAdditionalFiles = true; } ); First, you check the variable addedAdditionalFiles; if that v ...
(^76) ❘ CHAPTER 3 EVENTS Applications Library Network Sites System Users index.html ...
Removing Event Handlers (^) ❘ 77 Documents.html Apply Event Handler Remove Event Handler The following CSS is ap ...
(^78) ❘ CHAPTER 3 EVENTS div.finderFile { float: left; width: 150px; height: 100px; overflow: hidden; } div.finderIcon { backgro ...
Removing Event Handlers (^) ❘ 79 'click.finder', 'div.finderDirectory, div.finderFile', function(event) { $('div.finderIconSelec ...
(^80) ❘ CHAPTER 3 EVENTS The preceding example adds two new buttons to the window, which you can see as shown in Figure 3-3. FIG ...
Creating Custom Events (^) ❘ 81 Custom events exist to fulfi ll the need of providing more fl exibility and extensibility in you ...
(^82) ❘ CHAPTER 3 EVENTS Users index.html Departments.html Documents.html The preceding HTML is joined by ...
Creating Custom Events (^) ❘ 83 -ms-user-select: none; } div#finderAdditionalFiles { display: none; } div.finderDirectory, div.f ...
(^84) ❘ CHAPTER 3 EVENTS $('span.finderDirectoryNameSelected') .removeClass('finderDirectoryNameSelected'); $('span.finderFileNa ...
Creating Custom Events (^) ❘ 85 addedAdditionalFiles = true; } ); } ); The preceding example’s results are shown in Figure 3-4. ...
(^86) ❘ CHAPTER 3 EVENTS The new custom event handler creates the appendFile.finder event on elements with class names finderDi ...
Summary (^) ❘ 87 Event handlers can be absolutely controlled, added, and removed at will. The off() method provides the mechanis ...
http://www.it-ebooks.info ...
Manipulating Content and Attributes jQuery is thorough; it provides everything you can imagine for working with content in the D ...
(^90) ❘ CHAPTER 4 MANIPULATING CONTENT AND ATTRIBUTES one or more elements, simultaneously. Retrieving an attribute’s value is a ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf