Web Development with jQuery®
Creating Buttons to Apply Bold, Italic, Underline, Font, and Font Size (^) ❘ 471 border: 1px solid black; border-radius: 3px; } ...
(^472) ❘ CHAPTER 22 CREATING A SIMPLE WYSIWYG EDITOR FIGURE 22-2 You added a <div> element for the toolbar and updated the ...
Creating a Selection (^) ❘ 473 Again, you check that the $(this).data() function returned valid information, that it contains a ...
(^474) ❘ CHAPTER 22 CREATING A SIMPLE WYSIWYG EDITOR B I U Arial Courier New Times New Roman Small Normal Big Bigger ...
Creating a Selection (^) ❘ 475 document.execCommand(data.format, false, this[this.selectedIndex].value); this.selectedIndex = 0 ...
(^476) ❘ CHAPTER 22 CREATING A SIMPLE WYSIWYG EDITOR } function setSelectionRange(range) { if (range && window.getSelect ...
Creating a Selection (^) ❘ 477 container.innerHTML = 'Here is some sample text for selection'; var range = document.createRange( ...
(^478) ❘ CHAPTER 22 CREATING A SIMPLE WYSIWYG EDITOR You then obtain the current Selection object. var sel = window.getSelection ...
Restoring a Selection (^) ❘ 479 After dispensing with the window.getSelection sanity check (feature detection), you obtain the c ...
(^480) ❘ CHAPTER 22 CREATING A SIMPLE WYSIWYG EDITOR One caveat of storing and restoring selection information is that the proce ...
bapp01.indd 02/18/2015 Page 481 PART IV Appendices ▸ APPENDIX A: Exercise Answers ▸ APPENDIX B: jQuery Selectors ▸ APPENDIX C: S ...
▸ APPENDIX M: Animation and Easing Effects ▸ APPENDIX N: Accordion ▸ APPENDIX O: Datepicker ▸ APPENDIX P: Dialog ▸ APPENDIX Q: T ...
bapp01.indd 02/18/2015 Page 483 Exercise Answers CHAPTER 2 CSS and XPath are both acceptable answers. parents() prev() children ...
(^484) ❘ APPENDIX A EXERCISE ANSWERS bapp01.indd 02/18/2015 Page 484 Naming an instance of an event handler can be done by appl ...
Chapter 6 (^) ❘ 485 bapp01.indd 02/18/2015 Page 485 remove() clone(true) CHAPTER 5 It might look like this: $(nodes).each( fu ...
(^486) ❘ APPENDIX A EXERCISE ANSWERS bapp01.indd 02/18/2015 Page 486 CHAPTER 7 In the context of an AJAX request, the only diff ...
Chapter 10 (^) ❘ 487 bapp01.indd 02/18/2015 Page 487 dataType : 'json', data : JSON.stringify({ dataForTheServerHere : true }), ...
(^488) ❘ APPENDIX A EXERCISE ANSWERS bapp01.indd 02/18/2015 Page 488 $('#myScroller').scrollTop(0); Answers will vary but shoul ...
Chapter 15 (^) ❘ 489 bapp01.indd 02/18/2015 Page 489 droppable() Any syntactically correct program implementing something simil ...
(^490) ❘ APPENDIX A EXERCISE ANSWERS bapp01.indd 02/18/2015 Page 490 CHAPTER 16 The minDate and maxDate options. The yearRange ...
«
21
22
23
24
25
26
27
28
29
30
»
Free download pdf