Plug-In Javascript 100 POWER SOLUTIONS

Total Page:16

File Type:pdf, Size:1020Kb

Plug-In Javascript 100 POWER SOLUTIONS www.allitebooks.com Plug-in JavaScript 100 POWER SOLUTIONS Robin Nixon New York Chicago San Francisco Lisbon London Madrid Mexico City Milan New Delhi San Juan Seoul Singapore Sydney Toronto www.allitebooks.com Copyright © 2011 by The McGraw-Hill Companies. All rights reserved. Except as permitted under the United States Copyright Act of 1976, no part of this publication may be reproduced or distributed in any form or by any means, or stored in a database or retrieval system, without the prior written permission of the publisher. ISBN: 978-0-07-173862-0 MHID: 0-07-173862-2 The material in this eBook also appears in the print version of this title: ISBN: 978-0-07-173861-3, MHID: 0-07-173861-4. All trademarks are trademarks of their respective owners. Rather than put a trademark symbol after every occurrence of a trademarked name, we use names in an editorial fashion only, and to the benefi t of the trademark owner, with no intention of infringement of the trademark. Where such designations appear in this book, they have been printed with initial caps. McGraw-Hill eBooks are available at special quantity discounts to use as premiums and sales promotions, or for use in corporate training programs. To contact a representative please e-mail us at [email protected]. Information has been obtained by McGraw-Hill from sources believed to be reliable. However, because of the possibility of human or mechani- cal error by our sources, McGraw-Hill, or others, McGraw-Hill does not guarantee the accuracy, adequacy, or completeness of any information and is not responsible for any errors or omissions or the results obtained from the use of such information. TERMS OF USE This is a copyrighted work and The McGraw-Hill Companies, Inc. (“McGrawHill”) and its licensors reserve all rights in and to the work. Use of this work is subject to these terms. Except as permitted under the Copyright Act of 1976 and the right to store and retrieve one copy of the work, you may not decompile, disassemble, reverse engineer, reproduce, modify, create derivative works based upon, transmit, distribute, disseminate, sell, publish or sublicense the work or any part of it without McGraw-Hill’s prior consent. You may use the work for your own noncommercial and personal use; any other use of the work is strictly prohibited. Your right to use the work may be terminated if you fail to comply with these terms. THE WORK IS PROVIDED “AS IS.” McGRAW-HILL AND ITS LICENSORS MAKE NO GUARANTEES OR WARRANTIES AS TO THE ACCURACY, ADEQUACY OR COMPLETENESS OF OR RESULTS TO BE OBTAINED FROM USING THE WORK, INCLUDING ANY INFORMATION THAT CAN BE ACCESSED THROUGH THE WORK VIA HYPERLINK OR OTHERWISE, AND EXPRESSLY DISCLAIM ANY WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MER- CHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. McGraw-Hill and its licensors do not warrant or guarantee that the functions contained in the work will meet your requirements or that its operation will be uninterrupted or error free. Neither McGraw-Hill nor its licensors shall be liable to you or anyone else for any inaccuracy, error or omission, regardless of cause, in the work or for any damages resulting therefrom. McGraw-Hill has no responsibility for the content of any information accessed through the work. Under no circumstances shall McGraw-Hill and/or its licensors be liable for any indirect, incidental, special, punitive, consequential or similar damages that result from the use of or inability to use the work, even if any of them has been advised of the possibility of such damages. This limitation of liability shall apply to any claim or cause whatsoever whether such claim or cause arises in contract, tort or otherwise. www.allitebooks.com J8M<?LE;I<;JF=?FLIJ GCL>$@E F=GIF>I8DD@E>K@D< These handy guides are packed with ready-to- run plug-ins you can use right away to create dynamic Web content. Every plug-in offers a full working solution for a result you can achieve immediately, using complete code you simply drop into your own programs. Valuable customization tips are also included in these practical resources. Robin Nixon is a developer and freelance tech- nical writer who has published more than 500 articles in magazines such as PC Plus, PCW, Web User, .net, PC Advisor, and PC Answers. Available everywhere computer books are sold, in print and ebook formats. www.allitebooks.com For Julie www.allitebooks.com About the Author Robin Nixon has worked with and written about computers since the early 1980s (his first computer was a Tandy TRS 80 Model 1 with a massive 4KB of RAM!). Since then, he has written in excess of 500 articles for many of the U.K.’s top computer magazines. Plug-in JavaScript is his sixth book. Robin lives on the southeast coast of England with his wife Julie, who is a trained nurse, and five children. He also finds time to foster three disabled children and works full time from home as a technical author. Also by Robin Nixon The PC Companion, Sigma Press, 1993, ISBN 978-150585138 The Amstrad Advanced User Guide, Sigma Press, 1993, ISBN 978-150585152 Learning PHP, MySQL, and JavaScript, O’Reilly, 2009, ISBN 978-0596157135 Ubuntu: Up and Running, O’Reilly, 2010, ISBN 978-0596804848 Plug-in PHP, McGraw-Hill Professional, 2010, ISBN 978-0071666596 About the Technical Editor Alan Solis has more than 30 years experience designing, writing, and maintaining software for companies ranging from small start-ups to large corporations. He currently designs and maintains websites and web applications using PHP, JavaScript, Java, and various relational databases. In his spare time, Alan enjoys creative writing and is a published short story and poetry author. Alan lives in the San Jose, California area with his wife, Cheryl. www.allitebooks.com Contents at a Glance 1 Making the Best Use of These Plug-ins . 1 2 JavaScript, CSS, and the DOM ..................................... 13 3 The Core Plug-ins . 23 4 Location and Dimensions . 73 5 Visibility ........................................................ 97 6 Movement and Animation . 129 7 Chaining and Interaction .......................................... 177 8 Menus and Navigation ............................................ 211 9 Text Effects . 257 10 Audio and Visual Effects .......................................... 289 11 Cookies, Ajax, and Security ........................................ 321 12 Forms and Validation . 339 13 Solutions to Common Problems .................................... 359 Index . 385 v www.allitebooks.com This page intentionally left blank www.allitebooks.com Contents Acknowledgments ................................................ xxiii Introduction ...................................................... xxv 1 Making the Best Use of These Plug-ins . 1 Downloading and Installing Web Browsers ........................... 2 Choosing a Program Editor . 3 Managing Ajax . 4 Older Versions of Microsoft Internet Explorer ......................... 6 Emulating Internet Explorers 6 and 7 . 7 The Companion Website ........................................... 8 Including All the Plug-ins .......................................... 9 Including Single Plug-ins . 9 Where to Include the JavaScript ..................................... 10 Cherry Picking Code Sections . 10 Bug Fixing and Reporting .......................................... 10 Waiting Until the Web Page Has Loaded . 11 Summary . ...... 12 2 JavaScript, CSS, and the DOM ..................................... 13 The Document Object Model (DOM) . 14 Accessing the DOM from JavaScript ........................... 16 Cascading Style Sheets . 17 Accessing Styles in JavaScript . 19 JavaScript and Semicolons . 21 Summary . ...... 21 3 The Core Plug-ins . 23 Plug-in 1: O() ..................................................... 24 About the Plug-in ........................................... 24 Variables, Arrays, and Functions .............................. 24 How It Works . 25 How To Use It .............................................. 30 The Plug-in . 31 Plug-in 2: S() . ... 31 About the Plug-in ........................................... 32 Variables, Arrays, and Functions .............................. 32 How It Works . 33 How To Use It .............................................. 33 The Plug-in . 34 vii www.allitebooks.com viii Plug-in JavaScript: 100 Power Solutions Plug-in 3: Initialize() ............................................... 35 About the Plug-in ........................................... 35 Variables, Arrays, and Functions .............................. 36 How It Works . 36 How To Use It .............................................. 39 The Plug-in . 39 Plug-in 4: CaptureMouse() . 40 About the Plug-in ........................................... 40 Variables, Arrays, and Functions .............................. 41 How It Works . 41 How To Use It .............................................. 41 The Plug-in . 43 Plug-in 5: CaptureKeyboard() . 43 About the Plug-in ........................................... 43 Variables, Arrays, and Functions .............................. 44 How It Works . 44 How To Use It .............................................. 44 The Plug-in . 45 Plug-in 6: FromKeyCode() . 45 About the Plug-in ........................................... 46 Variables, Arrays, and Functions .............................. 46 How It Works . 46 How To Use It .............................................. 46 The Plug-in . 47 Plug-in 7: GetLastKey() ............................................ 48 About the Plug-in ..........................................
Recommended publications
  • Php Editor Mac Freeware Download
    Php editor mac freeware download Davor's PHP Editor (DPHPEdit) is a free PHP IDE (Integrated Development Environment) which allows Project Creation and Management, Editing with. Notepad++ is a free and open source code editor for Windows. It comes with syntax highlighting for many languages including PHP, JavaScript, HTML, and BBEdit costs $, you can also download a free trial version. PHP editor for Mac OS X, Windows, macOS, and Linux features such as the PHP code builder, the PHP code assistant, and the PHP function list tool. Browse, upload, download, rename, and delete files and directories and much more. PHP Editor free download. Get the latest version now. PHP Editor. CodeLite is an open source, free, cross platform IDE specialized in C, C++, PHP and ) programming languages which runs best on all major Platforms (OSX, Windows and Linux). You can Download CodeLite for the following OSs. Aptana Studio (Windows, Linux, Mac OS X) (FREE) Built-in macro language; Plugins can be downloaded and installed from within jEdit using . EditPlus is a text editor, HTML editor, PHP editor and Java editor for Windows. Download For Mac For macOS or later Release notes - Other platforms Atom is a text editor that's modern, approachable, yet hackable to the core—a tool. Komodo Edit is a simple, polyglot editor that provides the basic functionality you need for programming. unit testing, collaboration, or integration with build systems, download Komodo IDE and start your day trial. (x86), Mac OS X. Download your free trial of Zend Studio - the leading PHP Editor for Zend Studio - Mac OS bit fdbbdea, Download.
    [Show full text]
  • Desktop GUI Development
    Learn Quickly Creating Professional Looking Desktop Application Using Python2.7/wxPython, wxFormBuilder, Py2exe and InnoSetup Take your ability to develop powerful applications for desktop to the next level today. This book is the companion to my video series on Learning GUI with Python You may freely copy and distribute this eBook as long as you do not modify the text. You must not make any charge for this eBook. Author: Umar Yusuf Tel: +2348039508010 URL: www.UmarYusuf.com Email: [email protected] 1 | P a g e LESSON CONTENTS 1: Introduction and overview of our app 2: Beautiful Apps created with wxPython 3: Downloading and Installation o Python 2.x.x o Python Libraries: wxPython, and Py2Exe (easy_install, PIP) o wxFormBuilder o InnoSetup o Editor/IDE (NotePad++, SublimeText, or AptanaStudio) 4: Testing installations 5: Developing the console program 6: Sketch the App GUI (Graphical User Interface) 7: Creating GUI (Graphical User Interface) Setup wxformbuilder Create Frame Window Add Menu and Status bars Add Widgets (Buttons and TextControl) Define/name Widgets Methods 8: Binding Events to Methods 9: Compiling, Packaging and distributing our completed App 10: References 2 | P a g e INTRODUCTION AND OVERVIEW OF OUR APP My name is Umar Yusuf, am based in Nigeria, Africa. I love to help people grow in their technical careers! I have a passion for condensing complex topics into accessible concepts, practical skills and ready-to- use examples. See more details about me here: www.UmarYusuf.com This tutorial will show you how to design and build a fully-functional desktop Graphical User Interface (GUI) application for maths Expression Evaluation using a combination of Python 2.x, wxPython, wxFormBuilder, Py2exe and InnoSetup.
    [Show full text]
  • Pymupdf 1.12.2 Documentation » Next | Index Pymupdf Documentation
    PyMuPDF 1.12.2 documentation » next | index PyMuPDF Documentation Introduction Note on the Name fitz License Covered Version Installation Option 1: Install from Sources Step 1: Download PyMuPDF Step 2: Download and Generate MuPDF Step 3: Build / Setup PyMuPDF Option 2: Install from Binaries Step 1: Download Binary Step 2: Install PyMuPDF MD5 Checksums Targeting Parallel Python Installations Using UPX Tutorial Importing the Bindings Opening a Document Some Document Methods and Attributes Accessing Meta Data Working with Outlines Working with Pages Inspecting the Links of a Page Rendering a Page Saving the Page Image in a File Displaying the Image in Dialog Managers Extracting Text Searching Text PDF Maintenance Modifying, Creating, Re-arranging and Deleting Pages Joining and Splitting PDF Documents Saving Closing Example: Dynamically Cleaning up Corrupt PDF Documents Further Reading Classes Annot Example Colorspace Document Remarks on select() select() Examples setMetadata() Example setToC() Example insertPDF() Examples Other Examples Identity IRect Remark IRect Algebra Examples Link linkDest Matrix Remarks 1 Remarks 2 Matrix Algebra Examples Shifting Flipping Shearing Rotating Outline Page Description of getLinks() Entries Notes on Supporting Links Homologous Methods of Document and Page Pixmap Supported Input Image Types Details on Saving Images with writeImage() Pixmap Example Code Snippets Point Remark Point Algebra Examples Shape Usage Examples Common Parameters Rect Remark Rect Algebra Examples Operator Algebra for Geometry Objects
    [Show full text]
  • Learning PHP, Mysql & Javascript, 5Th Edition
    Learning PHP, MySQL, & JavaScript With jQuery, CSS, & HTML5 Fifth Edition Robin Nixon 1. Learning PHP, MySQL, & JavaScript 2. Preface 1. Audience 2. Assumptions This Book Makes 3. Organization of This Book 4. Supporting Books 5. Conventions Used in This Book 6. Using Code Examples 7. Safari® Books Online 8. How to Contact Us 9. Acknowledgments 3. 1. Introduction to Dynamic Web Content 1. HTTP and HTML: Berners-Lee’s Basics 2. The Request/Response Procedure 3. The Benefits of PHP, MySQL, JavaScript, CSS, and HTML5 1. Using PHP 2. Using MySQL 3. Using JavaScript 4. Using CSS 4. And Then There’s HTML5 5. The Apache Web Server 6. Handling mobile devices 7. About Open Source 8. Bringing It All Together 9. Questions 4. 2. Setting Up a Development Server 1. What Is a WAMP, MAMP, or LAMP? 2. Installing Ampps on Windows 1. Testing the Installation 3. Installing Ampps on Mac OS X 4. Installing a LAMP on Linux 5. Working Remotely 1. Logging In 2. Using FTP 6. Using a Program Editor 7. Using an IDE 8. Questions 5. 3. Introduction to PHP 1. Incorporating PHP Within HTML 2. This Book’s Examples 3. The Structure of PHP 1. Using Comments 2. Basic Syntax 3. Variables 4. Operators 5. Variable Assignment 6. Multiple-Line Commands 7. Variable Typing 8. Constants 9. Predefined Constants 10. The Difference Between the echo and print Commands 11. Functions 12. Variable Scope 4. Questions 6. 4. Expressions and Control Flow in PHP 1. Expressions 1. TRUE or FALSE? 2. Literals and Variables 2.
    [Show full text]
  • Microsoft Open Xml Converter Free Download How to Convert XML to Excel
    microsoft open xml converter free download How to Convert XML to Excel. PDFelement is one of the best programs which are available for xml to excel conversion with quality. To convert xml to excel there is no other program that works as well as this one. If the users want to know how to convert xml to excel then this is the best answer which they can find online. It is advised not to go for the online PDF readers as they can compromise the data. Convert XML to Excel with PDFelement. The best part of the process which is associated with PDFelement is that will make sure that users get the output as they expect. The overall management of the process is very easy as the interface is graphical in nature. The program will also get the users the outcome faster as compared to every PDF related program found on the internet. Step 1. Open an XML. Double-click the XML file to open it in a browser or right-click it to choose to open with Notepad. Step 2. Print XML. Press the "Print" button in your browser, and in the new popup window, select PDFelement as the printer to proceed with the process. Step 3. Convert to Excel. PDFelement will be opened automatically, and your file will be created in it. Then click the "Convert">"To Excel" button to convert it. These are all the steps about how to convert an XML file to excel. Why Choose PDFelement to Convert XML to Excel. To convert an XML file to Excel, PDFelement will get the best and the most advanced tools embedded.
    [Show full text]
  • Learning PHP, Mysql & Javascript
    4th Edition with jQuery Learning PHP, MySQL & JavaScript FOURTH EDITION Build interactive, data-driven websites with the potent combination of Thisisagreatbeginner's “ JavaScript & MySQL PHP, Learning open-source technologies and web standards, even if you have only basic book thatintroduces HTML knowledge. With this popular hands-on guide, you’ll tackle dynamic web programming with the help of today’s core technologies: PHP, MySQL, severalcrucialweb JavaScript, jQuery, CSS, and HTML5. developerlanguages. Explore each technology separately, learn how to use them together, and It'saquick-paced,easy- pick up valuable web programming practices along the way. At the end of to-read,information- the book, you’ll put everything together to build a fully functional social packedbookthatwill networking site, using XAMPP or any development stack you choose. soonhaveyoucreating ■ Learn PHP in-depth, along with the basics of object-oriented dynamicallydrivenweb- programming sites,includingabasic ■ Explore MySQL, from database structure to complex queries socialnetworkingsite.” Learning ■ Use the MySQLi Extension, PHP’s improved MySQL interface —Albert Wiersch developer of CSE HTML Validator ■ Create dynamic PHP web pages that tailor themselves to the user ■ Manage cookies and sessions, and maintain a high level of security P H P, M y S Q L ■ Master the JavaScript language—and enhance it with jQuery ■ Use Ajax calls for background browser/server communication ■ Acquire CSS2 & CSS3 skills for professionally styling your web pages & JavaScript ■ Implement all of the new HTML5 features, including geolocation, audio, video, and the canvas WITH JQUERY, CSS & HTML5 Robin Nixon, an IT journalist who has written hundreds of articles and several books on computing, has developed numerous websites using open source tools, specializing in the technologies featured in this book.
    [Show full text]
  • Editing Files « Wordpress Codex
    Editing Files « WordPress Codex http://codex.wordpress.org/Editing_Files Codex Codex tools: Log in Editing Files Home Page WordPress Lessons Languages : English • Français • Português do Brasil • 中文 (简体) • (Add your language ) Getting Started Working with WordPress There are times when you will need to edit the WordPress files, especially if you want to Contents Design and Layout make changes in your WordPress Theme . WordPress features a built-in editor for editing Advanced Topics files from within your browser whilst online: The Theme Editor . You can also edit files [hide ] copied or stored on your computer and then upload them to your site using an FTP client . 1 Using the Theme Editor and Plugin Troubleshooting Editor Developer Docs Before editing any of your WordPress files, check the following: 1.1 What Files Can Be Edited? About WordPress 1.2 Things You Need to Know BACKUP! And Work from Backups 2 Editing Files Offline Codex Resources Work from copies of backup files when possible and/or make sure that you backup your 3 Using Text Editors information frequently as you work and make changes. Keep backups in a safe place. 3.1 Editors to Avoid Community portal 3.2 Text Editors Current events File Permissions 3.3 IDEs Recent changes When working online, you need to set the appropriate file permissions to modify and Random page save them. If you see a note at the bottom of the WordPress Built-in Editor panel that says "If this file was writable you could edit it." , this means you need to change the file permissions before you can make any changes.
    [Show full text]
  • Plug-In Javascript: 100 Power Solutions Contents Ix
    Plug-in JavaScript 100 POWER SOLUTIONS Robin Nixon New York Chicago San Francisco Lisbon London Madrid Mexico City Milan New Delhi San Juan Seoul Singapore Sydney Toronto Copyright © 2011 by The McGraw-Hill Companies. All rights reserved. Except as permitted under the United States Copyright Act of 1976, no part of this publication may be reproduced or distributed in any form or by any means, or stored in a database or retrieval system, without the prior written permission of the publisher. ISBN: 978-0-07-173862-0 MHID: 0-07-173862-2 The material in this eBook also appears in the print version of this title: ISBN: 978-0-07-173861-3, MHID: 0-07-173861-4. All trademarks are trademarks of their respective owners. Rather than put a trademark symbol after every occurrence of a trademarked name, we use names in an editorial fashion only, and to the benefi t of the trademark owner, with no intention of infringement of the trademark. Where such designations appear in this book, they have been printed with initial caps. McGraw-Hill eBooks are available at special quantity discounts to use as premiums and sales promotions, or for use in corporate training programs. To contact a representative please e-mail us at [email protected]. Information has been obtained by McGraw-Hill from sources believed to be reliable. However, because of the possibility of human or mechani- cal error by our sources, McGraw-Hill, or others, McGraw-Hill does not guarantee the accuracy, adequacy, or completeness of any information and is not responsible for any errors or omissions or the results obtained from the use of such information.
    [Show full text]
  • Diseño Y Desarrollo De Una Aplicación De Escritorio Dedicada a La Composición Fotográfica
    E.T.S.I. TELECOMUNICACIÓN TRABAJO FIN DE GRADO GRADO EN INGENIERÍA DE TECNOLOGÍAS DE TELECOMUNICACIÓN Diseño y desarrollo de una aplicación de escritorio dedicada a la composición fotográfica Autor: D. Pablo Martín Junquera Tutora: Dra. Dña. Miriam Antón Rodríguez Valladolid, 4 de Junio de 2015 Diseño y desarrollo de una aplicación de escritorio dedicada a la composición fotográfica TFG – Pablo Martín Junquera 2 Diseño y desarrollo de una aplicación de escritorio dedicada a la composición fotográfica TRABAJO FIN DE GRADO TÍTULO: Diseño y desarrollo de una aplicación de escritorio dedicada a la composición fotográfica: Autodesign AUTOR: D. Pablo Martín Junquera TUTORA: Dña. Míriam Antón Rodríguez DEPARTAMENTO: Teoría de la Señal y Comunicaciones e Ingeniería Telemática TRIBUNAL PRESIDENTA: Dña. Mª Ángeles Pérez Juárez VOCAL: Dña. Míriam Antón Rodríguez SECRETARIO: D. David González Ortega SUPLENTE 1: D. Mario Martínez Zarzuela SUPLENTE 2: D. Francisco Javier Díaz Pernas FECHA: Julio de 2015 CALIFICACIÓN: TFG – Pablo Martín Junquera 3 Diseño y desarrollo de una aplicación de escritorio dedicada a la composición fotográfica TFG – Pablo Martín Junquera 4 Diseño y desarrollo de una aplicación de escritorio dedicada a la composición fotográfica AGRADECIMIENTOS “A mis padres, por apoyarme y confiar en mí hasta el final; a mis hermanos, por animarme en todo momento; a Claudia, por su ayuda, apoyo y ánimos en los buenos y malos momentos; a mi tutora, Miriam, por toda su ayuda, esfuerzo y dedicación” TFG – Pablo Martín Junquera 5 Diseño y desarrollo de una aplicación de escritorio dedicada a la composición fotográfica TFG – Pablo Martín Junquera 6 Diseño y desarrollo de una aplicación de escritorio dedicada a la composición fotográfica RESUMEN En este Trabajo Fin de Grado se propone el diseño y desarrollo de una aplicación software dedicada a la edición digital de imágenes.
    [Show full text]
  • DS Sciprog Lab Release 0.1.0
    DS Sciprog Lab Release 0.1.0 David Leoni Aug 27, 2020 CONTENTS 1 News 3 2 Slides 5 3 Office hours 7 4 Labs timetable 9 5 Tutoring 11 6 Exams 13 6.1 Schedule................................................. 13 6.2 Exam modalities............................................. 13 6.3 Exams how to.............................................. 14 6.4 Expectations............................................... 15 6.5 Grading.................................................. 16 6.6 Exams FAQ................................................ 16 6.7 Past exams................................................ 17 7 Resources 19 7.1 Part A Resources............................................. 19 7.2 Part B Resources............................................. 21 7.3 Editors.................................................. 21 7.4 Further readings............................................. 21 8 Acknoledgements 23 9 Past Exams 25 9.1 Data science............................................... 25 9.2 2017-18 (QCB).............................................. 328 9.3 2016-17 (QCB).............................................. 328 10 Slides 2019/20 329 10.1 Part A................................................... 329 11 Commandments 339 12 Introduction solutions 343 12.1 Download exercises zip......................................... 343 12.2 Installation................................................ 343 12.3 Python tutor............................................... 345 12.4 System console.............................................. 345 i 12.5 Python
    [Show full text]
  • II Yr 12-05-2020 What Is a WAMP, MAMP, Or LAMP?
    B.Sc(PS)II yr 12-05-2020 What Is a WAMP, MAMP, or LAMP? • WAMP, MAMP, and LAMP are abbreviations for “Windows, Apache, MySQL, and PHP,” “Mac, Apache, MySQL, and PHP,” and “Linux, Apache, MySQL, and PHP.” These abbreviations each describe a fully functioning setup used for developing dynamic internet web pages. • WAMPs, MAMPs, and LAMPs come in the form of packages that bind the bundled programs together so that you don’t have to install and set them up separately. This means you can simply download and install a single program and follow a few easy prompts to get your web development server up and running fast, with minimal hassle. • During installation, several default settings are created for you. The security configurations of such an installation will not be as tight as on a production web server, because it is optimized for local use. For these reasons, you should never install such a setup as a production server. • For developing and testing websites and applications, one of these installations should be entirely sufficient. If you choose not to go the WAMP/MAMP/LAMP route for building your own development system, you should know that downloading and integrating the various parts yourself can be very time-consuming and may require a lot of research in order to configure everything fully. Installing AMPPS on Windows • There are several available WAMP servers, each offering slightly different configurations. Of the various open source and free options, one of the best is AMPPS. • Download Link have been specified in your book. Follow the Wizard to install AMPPS.
    [Show full text]
  • O'reilly Media -- Template for Microsoft Word
    O’Reilly Media, Inc. 7/8/2014 2 Setting Up a Development Server If you wish to develop Internet applications but don’t have your own development server, you will have to upload every modification you make to a server somewhere else on the Web before you can test it. Even on a fast broadband connection, this can still represent a significant slowdown in development time. On a local computer, however, testing can be as easy as saving an update (usually just a matter of clicking once on an icon) and then hitting the Refresh button in your browser. Another advantage of a development server is that you don’t have to worry about embarrassing errors or security problems while you’re writing and testing, whereas you need to be aware of what people may see or do with your application when it’s on a public website. It’s best to iron everything out while you’re still on a home or small office system, presumably protected by firewalls and other safeguards. Once you have your own development server, you’ll wonder how you ever managed without one, and it’s easy to set one up. Just follow the steps in the following sections, using the appropriate instructions for a PC, a Mac, or a Linux system. In this chapter, we cover just the server side of the web experience, as described in Chapter 1. But to test the results of your work—particularly when we start using JavaScript, CSS and HTML5 later in this book—you should also have an instance of every major web browser running on some system convenient to you.
    [Show full text]