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.

252<br />

CHAPTER 7 ■ ENHANCING THE USER INTERFACE WITH JQUERY<br />

});<br />

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

success: function(data){<br />

// Alert event data for now<br />

modal.append(data);<br />

},<br />

error: function(msg) {<br />

modal.append(msg);<br />

}<br />

});<br />

Save your changes, then reload http://localhost/ <strong>and</strong> click an event title to see the event<br />

information loaded into the modal window (see Figure 7-2).<br />

Figure 7-2. The event information loaded into the modal window

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

Saved successfully!

Ooh no, something went wrong!