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 />

// Loads the event data from the DB<br />

$.ajax({<br />

type: "POST",<br />

url: processFile,<br />

data: "action=event_view&"+data,<br />

success: function(data){<br />

// Displays event data<br />

fx.boxin(data, modal);<br />

},<br />

error: function(msg) {<br />

alert(msg);<br />

}<br />

});<br />

$(".admin-options form,.admin")<br />

.live("click", function(event){...});<br />

// Edits events without reloading<br />

$(".edit-form input[type=submit]")<br />

.live("click", function(event){...});<br />

$(".edit-form a:contains(cancel)")<br />

.live("click", function(event){...});<br />

});<br />

CHAPTER 10■ EXTENDING JQUERY<br />

Save these changes, reload http://localhost/ in your browser, <strong>and</strong> then hover over an event title to<br />

see the dateZoom plugin in action (see Figure 10-1).<br />

359

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

Saved successfully!

Ooh no, something went wrong!