THE BOOK OF JAVASCRIPT, 2ND EDITION phần 6 doc

THE BOOK OF JAVASCRIPT, 2ND EDITION phần 6 doc

THE BOOK OF JAVASCRIPT, 2ND EDITION phần 6 doc

... and 16) . If the response is not an XML document, responseXML will contain the value null. To put the results of the query into the div in a in Figure 14-4, change the body of the if-then ... when the user presses ENTER while the cursor is in the text box (thereby submitting the form). In either case, the function getTranslations() is called with the cont...

Ngày tải lên: 06/08/2014, 16:23

42 270 0
the book of javascript 2nd edition phần 6 pot

the book of javascript 2nd edition phần 6 pot

... Detecting the position of the mouse 2 46 Chapter 13 node to the end of the list of the parent’s children. If our parent is the body of the document, that puts the div at the end of the document. ... along the colon. It then loads the first part of the element into the_ property and the second part into the_ value. The first time through the lo...

Ngày tải lên: 06/08/2014, 09:20

50 405 0
the book of javascript 2nd edition phần 4 doc

the book of javascript 2nd edition phần 4 doc

... 555 -66 66& quot;; phone _book[ "tweaked"] = "(555) 555-7777"; Z function displayNumber (the_ phone _book, entry) { [ var the_ number = the_ phone _book[ entry]; \ window.document .the_ form.number_box.value ... X. The first line in the body of the func- tion then swaps the image stored in position 0 of the_ images with the image on the page. If rotate...

Ngày tải lên: 06/08/2014, 09:20

50 490 0
the book of javascript 2nd edition phần 5 docx

the book of javascript 2nd edition phần 5 docx

... indexOf(), the lastIndexOf() method gives you the position of the last occurrence of a character or substring. Table 11-1 shows the value of various calls to indexOf() and lastIndexOf() when the ... of the upper-left corner and the x and y coordinates of the lower-right corner, in pixels. So the first area in Figure 10-19 goes from the (9, 23) point of the...

Ngày tải lên: 06/08/2014, 09:20

50 382 0
THE BOOK OF JAVASCRIPT, 2ND EDITION phần 3 doc

THE BOOK OF JAVASCRIPT, 2ND EDITION phần 3 doc

... 555 -66 66& quot;; phone _book[ "tweaked"] = "(555) 555-7777"; Z function displayNumber (the_ phone _book, entry) { [ var the_ number = the_ phone _book[ entry]; \ window.document .the_ form.number_box.value ... Figure 7 -6 shows you what each of these elements looks like, and Figure 7-7 shows you the HTML used to draw Figure 7 -6. 1 36 Chapter 8 How the Book...

Ngày tải lên: 06/08/2014, 16:23

56 316 0
THE BOOK OF JAVASCRIPT, 2ND EDITION phần 8 doc

THE BOOK OF JAVASCRIPT, 2ND EDITION phần 8 doc

... elements of the XML document. It then loops through the array and uses getFirstValue() to determine the value of the name child of each user element. If the name child is the same as the name ... Code? Most of the code in this application was written in JavaScript and therefore appeared on the client side. I designed the application this way because this is Th...

Ngày tải lên: 06/08/2014, 16:23

44 347 0
the book of javascript 2nd edition phần 1 pptx

the book of javascript 2nd edition phần 1 pptx

... Ajax 265 JavaScript The J in Ajax 265 Creating and Sending Requests 265 Creating a Request Object 265 Telling the Object Where to Send the Request 266 What to Do When the Request Is Answered 266 Writing ... Application The last appendix gives a couple of the book s longest code examples in their entirety. Companion Website The Book of JavaScript website (http://www...

Ngày tải lên: 06/08/2014, 09:20

50 402 0
the book of javascript 2nd edition phần 2 pot

the book of javascript 2nd edition phần 2 pot

... click the link, an alert box should come up and say Off to the Book of JavaScript! (Figure 4 -6) . When you click OK in the box, the page should load the Book of JavaScript website. Figure 4 -6: The ... file (src) of the image named my_image within the document object in the current window. The current window is the one in which the JavaScript is located....

Ngày tải lên: 06/08/2014, 09:20

50 533 0
the book of javascript 2nd edition phần 3 pot

the book of javascript 2nd edition phần 3 pot

... it. The function multiplyTheFields() does all the work. The code in X of Figure 7- 16 looks up the value of the text field field_one (]) inside the form my_form, located in the document of the ... sets the left border of the window you’re moving. If you move the left border of the window into the center of the screen, the window will be too far t...

Ngày tải lên: 06/08/2014, 09:20

50 411 0
the book of javascript 2nd edition phần 7 ppsx

the book of javascript 2nd edition phần 7 ppsx

... into which the results of the script will be placed. The ems you see in the style of the div set the width of the div equal to some multiple of the width of the letter m (em) in the font being ... browser. Figure 16- 2: Adding a new item to the To Do list Notice the Sharing link at the right end of the navigation bar at the top of the list in F...

Ngày tải lên: 06/08/2014, 09:20

50 436 0
w