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.

368<br />

■ INDEX<br />

array of event objects, 139<br />

Event class, 140<br />

method to store event objects in array,<br />

142–143<br />

overview, 136–138<br />

extending <strong>jQuery</strong>, adding functions to<br />

allowing configurable options, 346–347<br />

allowing custom aliases in <strong>jQuery</strong> plugins,<br />

345–346<br />

attaching function to <strong>jQuery</strong> object, 346<br />

date validation function, 345–348<br />

include script modifications, 348<br />

initialization script modifications, 348–350<br />

overview, 345<br />

plugin creation, 351–356<br />

plugin file naming conventions, 348<br />

plugin implementation, 357–360<br />

user-supplied options, 347<br />

validation <strong>and</strong> returning value, 347<br />

extends keyword, 99<br />

■ F<br />

fade in, adding effect to modal window, 257<br />

fade out, adding effect to modal window, 255–<br />

256<br />

.fadeIn( ) method, 66–67, 257<br />

.fadeOut( ) method, 66–67, 255<br />

.fadeTo( ) method, 66–67<br />

:file filter, 22<br />

fill class, 146<br />

.filter( ) method, 27<br />

filters, for selecting DOM elements in <strong>jQuery</strong><br />

attribute, 19–20<br />

basic, 15–17<br />

child, 20–21<br />

content, 17–18<br />

form, 21–23<br />

visibility, 19<br />

.find( ) method, 30<br />

Firebug, 5–6, 11, 236–237<br />

: first filter, 16<br />

.first( ) method, 27<br />

first or last elements<br />

basic filters in <strong>jQuery</strong> for DOM elements, 16<br />

child filters in <strong>jQuery</strong> for DOM elements, 21<br />

:first-child filter, 20<br />

folder structure, for events calendar, 120–121<br />

fontsize property, 352, 356, 358<br />

foo class, 11–13, 15, 19–20<br />

footer, displaying events calendar in HTML, 158<br />

footer.inc.php file, 158, 237, 339, 348, 357<br />

form action, determining, 291<br />

form data<br />

deserializing<br />

decode URL-encoded characters in form<br />

values, 276–278<br />

overview, 274–275<br />

serializing, 270–271<br />

submitting serialized to processing file, 271<br />

form filters, in <strong>jQuery</strong> for DOM elements<br />

checked or selected form elements, 23<br />

enabled or disabled form elements, 23<br />

<strong>by</strong> form element type, 22<br />

form validation<br />

client-side date validation<br />

including file in footer, 338–339<br />

preventing form submission if fails, 339–<br />

342<br />

regex pattern to validate dates, 338<br />

with regular expressions<br />

alternation, 324<br />

backreferences, 318–319<br />

basic syntax, 311–315

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

Saved successfully!

Ooh no, something went wrong!