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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

296<br />

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

this causes the event description to disappear, <strong>and</strong> the editing form will fade in with the data for the<br />

entry loaded into the form for editing (see Figure 8-5).<br />

Figure 8-5. Editing an event in a modal window<br />

Ensuring Only New Events Are Added to the Calendar<br />

If you make an edit to the New Year’s Day event <strong>and</strong> save it, an extra event title will be appended to the<br />

calendar (see Figure 8-6).

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

Saved successfully!

Ooh no, something went wrong!