11.07.2015 Views

AJAX and PHP

AJAX and PHP

AJAX and PHP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

checkCache() function, <strong>AJAX</strong> Suggest <strong>and</strong>Autocomplete, 185database server, 12database tables, creating, 101checkForChanges() function, <strong>AJAX</strong> Suggest<strong>and</strong> Autocomplete, 186DELETE comm<strong>and</strong>, MySQL, 104deleteMessages() function, <strong>AJAX</strong> chat, 162, 163checkUsername() function, <strong>AJAX</strong> chat, 161deselectAll() function, <strong>AJAX</strong> Suggest <strong>and</strong>class members, 110Autocomplete, 185classes, OOP, 109 destructors, OOP, 110clearInterval() function, 91 display_errors option, php.ini, 77, 90Client URL Library (CURL), 86 displayError() function, <strong>AJAX</strong> chat, 162client-side technologies, 11 displayMessage() function, <strong>AJAX</strong> chat, 162client-side validation, 122 displayMessages() function, <strong>AJAX</strong> chat, 162code structure, <strong>PHP</strong>, 109displayResults() function, <strong>AJAX</strong> Suggest <strong>and</strong>complete <strong>AJAX</strong> application, st<strong>and</strong>ardAutocomplete, 185structure. See Friendly <strong>AJAX</strong> application div element, 34connecting to remote servers. See remoteservers, connecting toconstructors, OOP, 110DML comm<strong>and</strong>s, MySQL, 104Document Object Modelabout, 15, 30createPointInfo() function, realTimeChart.js, 201client-side uses, 30createTextRange() function, <strong>AJAX</strong> Suggestserver-side uses, 30<strong>and</strong> Autocomplete, 187 document structure, RSS, 224createXmlHttpRequestObject() function, 43, 45 document.write comm<strong>and</strong>, 31createXmlHttpRequestObject() function,quickstart.js, 25DOM, 15, 30DOM functions, <strong>PHP</strong>, 66creating database tables, MySQL, 101 DOMDocument class, <strong>PHP</strong> DOM, 70creating XML structures, 63drag <strong>and</strong> dropCRssReader class, rss_reader.php, 235<strong>AJAX</strong> sortable list application, 238CSS, 39shopping carts, 237CSS <strong>and</strong> JavaScriptsortable lists, 238csstest.html, 39 DROP comm<strong>and</strong>, MySQL, 102csstest.js, 40styles.css, 40, 41CURL, 86EEmacs editor, 165DencodeURIComponent() function, JavaScript,141, 162data access, remote server, 85error h<strong>and</strong>lingdata gridabout, 59config.php, 209Firefox JavaScript console, 60error_h<strong>and</strong>ler.php, 209Internet Explorer, 61grid.class.php, 207Opera, 61grid.css, 216<strong>PHP</strong>, 71, 75grid.js, 211, 219try/catch mechanism, 60grid.php, 206, 218 errors, <strong>PHP</strong>5, 75grid.xsl, 210, 219escape() function, <strong>AJAX</strong> Suggest <strong>and</strong>index.html, 210Autocomplete, 185Data Manipulation Language (DML), 104Even More DOM applicationdata manipulation, MySQL, 104evenmorejsdom.html, 37data type, MySQL, 102evenmorejsdom.js, 38database connection, 105database preparation, <strong>AJAX</strong>, 264database security, 105event object, <strong>AJAX</strong> Suggest <strong>and</strong>Autocomplete, 186events, JavaScript, 33268

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!