02.06.2013 Views

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

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.

}<br />

else { $id = NULL; }<br />

echo $obj->$use_array['method']($id);<br />

function __autoload($class_name)<br />

{<br />

$filename = '../../../sys/class/class.'<br />

. strtolower($class_name) . '.inc.php';<br />

if ( file_exists($filename) )<br />

{<br />

include_once $filename;<br />

}<br />

}<br />

?><br />

CHAPTER 8 ■ EDITING THE CALENDAR WITH AJAX AND JQUERY<br />

Now save the file, load http://localhost/, <strong>and</strong> click the Add a New Event button. A new modal<br />

window will fade in with the edit form inside (see Figure 8-1).<br />

267

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

Saved successfully!

Ooh no, something went wrong!