Title:
Introduction to interactive programming on the internet : using HTML and JavaScript
Personal Author:
Publication Information:
New York : John Wiley, 2001
ISBN:
9780471383666
Available:*
Library | Item Barcode | Call Number | Material Type | Item Category 1 | Status |
---|---|---|---|---|---|
Searching... | 30000004748376 | QA76.625 K58 2001 | Open Access Book | Book | Searching... |
On Order
Summary
Summary
This unique text provides an introduction to programming on the internet. Class tested, over a two-year period, this text covers the "nuts and bolts" of internet programming. In addition to core fundamentals, students are introduced to web page construction HTML, managing an account on a web server, client-server model, and JavaScript programming.
Suitable for an introductory course on Internet programming. Course can be found in Computer Science, Computer Information Systems, and Management Information Systems departments.
Author Notes
Craig D. Knuckles is the author of Introduction to Interactive Programming on the Internet: Using HTML and JavaScript, published by Wiley.
Table of Contents
Lesson 1 The Internet and World Wide Web | p. 1 |
1.1 The Internet | p. 1 |
1.2 A Brief History of the Internet | p. 3 |
1.3 Intranets | p. 4 |
1.4 Controlling Traffic on the Internet (TCP/IP) | p. 5 |
1.5 IP Addresses | p. 5 |
1.6 Routers and Packets | p. 6 |
1.7 The World Wide Web | p. 7 |
1.8 The Internet vs. the World Wide Web | p. 10 |
1.9 Named Addresses and Domains | p. 11 |
1.10 Domain Name Servers | p. 12 |
1.11 Domains and Web Servers | p. 12 |
1.12 Web Server Accounts | p. 14 |
1.13 Domain Suffixes | p. 15 |
1.14 Summary | p. 16 |
1.15 Review Questions | p. 17 |
1.16 Exercises | p. 17 |
1.17 Project Threads | p. 18 |
Lesson 2 Transactions on the Web | p. 20 |
2.1 Platform Independence | p. 20 |
2.2 The HTML Document | p. 22 |
2.3 The file Protocol | p. 23 |
2.4 The http Protocol | p. 25 |
2.5 The ftp Protocol vs. http | p. 28 |
2.6 Public Directories on Web Servers | p. 31 |
2.7 Web Servers and ftp | p. 33 |
2.8 Hiding Directories on Web Servers | p. 37 |
2.9 The telnet Protocol | p. 41 |
2.10 Summary | p. 42 |
2.11 Review Questions | p. 43 |
2.12 Exercises | p. 44 |
2.13 Project Threads | p. 44 |
Lesson 3 Text Markup | p. 45 |
3.1 HTML Tags and Document Structure | p. 46 |
3.2 Container Elements | p. 49 |
3.3 Formatting Text | p. 50 |
3.4 Horizontal Space | p. 52 |
3.5 Header Elements | p. 54 |
3.6 Preformatted Text and Quoted Material | p. 56 |
3.7 Summary | p. 58 |
3.8 Review Questions | p. 59 |
3.9 Exercises | p. 59 |
3.10 Project Threads | p. 60 |
Lesson 4 Controlling Text Markup | p. 61 |
4.1 Default Settings | p. 61 |
4.2 The HR Element and HTML Attributes | p. 62 |
4.3 HTML Attributes in General | p. 66 |
4.4 Paragraph Alignment | p. 68 |
4.5 Attributes of the BODY Element | p. 69 |
4.6 The FONT Element (Depreciated) | p. 71 |
4.7 Putting It All Together: A Practical Example | p. 73 |
4.8 Style Sheets (Optional) | p. 76 |
4.9 Summary | p. 84 |
4.10 Review Questions | p. 86 |
4.11 Exercises | p. 87 |
4.12 Project Threads | p. 87 |
Lesson 5 Hypertext Markup and Web Sites | p. 88 |
5.1 HREF Anchors (Links) | p. 88 |
5.2 Absolute and Relative URLs | p. 90 |
5.3 Site Portability | p. 96 |
5.4 Web Site Design Strategies | p. 97 |
5.5 Named Anchors | p. 100 |
5.6 Links to Named Anchors in Other Documents | p. 104 |
5.7 The Mailto Link | p. 105 |
5.8 Summary | p. 106 |
5.9 Review Questions | p. 108 |
5.10 Exercises | p. 108 |
5.11 Project Threads | p. 109 |
Lesson 6 Image Markup | p. 111 |
6.1 Image Files | p. 111 |
6.2 Image Markup | p. 114 |
6.3 Creating Space: The Width and Height Attributes | p. 116 |
6.4 Positioning Images with Text | p. 118 |
6.5 Images as Links | p. 121 |
6.6 Organizing Image Files | p. 123 |
6.7 Putting Images on a Web Server | p. 124 |
6.8 Transparent GIFs and Animated GIFs | p. 124 |
6.9 Background Images | p. 125 |
6.10 Image Maps (Optional) | p. 126 |
6.11 Summary | p. 131 |
6.12 Review Questions | p. 134 |
6.13 Exercises | p. 134 |
6.14 Project Threads | p. 135 |
Lesson 7 HTML Lists and Tables | p. 136 |
7.1 HTML Editors | p. 136 |
7.2 Unordered Lists | p. 137 |
7.3 Ordered Lists | p. 139 |
7.4 HTML Tables | p. 141 |
7.5 Controlling TABLE Properties | p. 142 |
7.6 Controlling Row Properties | p. 144 |
7.7 Controlling Properties of Individual Cells | p. 144 |
7.8 HTML Tables as Page Organizers | p. 146 |
7.9 Spanning Rows and Columns | p. 149 |
7.10 Advanced Page Layout | p. 151 |
7.10 Summary | p. 153 |
7.11 Review Questions | p. 155 |
7.12 Exercises | p. 155 |
7.13 Project Threads | p. 156 |
Lesson 8 HTML Frames | p. 158 |
8.1 Framed Web Pages | p. 158 |
8.2 Attributes of the FRAMESET Element | p. 160 |
8.3 Attributes of the FRAME Element | p. 161 |
8.4 Targeting Links to Frames | p. 163 |
8.5 Nested Frames | p. 165 |
8.6 The Pros and Cons of Frames | p. 168 |
8.7 Summary | p. 169 |
8.8 Review Questions | p. 171 |
8.9 Exercises | p. 171 |
8.10 Project Threads | p. 172 |
Lesson 9 What is Javascript? | p. 174 |
9.1 Overview of HTML Forms | p. 175 |
9.2 The Client-Server Model | p. 178 |
9.3 Interpreted Programming Languages | p. 180 |
9.4 JavaScript is Not Java | p. 181 |
9.5 Why Learn JavaScript? | p. 182 |
9.6 Related Technologies | p. 183 |
9.7 Summary | p. 184 |
9.8 Review Questions | p. 185 |
9.9 Exercises | p. 185 |
9.10 Project Threads | p. 185 |
Lesson 10 Processing User Input | p. 186 |
10.1 Using JavaScript to Generate HTML | p. 186 |
10.2 Interpreting JavaScript and HTML | p. 189 |
10.3 Where Can JavaScript Be Located? | p. 189 |
10.4 Prompting for and Storing User Input | p. 191 |
10.5 Using Variables to Process Information | p. 193 |
10.6 Variables Names | p. 195 |
10.7 Variable Types | p. 196 |
10.8 Concatenation of Strings | p. 198 |
10.9 Variable Assignment | p. 199 |
10.10 Parsing User Input | p. 200 |
10.11 Statements and Punctuation | p. 203 |
10.12 Errors | p. 205 |
10.13 Flexibility | p. 206 |
10.14 Summary | p. 210 |
10.15 Review Questions | p. 211 |
10.16 Exercises | p. 212 |
10.17 Project Threads | p. 212 |
Lesson 11 Making Decisions | p. 213 |
11.1 Boolean Variables | p. 213 |
11.2 The "if" Statement: Making Decisions | p. 216 |
11.3 A Concatenation Shortcut | p. 220 |
11.4 The "if...else" Structure | p. 221 |
11.5 Basic Input Verification | p. 225 |
11.6 Writing Programs | p. 227 |
11.7 An Advanced Example (Optional) | p. 227 |
11.8 Summary | p. 234 |
11.9 Review Questions | p. 236 |
11.10 Exercises | p. 237 |
11.11 Project Threads | p. 238 |
Lesson 12 Objects | p. 239 |
12.1 The Nature of Objects | p. 239 |
12.2 JavaScript Objects | p. 240 |
12.3 Objects and Primitives | p. 241 |
12.4 A Simple Program Using Objects | p. 242 |
12.5 Compound Objects | p. 244 |
12.6 The Object Model for the Browser Window | p. 245 |
12.7 Using Window and Document Properties | p. 247 |
12.8 Object Methods | p. 249 |
12.9 Methods of the Window Object | p. 250 |
12.10 The Math Object | p. 252 |
12.11 Summary | p. 253 |
12.12 Review Questions | p. 254 |
12.13 Exercises | p. 255 |
12.14 Project Threads | p. 255 |
Lesson 13 Introduction to Processing Html Forms | p. 256 |
13.1 User Events | p. 256 |
13.2 The Form Object | p. 258 |
13.3 Using Local Variables in Functions | p. 260 |
13.4 The With Statement | p. 264 |
13.5 Organizing Forms with HTML Tables | p. 264 |
13.6 Verification of Text Input | p. 265 |
13.7 An Advanced Example (Optional) | p. 267 |
13.8 Summary | p. 270 |
13.9 Review Questions | p. 271 |
13.10 Exercises | p. 272 |
13.11 Project Threads | p. 272 |
Lesson 14 Options in HTML forms | p. 273 |
14.1 The Checkbox | p. 273 |
14.2 Using Hidden Values for Checkboxes | p. 276 |
14.3 Radio Buttons and the elements[] Array | p. 278 |
14.4 Using Radio Buttons and the elements[] Array | p. 280 |
14.5 The Pull-Down Menu | p. 283 |
14.6 The onchange Event Handler | p. 286 |
14.7 Verification of User Choices | p. 287 |
14.8 An Advanced Example (Optional) | p. 288 |
14.9 Summary | p. 291 |
14.10 Review Questions | p. 292 |
14.11 Exercises | p. 292 |
14.12 Project Threads | p. 293 |
Lesson 15 Loops for Repetition | p. 294 |
15.1 The for Loop | p. 294 |
15.2 Counters in Loops | p. 297 |
15.3 Using Loops to Process Forms | p. 299 |
15.4 The while Loop | p. 304 |
15.5 Indefinite Verification of Prompt Input | p. 307 |
15.6 Nested Loops (Optional) | p. 309 |
15.7 An Example Using Nested Loops (Optional) | p. 311 |
15.8 Summary | p. 315 |
15.9 Review Questions | p. 315 |
15.10 Exercises | p. 316 |
15.11 Project Threads | p. 317 |
Lesson 16 More on Arrays | p. 318 |
16.1 Parallel Arrays | p. 318 |
16.2 The Array Object | p. 321 |
16.3 The Image Object and Images[] Array | p. 323 |
16.4 Preloading Images into Arrays | p. 325 |
16.5 The Onload Event Handler | p. 326 |
16.6 Displaying a Randomly Selected Image | p. 328 |
16.7 Cycling Image Displays | p. 329 |
16.8 Searching Arrays (Optional) | p. 331 |
16.9 Summary | p. 336 |
16.10 Review Questions | p. 337 |
16.11 Exercises | p. 338 |
16.12 Project Threads | p. 339 |
Lesson 17 More on Functions | p. 340 |
17.1 Calling Self-Defined Procedure Functions Without Event Handlers | p. 340 |
17.2 Using Parameters in Procedure Functions | p. 342 |
17.3 Opening New Windows With Form Buttons | p. 345 |
17.4 Image Rollovers | p. 347 |
17.5 Self-Defined Value Functions | p. 349 |
17.6 Using Boolean Return Functions to Verify Form Input | p. 354 |
17.7 The String Object and Verification | p. 356 |
17.8 Advanced Form Verification Using the String Object (Optional) | p. 358 |
17.9 Summary | p. 361 |
17.10 Review Questions | p. 362 |
17.11 Exercises | p. 363 |
17.12 Project Threads | p. 364 |
Lesson 18 Javascript Security and Submitting form Data | p. 365 |
18.1 The Password Input Element | p. 366 |
18.2 Importing External Scripts | p. 368 |
18.3 Other Security Tricks on the Client | p. 369 |
18.4 CGI Programs | p. 370 |
18.5 The Submit Button | p. 372 |
18.6 Using Hidden Form Elements | p. 374 |
18.7 Summary | p. 379 |
18.8 Review Questions | p. 380 |
18.9 Exercises | p. 381 |
18.10 Project Threads | p. 382 |
Appendix A HTML Quick Reference | p. 383 |
Appendix B Javascript Objects | p. 399 |
JavaScript Reserved Words | p. 405 |
Appendix C Hexadecimal Color Representations | p. 406 |
Appendix D Answers to Selected Review Questions | p. 409 |
Index | p. 419 |