Tương tác giữa PHP và jQuery - part 21 pptx
... $stmt = $this->db->prepare($sql); $stmt->bindParam(':uname', $uname, PDO::PARAM_STR); $stmt->execute(); $user = array_shift($stmt->fetchAll()); $stmt->closeCursor(); ... following code into class.admin.inc .php to define the class, the property, and the constructor: < ?php /** * Manages administrative actions * * PHP version 5 * * LI...
Ngày tải lên: 04/07/2014, 17:20
... the exercises in Part 3 (where you actually start building a real-world project with jQuery and PHP) . C H A P T E R 1 ■ ■ ■ 3 Introducing jQuery To fully understand jQuery and its applications ... capabilities of jQuery. By the end of this section, you will have a general grasp on the overarching concepts behind jQuery, and—after you’ve revisited object-oriented PHP...
Ngày tải lên: 04/07/2014, 17:20
... CHAPTER 8 ■ EDITING THE CALENDAR WITH AJAX AND JQUERY 271 event_title=Test+Event&event_start=201 0-0 1-0 4+08%3A00%3A00&event_end=201 0-0 1-0 4+10%3A00 %3A00&event_description=This+is+a+test+description.&event_id=&token=a52412c2e7bfb993844 ... with the following information: • Event Title: Test Event • Event Start: 201 0-0 1-0 4 08:00:00 • Event En...
Ngày tải lên: 04/07/2014, 17:20
Tương tác giữa PHP và jQuery - part 33 pptx
... either three-, six-, or seven-letter words in regex .php: /\b(\w{3}|\w{6,7})\b/ (see Figure 9-8 ). CHAPTER 9 ■ PERFORMING FORM VALIDATION WITH REGULAR EXPRESSIONS 327 Figure 9-1 2. Adding ... You can exclude a particular type of character by capitalizing the shorthand character: • Non-word character class shorthand (\W): Matches patterns like [^A-Za-z 0-9 _] • Non-digit chara...
Ngày tải lên: 04/07/2014, 17:20
Tương tác giữa PHP và jQuery - part 2 ppt
... descendent CHAPTER 1 ■ INTRODUCING JQUERY 18 documentation by a member of the development community. For more on this filter, see http://api .jquery. com/contains-selector. Selecting Elements ... INTRODUCING JQUERY 13 Only one paragraph in our document has an id of "bar", as we see in the result: >>> $("#bar"); [ p#bar ] Combining Selectors for...
Ngày tải lên: 04/07/2014, 17:20
Tương tác giữa PHP và jQuery - part 3 ppsx
... from the end of the selection set (e.g., passing -2 will return the second-to-last element from the set). C H A P T E R 2 ■ ■ ■ 25 Common jQuery Actions and Methods Now that you understand ... CHAPTER 1 ■ INTRODUCING JQUERY 22 After saving, reload the page in your browser at http://localhost/testing/ to see the form for testing (see Figure 1-5 ). Figure 1-5 . The...
Ngày tải lên: 04/07/2014, 17:20
Tương tác giữa PHP và jQuery - part 4 pps
... sentence is in a span."> ] 1 http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-1312295772 CHAPTER 2 ■ COMMON JQUERY ACTIONS AND METHODS 34 [ form # ] Finally, to select a ... arrow pointing upward (see Figure 2-1 ). CHAPTER 2 ■ COMMON JQUERY ACTIONS AND METHODS 38 Figure 2-2 . The multiline testing area (shown at the right-hand side of the console) With t...
Ngày tải lên: 04/07/2014, 17:20
Tương tác giữa PHP và jQuery - part 5 pdf
... be wrapped in the same tag (see Figure 2-1 3). CHAPTER 2 ■ COMMON JQUERY ACTIONS AND METHODS 46 This duplicates the result from before (see Figure 2-1 4). .wrap() The .wrap() method allows ... Figure 2-8 ). Figure 2-8 . The spans appear bold after wrapping them with strong tags The syntax used for the wrapping element is relatively forgiving, and the output shown in Figur...
Ngày tải lên: 04/07/2014, 17:20
Tương tác giữa PHP và jQuery - part 6 doc
... italicized and the markup is validly nested (see Figure 2-1 4). CHAPTER 2 ■ COMMON JQUERY ACTIONS AND METHODS 53 ■ Note You're using a Firebug-specific object, console, and its .log() method ... submit input to read "Sign In" using this code: CHAPTER 2 ■ COMMON JQUERY ACTIONS AND METHODS 52 Figure 2-1 4. All text is italicized, and the em tags are inside t...
Ngày tải lên: 04/07/2014, 17:20
Tương tác giữa PHP và jQuery - part 7 doc
... "swing" easing are supported, but an easy-to-include easing plug-in is available for jQuery (you’ll learn about plug-ins later in this book). CHAPTER 2 ■ COMMON JQUERY ACTIONS AND METHODS 64 The ... size to match the parameters passed (see Figure 2-2 1). Figure 2-2 1. The paragraph after animating its height and width CHAPTER 2 ■ COMMON JQUERY ACTIONS AND MET...
Ngày tải lên: 04/07/2014, 17:20