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.

374<br />

■ INDEX<br />

adding effects to, 254–262<br />

binding function to click event, 240<br />

Close button, 253–254<br />

creating, 243–245<br />

extracting query string with regular<br />

expressions, 241–243<br />

overview, 240<br />

preventing default action, 240–241<br />

retrieve <strong>and</strong> display with AJAX, 247–252<br />

modal-overlay class, 257<br />

MyClass class, 89, 91, 93–94, 96, 99, 104, 107–<br />

108<br />

MyClass instance, 91<br />

MyClass object, 95<br />

MyOtherClass class, 105, 107<br />

■ N<br />

name attribute, 301<br />

new keyword, 88<br />

next elements, hierarchy selectors in <strong>jQuery</strong> for<br />

DOM elements, 14–15<br />

.next( ) method, 30–31<br />

.nextAll( ) method, 31<br />

.nextUntil( ) method, 31–32<br />

nonpublic application files, for events calendar,<br />

121<br />

:not( ) method, 16, 27<br />

:nth-child( ) method, 20<br />

■ O<br />

object literals, 243, 246–247<br />

object-oriented programming (OOP)<br />

classes<br />

creating, 88–89<br />

defining methods, 90–98<br />

defining properties, 89–90<br />

differences from objects, 88<br />

<strong>and</strong> objects, 87–112<br />

using inheritance, 99–103<br />

DocBlocks, commenting with, 110–112<br />

methods, visibility of, 103–110<br />

objects<br />

<strong>and</strong> classes, 87–112<br />

differences from classes, 88<br />

vs. procedural code<br />

better organization, 117<br />

ease of implementation, 113–117<br />

easier maintenance, 117–118<br />

OOP approach, 115–116<br />

overview, 112<br />

procedural approach, 113–114<br />

properties, visibility of, 103–110<br />

objects<br />

<strong>and</strong> classes, 87–112<br />

differences from classes, 88<br />

:odd filter, 16, 20<br />

odd or even elements, basic filters in <strong>jQuery</strong> for<br />

DOM elements, 16<br />

.one( ) method, 76<br />

OOP. See object-oriented programming<br />

.outerHeight( ) method, 62<br />

.outerWidth( ) method, 62<br />

overlay, adding effect to modal window, 257<br />

■ P<br />

tag, 11<br />

pairs variable, 275<br />

parent elements, content filters in <strong>jQuery</strong> for<br />

DOM elements, 18<br />

:parent filter, 18<br />

parent keyword, 102<br />

.parent( ) method, 33

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

Saved successfully!

Ooh no, something went wrong!