Muutke küpsiste eelistusi

Pro PHP and jQuery 2nd ed. [Pehme köide]

  • Formaat: Paperback / softback, 370 pages, kõrgus x laius: 254x178 mm, kaal: 7264 g, 99 Illustrations, black and white; XVI, 370 p. 99 illus., 1 Paperback / softback
  • Ilmumisaeg: 28-Jan-2016
  • Kirjastus: APress
  • ISBN-10: 1484212312
  • ISBN-13: 9781484212318
Teised raamatud teemal:
  • Pehme köide
  • Hind: 62,59 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Tavahind: 73,64 €
  • Säästad 15%
  • Raamatu kohalejõudmiseks kirjastusest kulub orienteeruvalt 2-4 nädalat
  • Kogus:
  • Lisa ostukorvi
  • Tasuta tarne
  • Tellimisaeg 2-4 nädalat
  • Lisa soovinimekirja
  • Formaat: Paperback / softback, 370 pages, kõrgus x laius: 254x178 mm, kaal: 7264 g, 99 Illustrations, black and white; XVI, 370 p. 99 illus., 1 Paperback / softback
  • Ilmumisaeg: 28-Jan-2016
  • Kirjastus: APress
  • ISBN-10: 1484212312
  • ISBN-13: 9781484212318
Teised raamatud teemal:
Take advantage of the improved performance and reduced memory requirements of PHP version 7, and learn to utilize the new built-in PHP functions and features such as typed variable enforcement with declare(strict_types=1) and the new available data types, scalar type declarations for function arguments and return statements, constant arrays using define(), argument unpacking with the ... operator, integer division with intdiv(), the null coalesce operator, the spaceship operator, new exception types, and improvements to existing features.

Pro PHP and jQuery, Second Edition is for intermediate level programmers interested in building web applications using jQuery and PHP. Updated for PHP version 7 and the latest version of jQuery, this book teaches some advanced PHP techniques and it shows you how to take your dynamic applications to the next level by adding a JavaScript layer using the jQuery framework and APIs.

After reading and using this book, you'll come away having built a fully functional PHP and jQuery web application that you can reapply as a template for your own particular web application. 

Pro PHP and jQuery, Second Edition is for intermediate level programmers interested in building web applications using jQuery and PHP. Updated for PHP version 7 and the latest version of jQuery, this book teaches some advanced PHP techniques and it shows you how to take your dynamic applications to the next level by adding a JavaScript layer using the jQuery framework and APIs, considered the most popular JavaScript libraries.

After reading and using this book, you'll come away understanding a fully functional PHP using jQuery web application case study that you can reapply as a template for your own particular web application.

Moreover, from PHP 7, you'll get uniform variable syntax, the AST-based compilation process, the added Closure::call(), bitwise shift consistency across platforms, the (null coalesce) operator, Unicode codepoint escape syntax, return type declarations, and new and easier extensions development with support for redis, MongoDB and much more. 

Arvustused

The book is written for programmers, who have already some experience. Once you know what is a if-clause, array or how to make a simple HTML page, you are on the level of the book and you would be really happy to see what it has to offer. I liked the book and I learned from it. (Vitosh Academy, vitoshacademy.com, April, 2016)

