网络程序设计
2006-12
John Wiley & Sons Inc
Bates, Chris
654
Web programming is about more than creating and formatting webpages and websites, though that is often a starting point for many. Using scripting languages such as JavaScript, Perl and PH, it becomes possible to add a lot more functionality to a site. This book teaches the essentials of working with the most important web technologies. From client development using HTML and Javascript, through to full server side applications written in ASP and Perl, the complete web system is shown. Concentrating on immediately useful code rather than theory, this is a how-to book for practical and project based courses. The broad scope covered by this book begins by creating reasonably simple webpages with HTML, then working through related document and content tagging systems such as dynamic HTML and eventually XML.
Chris Bates has been teaching a web programming course for several years to a large and diverse group of students during which he has created and refined the examples and exercises used in the book.
Preface Acknowledgments 1 Introduction 1.1 HTML, XML, and the World Wide Web ExercisesPart I HTML 2 Hypertext Markup Language 2.1 Basic HTML 2.2 The Document Body 2.3 Text 2.4 Hyperlinks 2.5 Adding More Formatting 2.6 Lists 2.7 Using Color and Images 2.8 Images Exercises 3 More HTML 3.1 Tables 3.2 Multimedia Objects 3.3 Frames 3.4 Forms-Toward Interactivity 3.5 The HTML Document Head in Detail 3.6 XHTML-An Evolutionary Markup ExercisesPart II Stylesheets 4 Cascading Stylesheets 4.1 Introduction 4.2 Using Styles: Simple Examples …… 5 Cascading Style Sheets Two Part III JavaScript 6 An Introduction to JavaScript 7 Objects in JavaScript 8 Dynamic HTML with JavaScript Part IV Perl 9 Programming in Perl 5 10 CGI Scripting 11 Building Web Applications With Perl Part V PHP. 12 An Introduction to PHP 13 Building Web Applications With PHP Part VI Miscellany 14 XML: Defining Data for Web Applications 15 Good Design 16 Protocols 17 Case Study Part VII Appendices Glossary Appendix A: Accessing a Database From PHP Using mysqli Appendix B: Accessing a Database From PHP Using Pear DB Appendix C: HTML Color Codes Appendix D: HTML Entities Index