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.

84<br />

CHAPTER 2 ■ COMMON JQUERY ACTIONS AND METHODS<br />

$("#bar").load("ajax.php", {"var1":"value1"});<br />

After running this snippet, the content of the paragraph is replaced with the returned result.<br />

Summary<br />

This chapter was intense <strong>and</strong> covered an awful lot of ground. Remember to check the <strong>jQuery</strong> API<br />

documentation online for more examples, further explanation, <strong>and</strong> discussion <strong>by</strong> other developers in<br />

the community. To search a method, simply add its name to the end of the API’s URL; for instance, to<br />

look up the .slideup() method, navigate to http://api.jquery.com/slideup in your browser.<br />

In the next part of this book, you’ll brush up on your <strong>PHP</strong> skills, including object-oriented<br />

programming, before jumping into the backend development of the events calendar you’ll be building<br />

from Chapter 4 on.

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

Saved successfully!

Ooh no, something went wrong!