Chapter 10 (^) ❘ 487
bapp01.indd 02/18/2015 Page 487
dataType : 'json',
data : JSON.stringify({
dataForTheServerHere : true
}),
success : function(json, status, request)
{
},
error : function(request, status)
{
}
});
CHAPTER 8
- An integer value in milliseconds or the strings 'slow', 'normal', or 'fast'.
- It animates an element’s height property when displaying an element.
- The fadeIn(), fadeOut(), and fadeToggle() methods all animate an element’s opacity to dis-
play or hide an element. - The animate() method.
- The linear and swing easings are included in jQuery core.
CHAPTER 9
- $.fn.extend() or $.fn.prototype.
- console.log($.fn); Then examine the object in Firefox or Chrome.
- Defi ne my functions or objects inside the closure used to defi ne my plugin.
- They are defi ned in the keyword this.
- It should attempt to return this (the selection in context), or jQuery, if possible.
- It allows me to remove my own events explicitly, without touching other people’s or other
projects’ events. - Answers may vary but include any valid code that meets the specifi ed criteria.
CHAPTER 10
- scrollTop() and scrollLeft().
- The top (or offset top) of the wanted element, the top (or offset top) of its container, and the
current vertical scrollbar position (or scrollTop). - Any syntactically correct code implementing something similar to the following: