Главная| Трекер ▼| Поиск| Правила| FAQ| |
Автор | Сообщение |
---|---|
valeri[µ]
Модератор ![]() Сообщения: 7870 ![]() |
![]() Learn JavaScript and Ajax with W3Schools / Выучи Javascript и Ajax с W3Schools Год: 2010 Автор: W3Schools Издательство: Wiley ISBN: 0470611944 Язык: Английский Формат: PDF Качество: Изначально компьютерное (eBook) Количество страниц: 267 Описание: Learn JavaScript and Ajax with W3Schools - Add JavaScript to HTML - Create Objects and Cookies - Build Ajax applications - Easy to understand - Try-it-yourself examples - Full references - Attractive two-color print Fast, focused instruction for beginning Web developers W3Schools.com is the number one online education source for beginning Web developers. This attractive two-color book contains concise, highly focused tutorials in the proven W3Schools instructional format, with an easy-to-use reference of JavaScript Objects and the HTML DOM included. Novice developers will quickly learn to create interactive Web pages using the most popular Web scripting language. W3Schools is the top Google search result for instruction on JavaScript, HTML, CSS, and other key Web technologies; this book presents W3Schools tutorials in an easy-to-follow format for quick learning Features clear examples, simple explanations, and a thorough reference section covering JavaScript Objects and the HTML DOM Covers statements and comments; variables, operators, and comparisons; if…then statements; pop-up boxes; events and try…catch; objects, strings, arrays, and Booleans; cookies, validation, and timing; Ajax requests and XMLHTTP requests; Ajax suggest, and more Designed to get beginning Web developers up and running as quickly as possible, Learn JavaScript and Ajax with W3Schools presents a proven, highly focused course of instruction in an easy-to-use format. Кратко о книге: Книга от знаменитой W3Schools. Информация дана практически та же, что и на их офф.сайте. Все кратко и четко изложено, этакая шпаргалка по предмету. Легко и свободно просматривается, если уже есть опыт программирования в другой области. Introduction .................................................1 JavaScript ........................................................................................... 1 AJAX.................................................................................................. 3 How To Use This Book ...................................................................... 4 Section I: JavaScript Basic .............................7 CHAPTER 1: JavaScript How To and Where To .............. 9 How To Put a JavaScript into an HTML Page .................................... 9 How to Handle Simple Browsers...................................................... 12 Where to Put the JavaScript ............................................................. 12 Using an External JavaScript ............................................................ 15 CHAPTER 2: JavaScript Statements and Comments...... 16 JavaScript Statements ....................................................................... 16 JavaScript Comments ....................................................................... 18 CHAPTER 3: JavaScript Variables .................................. 23 Do You Remember Algebra from School?......................................... 23 JavaScript Variables .......................................................................... 23 Declaring (Creating) JavaScript Variables ......................................... 25 Assigning Values to Undeclared JavaScript Variables ......................... 25 Redeclaring JavaScript Variables ....................................................... 26 JavaScript Arithmetic ....................................................................... 26 CHAPTER 4: JavaScript Operators ................................ 27 JavaScript Arithmetic Operators ....................................................... 27 JavaScript Assignment Operators...................................................... 28 The + Operator Used on Strings....................................................... 28 Adding Strings and Numbers ........................................................... 28 CHAPTER 5: JavaScript Comparisons ........................... 30 Comparison Operators..................................................................... 30 How to Use Comparisons ................................................................ 31 Logical Operators ............................................................................. 31 Conditional Operator....................................................................... 31 CHAPTER 6: JavaScript If...Else Statements .................. 32 Conditional Statements .................................................................... 32 if Statement...................................................................................... 33 if...else Statement ............................................................................. 34 if...else if...else Statement.................................................................. 36 CHAPTER 7: JavaScript Loops ...................................... 39 The for Loop.................................................................................... 39 The while Loop................................................................................ 41 The do...while Loop ......................................................................... 43 CHAPTER 8: Additional JavaScript Flow Control Statements .............46 The break Statement ........................................................................ 46 The continue Statement ................................................................... 47 JavaScript for...in Statement ............................................................. 48 JavaScript switch Statement.............................................................. 50 CHAPTER 9: JavaScript Popup Boxes............................ 53 Popup Boxes..................................................................................... 53 CHAPTER 10: JavaScript Functions .............................. 58 How to Define a Function................................................................ 58 JavaScript Function Examples .......................................................... 59 The return Statement ....................................................................... 62 The Lifetime of JavaScript Variables ................................................. 63 CHAPTER 11: JavaScript Events.................................... 64 onLoad and onUnload ..................................................................... 64 onFocus, onBlur, and onChange ...................................................... 65 onSubmit ......................................................................................... 65 onMouseOver and onMouseOut...................................................... 66 onClick ............................................................................................ 66 CHAPTER 12: Javascript try...catch and throw Statements............. 67 JavaScript—Catching Errors ............................................................ 67 The try...catch Statement.................................................................. 67 The throw Statement........................................................................ 70 CHAPTER 13: JavaScript Special Characters and Guidelines ............ 73 Insert Special Characters................................................................... 73 JavaScript Is Case Sensitive ............................................................... 74 White Space ..................................................................................... 74 Break up a Code Line....................................................................... 74 Section II: JavaScript Objects ......................77 CHAPTER 14: JavaScript Objects Intro......................... 79 Object-Oriented Programming ........................................................ 79 Properties ......................................................................................... 79 Methods ........................................................................................... 80 CHAPTER 15: JavaScript String Object......................... 81 String Object.................................................................................... 81 Examples .......................................................................................... 82 CHAPTER 16: JavaScript Date Object........................... 88 Create a Date Object........................................................................ 88 Set Dates .......................................................................................... 89 Compare Two Dates......................................................................... 89 Examples .......................................................................................... 90 CHAPTER 17: JavaScript Array Object.......................... 95 What Is an Array?............................................................................. 95 Create an Array ................................................................................ 96 Access an Array ................................................................................ 96 Modify Values in an Array ................................................................ 96 Examples .......................................................................................... 97 CHAPTER 18: JavaScript Boolean Object ................... 107 Create a Boolean Object................................................................. 107 Examples ........................................................................................ 108 CHAPTER 19: JavaScript Math Object........................ 110 Math Object .................................................................................. 110 Mathematical Constants................................................................. 110 Mathematical Methods................................................................... 111 Examples ........................................................................................ 112 CHAPTER 20: JavaScript RegExp Object .................... 115 What Is RegExp? ............................................................................ 115 RegExp Modifiers........................................................................... 116 test()............................................................................................... 118 exec().............................................................................................. 119 Section III: JavaScript Advanced................121 CHAPTER 21: JavaScrip Browser Detection ................ 123 Browser Detection.......................................................................... 123 The Navigator Object .................................................................... 124 CHAPTER 22: JavaScript Cookies ............................... 129 What Is a Cookie? .......................................................................... 129 Create and Store a Cookie .............................................................. 130 CHAPTER 23: JavaScript Form Validation .................. 134 Required Fields............................................................................... 134 E-mail Validation ........................................................................... 136 CHAPTER 24: JavaScript Animation ........................... 138 The HTML Code .......................................................................... 138 The JavaScript Code....................................................................... 139 The Entire Code ............................................................................ 139 CHAPTER 25: JavaScript Image Maps......................... 141 HTML Image Maps ....................................................................... 141 Adding Some JavaScript ................................................................. 142 CHAPTER 26: JavaScript Timing Events ..................... 144 The setTimeout() Method.............................................................. 144 The clearTimeout() Method........................................................... 149 CHAPTER 27: Create Your Own Objects with JavaScript.................151 JavaScript Objects .......................................................................... 151 Creating Your Own Objects ........................................................... 152 Section IV: AJAX Basic...............................157 CHAPTER 28: AJAX XMLHttpRequest...................... 159 AJAX Uses the XMLHttpRequest Object....................................... 159 The XMLHttpRequest Object ....................................................... 159 Your First AJAX Application .......................................................... 160 CHAPTER 29: AJAX Browser Support ........................ 163 The XMLHttpRequest ................................................................... 163 All Together Now ........................................................................... 164 CHAPTER 30: AJAX—The XMLHttpRequest Object’s Methods and Properties... 166 Important Methods ........................................................................ 166 Sending an AJAX Request to a Server............................................. 167 Important Properties ...................................................................... 167 The responseText Property ............................................................. 167 XMLHttpRequest Open—Using False........................................... 167 XMLHttpRequest Open—Using True ........................................... 168 The readyState Property ................................................................. 168 The onreadystatechange Property ................................................... 169 CHAPTER 31: AJAX Server......................................... 170 XMLHttpRequest Object Can Request Any Data .......................... 170 Requesting Files ............................................................................. 170 Submitting Forms .......................................................................... 171 Section V: AJAX Advanced ........................173 CHAPTER 32: AJAX Suggest ...................................... 175 The HTML Form .......................................................................... 175 The showHint() Function .............................................................. 176 The GetXmlHttpObject() Function............................................... 177 The stateChanged() Function......................................................... 177 AJAX Suggest Source Code ............................................................ 178 CHAPTER 33: AJAX Database Example...................... 184 The AJAX JavaScript ...................................................................... 185 The AJAX Server Page.................................................................... 186 CHAPTER 34: AJAX XML Example ........................... 188 The AJAX JavaScript ...................................................................... 189 The AJAX Server Page.................................................................... 190 The XML File ................................................................................ 191 CHAPTER 35: AJAX ResponseXML Example ............. 198 The AJAX JavaScript ...................................................................... 199 The AJAX Server Page.................................................................... 201 Appendixes ..............................................203 Appendix A: JavaScript Objects ....................................................................... 203 Appendix B: HTML DOM Objects................................................................214 Index ........................................................ 245 Помоги нашему сайту на расходы за сервер и качай торренты НЕОГРАНИЧЕННО!Пожертвовать 100 ₽ ![]() Или 2204 1201 2214 8816, с комментарием "Помощь трекеру" Связь с администрацией |
Страница 1 из 1 |
![]() |
|