About the Authors xiii
About the Technical Reviewer xv
Part 1 Getting Comfortable with jQuery
1(82)
Chapter 1 Introducing jQuery
3(22)
Choosing jQuery Over JavaScript
3(1)
Understanding JavaScript Libraries
3(1)
Understanding the Benefits of jQuery
4(1)
Understanding the History of jQuery
4(1)
Setting Up a Testing Environment
4(3)
Installing Firefox
5(1)
Installing Firebug
5(2)
Including jQuery in Web Pages
7(1)
Including a Downloaded Copy of the jQuery Library
7(1)
Including a Remotely Hosted Copy of the jQuery Library
8(1)
Setting up a Test File
8(15)
Introducing the jQuery Function
9(1)
Selecting DOM Elements Using CSS Syntax
9(14)
Summary
23(2)
Chapter 2 Common jQuery Actions and Methods
25(58)
Understanding the Basic Behavior of jQuery Scripts
25(1)
Understanding jQuery Methods
25(57)
Traversing DOM Elements
26(10)
Creating and Inserting DOM Elements
36(16)
Accessing and Modifying CSS and Attributes
52(9)
Affecting Result Sets
61(3)
Using Animation and Other Effects
64(6)
Handling Events
70(6)
Using AJAX Controls
76(6)
Summary
82(1)
Part 2 Getting Into Advanced PHP Programming
83(146)
Chapter 3 Object-Oriented Programming
85(30)
Understanding Object-Oriented Programming
85(1)
Understanding Objects and Classes
85(25)
Recognizing the Differences Between Objects and Classes
85(1)
Structuring Classes
86(1)
Defining Class Properties
87(1)
Defining Class Methods
88(9)
Using Class Inheritance
97(4)
Assigning the Visibility of Properties and Methods
101(7)
Commenting with DocBlocks
108(2)
Comparing Object-Oriented and Procedural Code
110(4)
Ease of Implementation
110(4)
Better Organization
114(1)
Easier Maintenance
114(1)
Summary
114(1)
Chapter 4 Build an Events Calendar
115(46)
Planning the Calendar
115(5)
Defining the Database Structure
115(1)
Creating the Class Map
115(1)
Planning the Application's Folder Structure
116(2)
Modifying the Development Environment
118(2)
Building the Calendar
120(40)
Creating the Database
120(1)
Connecting to the Database with a Class
121(2)
Creating the Class Wrapper
123(1)
Adding Class Properties
123(2)
Building the Constructor
125(6)
Loading Events Data
131(7)
Outputting HTML to Display the Calendar and Events
138(17)
Outputting HTML to Display Full Event Descriptions
155(5)
Summary
160(1)
Chapter 5 Add Controls to Create, Edit, and Delete Events
161(34)
Generating a Form to Create or Edit Events
161(9)
Adding a Token to the Form
164(1)
Creating a File to Display the Form
165(2)
Adding a New Stylesheet for Administrative Features
167(3)
Saving New Events in the Database
170(10)
Adding a Processing File to Call the Processing Method
173(3)
Adding a Button to the Main View to Create New Events
176(4)
Adding Edit Controls to the Full Event View
180(5)
Modifying the Full Event Display Method to Show Admin Controls
182(1)
Adding the Admin Stylesheet to the Full Event View Page
183(2)
Deleting Events
185(8)
Generating a Delete Button
186(1)
Creating a Method to Require Confirmation
187(3)
Creating a File to Display the Confirmation Form
190(3)
Summary
193(2)
Chapter 6 Password Protecting Sensitive Actions and Areas
195(34)
Building the Admin Table in the Database
195(1)
Building a File to Display a Login Form
196(2)
Creating the Admin Class
198(17)
Defining the Class
198(1)
Building a Method to Check the Login Credentials
199(10)
Modifying the App to Handle the Login Form Submission
209(6)
Allowing the User to Log Out
215(6)
Adding a Log Out Button to the Calendar
215(1)
Creating a Method to Process the Logout
216(1)
Modifying the App to Handle the User Logout
217(4)
Displaying Admin Tools Only to Administrators
221(7)
Showing Admin Options to Administrators
221(4)
Limiting Access to Administrative Pages
225(3)
Summary
228(1)
Part 3 Combining jQuery with PHP Applications
229(80)
Chapter 7 Enhancing the User Interface with jQuery
231(30)
Adding Progressive Enhancements with jQuery
231(1)
Setting Progressive Enhancement Goals
232(1)
Including jQuery in the Calendar App
232(4)
Creating a JavaScript Initialization File
232(1)
Creating a New Stylesheet for Elements Created by jQuery
233(3)
Creating a Modal Window for Event Data
236(23)
Binding a Function to the Click Event of Title Links
236(1)
Preventing the Default Action and Adding an Active Class
236(1)
Extracting the Query String with Regular Expressions
237(2)
Creating a Modal Window
239(5)
Retrieving and Displaying Event Information with AJAX
244(5)
Adding a Close Button
249(2)
Adding Effects to the Creation and Destruction of the Modal Window
251(8)
Summary
259(2)
Chapter 8 Editing the Calendar with AJAX and jQuery
261(48)
Opening the Event Creation Form
261(6)
Adding an AJAX Call to Load the Form
262(2)
Modifying the AJAX Processing File to Load the Form
264(2)
Making the Cancel Button Behave Like the Close Button
266(1)
Saving New Events in the Database
267(5)
Modifying the AJAX Processing File to Handle New Submissions
270(2)
Adding Events Without Refreshing
272(16)
Deserializing the Form Data
273(4)
Creating Date Objects
277(4)
Appending the Event to the Calendar
281(3)
Getting the New Event's Correct ID
284(4)
Editing Events in a Modal Window
288(9)
Determining the Form Action
289(1)
Storing the Event ID if One Exists
290(2)
Removing Event Data from the Modal Window
292(2)
Ensuring Only New Events Are Added to the Calendar
294(3)
Confirming Deletion in a Modal Window
297(11)
Displaying the Confirmation Dialog
298(2)
Configuring the Form Submission Event Handler for Deletion
300(5)
Removing the Event from the Calendar After Deletion
305(3)
Summary
308(1)
Part 4 Advancing jQuery and PHP
309(50)
Chapter 9 Performing Form Validation with Regular Expressions
311(32)
Getting Comfortable with Regular Expressions
311(16)
Understanding Basic Regular Expression Syntax
311(5)
Drilling Down on the Basics of Pattern Modifiers
316(2)
Getting Fancy with Backreferences
318(2)
Matching Character Classes
320(3)
Finding Word Boundaries
323(1)
Using Repetition Operators
323(1)
Detecting the Beginning or End of a String
324(1)
Using Alternation
324(1)
Using Optional Items
325(1)
Putting It All Together
325(2)
Adding Server-Side Date Validation
327(1)
Defining the Regex Pattern to Validate Dates
328(1)
Setting up Test Data
328(10)
Matching the Date Format
329(3)
Adding a Validation Method to the Calendar Class
332(2)
Returning an Error if the Dates Don't Validate
334(4)
Adding Client-Side Date Validation
338(4)
Creating a New JavaScript File to Validate the Date String
338(1)
Including the New File in the Footer
338(1)
Preventing the Form Submission if Validation Fails
339(3)
Summary
342(1)
Chapter 10 Extending jQuery
343(16)
Adding Functions to jQuery
343(5)
Adding Your Date Validation Function to jQuery
343(3)
Modifying the Include Script
346(1)
Modifying the Initialization Script
346(2)
Adding Methods to jQuery
348(10)
Building Your Plug-in
349(6)
Implementing Your Plug-in
355(3)
Summary
358(1)
Appendix A Brief Notes on PHP 7
359(8)
Strict Typing
359(2)
New Exceptions
361(1)
Constant Arrays
362(1)
Argument Unpacking
363(1)
Integer Division
364(1)
Syntactic Sugar
364(3)
Index 367
strongJason Lengstorf/strong is a 27-year-old turbogeek from Portland, OR. He started building websites in his late teens when his band couldn t afford to pay someone to do it, and he continued building websites after he realized his band wasn t actually very good. He s been a full-time freelance web developer since 2007, and expanded his business under the name Copter Labs, which is now a distributed freelance collective, keeping about 10 freelancers worldwide busy. He is also the author of PHP for Absolute Beginners and Pro PHP and jQuery.