27.10.2015 Views

AJAX and PHP

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

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

Chapter 7<br />

Figure 7.2: SVG Charting in Action<br />

To get the dynamically generated contents of the SVG chart at any given time with<br />

Firefox, right click the chart, click Select All, then right-click the chart again, <strong>and</strong> choose<br />

View Selection Source.<br />

Now that you have a good idea about what you are going to implement, let's get to work. It's time<br />

for action!<br />

Time for Action—Building the Real-Time SVG Chart<br />

1. Start by creating a new subfolder of the ajax folder, called svg_chart.<br />

2. In the svg_chart folder, create a new file named index.html with the following<br />

contents:<br />

<br />

<br />

<br />

<strong>AJAX</strong> Realtime Charting with SVG<br />

<br />

<br />

<br />

<br />

<br />

193<br />

www.it-ebooks.info

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

Saved successfully!

Ooh no, something went wrong!