... follows:
In addition to binding, unbinding, and triggering event handlers, jQuery offers
high-level functions that further make dealing with events on our pages as easy
as possible.
4.2 .6 Other ... Summary
Building upon the jQuery knowledge that we’ve gained so far, this chapter intro-
duced us to the world of event handling.
We learned that there are vexing challenges to implement...
... function in section 7.2.
1.4 Summary
In this whirlwind introduction to jQuery we’ve covered a great deal of material in
preparation for diving into using jQuery to quickly and easily enable Rich Inter-
net ... enterprising jQuery users have extended jQuery with sets of useful
functions that are known as plugins. We’ll be talking more about extending jQuery
in this way, as...
... used within a jQuery chain of operations.
In addition to finding elements in a wrapped set that match a selector, jQuery
also provides a method to find elements that contain a specified string. ... that results in a jQuery wrapped set.
Because of the way jQuery chaining works, this expression can also include com-
mands, making this a powerful Lab for examining the operations...
... dimensions
in this area
56 CHAPTER 3
Bringing pages to life with jQuery
previous format of
attr()
; the function is invoked for each individual element in
the matched set.
WARNING Internet Explorer ... before clicking Execute.
■
before()
and
insertBefore()
—Insert the element before the destination
elements instead of before the destination’s first child.
■
after()
and
insertA...
... covers
■
The jQuery browser detection flags
■
Using other libraries with jQuery
■
Functions for manipulating arrays
■
Extending and merging objects
■
Dynamically loading new script
168 CHAPTER 6
jQuery ... Generally, anything
Listing 6. 3 Ready handler test 2
Figure 6. 4 The alert now displays the jQuery version of $ because its definition has
been enforced within the function....
... loaded.
The jQuery plugin authoring guidelines 187
of this chapter, we’ll examine the guidelines and patterns that allow us to create
jQuery plugins and we’ll create a few of our own. In the following ... functionality
when using the
$.getScript()
function.
Figure 6. 6 The dynamic loading and evaluation of the script file results in the inline
alert statement being executed.
Figu...
... identified the following pain points that
page authors using Ajax need to deal with:
Loading content into elements 229
8.2.2 Loading dynamic inventory data
Often in business applications, ... presented in the following single syntax description:
Each of these global callbacks is invoked at a certain point during the processing
of an Ajax request or conditionally depending upon the...
... optionally, margins.
Command syntax: innerWidth and innerHeight
innerWidth()
innerHeight()
Returns the inner width or height of the first element in the wrapped set. The inner dimen-
sion includes ... not surprising
that many jQuery plugins focus on enabling rich user interfaces. In this section,
we’ll introduce the official
UI Plugin, an important and recent addition to the
jQuery...