1.

Record Nr.

UNINA9911004750103321

Autore

Brinzarea Bogdan

Titolo

AJAX and PHP : building modern web applications / / Bogdan Brinzarea-Iamandi, Cristian Darie, Audra Hendrix

Pubbl/distr/stampa

Birmingham, U.K., : Packt Pub., 2009

ISBN

1-62198-891-0

1-282-45161-8

9786612451614

1-84719-773-6

Edizione

[2nd ed.]

Descrizione fisica

1 online resource (308 p.)

Collana

From technologies to solutions

Altri autori (Persone)

DarieCristian

HendrixAudra

Disciplina

005.2762

Soggetti

Ajax (Web site development technology)

PHP (Computer program language)

Lingua di pubblicazione

Inglese

Formato

Materiale a stampa

Livello bibliografico

Monografia

Note generali

Build user-friendly Web 2.0 applications with JavaScript and PHP.

Includes index.

Nota di contenuto

Cover; Copyright; Credits; About the Authors; About the Reviewer; Table of Contents; Preface; Chapter 1: The World of AJAX and PHP; The big picture; AJAX and Web 2.0; Building websites since 1990; HTTP and HTML; PHP and other server-side technologies; JavaScript and other client-side technologies; What's missing?; The world of AJAX; What is AJAX made of?; Uses and Misuses of AJAX; Resources and tools; Setting up your environment; Building a simple application with AJAX and PHP; Summary; Chapter 2: JavaScript and the AJAX Client; JavaScript and the Document Object Model

JavaScript events and the DOMEven more DOM; JavaScript, DOM, and CSS; Using the XMLHttpRequest object; Creating the XMLHttp Request object; JavaScript exception handling; Creating better objects for Internet Explorer 6; Initiating server requests using XMLHttp Request; Handling server response; Working with XML structures; Handling more errors and throwing exceptions; Creating XML structures; Summary; Chapter 3: Object Oriented JavaScript; Why is OOP in JavaScript important?; Object-oriented programming concepts; Encapsulation;



Inheritance; Polymorphism

Object-oriented programming with JavaScript JavaScript objects are dictionaries; JavaScript functions; JavaScript functions are first-class objects; Inner functions; Closures; JavaScript classes; Constructors; Class diagrams; Referencing external functions; Prototype objects; Instance methods and properties; Static methods and properties; Private members; The JavaScript execution context; var x, this.x, and x; Using the right context; JavaScript OOP in practice: Introducing JSON; JSON concepts; A simple JSON example; Summary; Chapter 4: Using PHP and MySQL on the Server; PHP, DOM, and XML

PHP and JSONPassing parameters and handling PHP errors; Working with MySQL; Creating database tables; Manipulating data; Connecting to your database and executing queries; Summary; Chapter 5: AJAX Form Validation; Implementing AJAX form validation; XMLHttp Request, version 2; Implementing the AJAX form validation; Summary; Chapter 6: Debugging and Profiling AJAX Applications; Debugging and profiling with Internet Explorer; Enabling debugging in Internet Explorer 6 and 7; Debugging in Internet Explorer 8; Other Internet Explorer debugging tools; Debugging and profiling with Firefox; Firebug

Venkman JavaScript debugger Web Developer; Summary; Chapter 7: Advanced Patterns and Techniques; Predictive fetching pattern; Progress indicator pattern; Unobtrusive JavaScript; Progressive enhancement and graceful degradation; Asynchronous file upload with AJAX; HTTP and how file upload works; Iframe for asynchronous file upload with AJAX; Cross-domain calls; Cross-domain calls using a server proxy; Cross-domain calls using Flash; Cross-domain calls using iframes; Cross-domain calls using JSONP; Cross-site request forgery; JSON hijacking; Mitigations; Cross-site scripting; Exploits

Non-persistent XSS

Sommario/riassunto

Build user friendly Web 2.0 Applications with JavaScript and PHP