11.07.2015 Views

AJAX and PHP

AJAX and PHP

AJAX and PHP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>PHP</strong> Parameters <strong>and</strong> Error H<strong>and</strong>lingrealtime SVG chartingerror_h<strong>and</strong>ler.php, 74, 75, 76, 77 ajaxrequest.js, 194, 200morephp.html, 72 chart.svg, 194, 200morephp.js, 72 index.html, 193, 200morephp.php, 74 realTimeChart.js, 201<strong>PHP</strong>5 errors, 75RealTimeChart.js, 195phpMyAdminsvg_chart.php, 199creating tables, 103refreshXYIndexes() function,installation, 263realTimeChart.js, 201placeholders, 33Relational Database Management Systems,postMessages() function, <strong>AJAX</strong> chat, 163101prediction, user input, 165remote servers, connecting topreparing database, <strong>AJAX</strong>, 264about, 79primary key, MySQL, 101Firefox, 83private class members, 110Internet Explorer, 83process() function, quickstart.js, 23, 26Opera, 84Prototype JavaScript framework, 238ping.html, 81proxy <strong>PHP</strong> script, 85ping.js, 81proxy server script, 85removePointInfo() function, realTimeChart.js,proxy server script for remote access201error_h<strong>and</strong>ler.php, 88 repetitive asynchronous requests, 91proxyping.html, 86repetitive tasks implementationproxyping.js, 86 error_h<strong>and</strong>ler.php, 97proxyping.php, 88 smartproxyping.html, 93public interface, classes, 110smartproxyping.js, 94, 98public members, classes, 110smartproxyping.php, 97requestNewMessages() function, <strong>AJAX</strong> chat,Q162responseText() method, XMLHttpRequest, 47queue, 125responseXML() method, XMLHttpRequest, 47Quickstart <strong>AJAX</strong> applicationretrieveNewMessages() function, <strong>AJAX</strong> chat, 163index.html, 21RSS, 223quickstart.js, 21, 23RSS Reader applicationquickstart.php, 22config.php, 228quickstart application, <strong>AJAX</strong>, 18error_h<strong>and</strong>ler.php, 227index.php, 228, 233Rrss_reader.class.php, 227rss_reader.css, 231rss_reader.js, 229, 234r<strong>and</strong>om numbers, retrieving, 93rss_reader.php, 226, 235RDBMS, 101rss_reader.xsl, 227, 235reading data, remote server, 85readMessages() function, <strong>AJAX</strong> chat, 162readyState() method, XMLHttpRequest, 47 SReally Simple Syndication (RSS)about, 223save() function, 221document structure, 224saveXML() function, 71Google Reader, 224Scalable Vector Graphics (SVG), 189RSS reader application, 226script element, embedding Java code, 30realtime charting with <strong>AJAX</strong>, 190script.aculo.us, 237, 238271

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

Saved successfully!

Ooh no, something went wrong!