Applied jQuery: Develop and Design

Applied jQuery: Develop and Design

Jay Blanchard

Language: English

Pages: 272

ISBN: 0321772563

Format: PDF / Kindle (mobi) / ePub

Applied jQuery teaches readers how to quickly start writing application interfaces. The beautifully designed book offers practical techniques and provides lots of real-world advice and guidance. The Author, Jay Blanchard, has practical experience working in the field and wastes no time getting to the instruction, taking the reader from a beginner to a proficient interface programmer by the end of the book.

Today's Web developers are are expected to be well versed in many different technologies. While it is good to have a shelf full of books that focus on single technologies, having a book that shows developers how to combine these technologies is key. This book takes the reader beyond the fundamental mechanics of individual technologies to illustrate the value and power of combining jQuery and PHP with templates and layouts handled by HTML and CSS. Beginning to intermediate web developers designing and developing web application interfaces and web sites will learn how to blend these ingredient technologies, as well as how to secure jQuery.

Why We Fail

Baby Signs: How to Talk with Your Baby Before Your Baby Can Talk (3rd Edition)

jQuery Pocket Reference

Capitalism without Democracy: The Private Sector in Contemporary China

PHP in a Nutshell

Smashing HTML5 (Smashing Magazine Book Series)


















$(this).val(); var resultEmail = regexEmail.test(inputEmail); if(resultEmail){ $(this).next('.error').css('display', 'none'); errorCount(submitErrors--); } }); } }); Figure 4.14. The Register button is grayed out. It is not available to the user until all errors are cleared. When the page first loads, submitErrors gets incremented twice—once by each of the validation functions. The total error count prior to the form being filled out is two. Because the submitErrors has a value of

table: $reserveIN = "INSERT INTO `lamf`.`reserverequests` "; $reserveIN .= "(`arrival`, `departure`, `guest`, `phone`) "; $reserveIN .= "VALUES ("; $reserveIN .= "'".mysql_real_escape_string($_POST ['arrivalDate'])."', "; $reserveIN .= "'".mysql_real_escape_string($_POST ['departureDate'])."', "; $reserveIN .= "'".mysql_real_escape_string($_POST ['visitorName'])."', "; $reserveIN .= "'".mysql_real_escape_string($_POST ['phoneArea']).'-'.mysql_real_escape_string($_POST

applies the preventDefault handler to the context menu. This will keep the context menu from popping up when the right mouse button is clicked. As you might have guessed, some jQuery context menu plugins are also available. These plugins allow you to create custom context menus for your Web applications. Check out my favorite jQuery context menu plugin at Let’s add a custom context menu to one of the interface elements. 1. Open

transmitting data securely, 144 AJAX validation callback for post function, 101 check boxes, 94 connection for PHP function, 93 cookie setup, 98–100 data variable, 101 else statement, 96–97 error message, 101–102 inserting user’s information, 94 logging in users, 105–107 modal window, 104 mysql_query PHP function, 96 mysqlErrorNum variable, 103–104 newName variable, 101 password, 94 PHP for user login, 97–100 PHP registration, 92–100 PHP’s switch method, 93–94 registration

* * * MAKING NAVIGATION GRACEFUL If you want to apply the principles of progressive enhancement—as discussed in Chapter 1—to your site, you need to make your navigation as graceful as possible. The easiest way to do this is to fully form your links as if JavaScript, and therefore jQuery, is not available for your visitors. Open the chap2/2-1.php file. You’ll find an unordered HTML list containing three links:

Download sample