Extending Jquery Keith Wood Download
Extending Jquery Keith Wood Download
https://ebookfinal.com/download/extending-jquery-keith-wood/
https://ebookfinal.com/download/primary-mathematics-extending-
knowledge-in-practice-alice-hansen/
https://ebookfinal.com/download/integrating-and-extending-birt-1st-
edition-jason-weathersby/
https://ebookfinal.com/download/professional-jquery-1st-edition-cesar-
otero/
https://ebookfinal.com/download/pro-sharepoint-with-jquery-phill-
duffy/
Practical jQuery 1st Edition Mukund Chaudhary
https://ebookfinal.com/download/practical-jquery-1st-edition-mukund-
chaudhary/
https://ebookfinal.com/download/jquery-for-dummies-1st-edition-lynn-
beighley/
https://ebookfinal.com/download/extending-and-improving-your-home-1st-
edition-m-j-billington/
https://ebookfinal.com/download/jquery-novice-to-ninja-second-edition-
earle-castledine/
Extending jQuery Keith Wood Digital Instant Download
Author(s): Keith Wood
ISBN(s): 9781617291036, 161729103X
Edition: Pap/Psc
File Details: PDF, 16.71 MB
Year: 2013
Language: english
Keith Wood
FOREWORD BY Dave Methvin
MANNING
Extending jQuery
ii
Extending jQuery
KEITH WOOD
MANNING
SHELTER ISLAND
For online information and ordering of this and other Manning books, please visit
www.manning.com. The publisher offers discounts on this book when ordered in quantity.
For more information, please contact
Special Sales Department
Manning Publications Co.
20 Baldwin Road
PO Box 261
Shelter Island, NY 11964
Email: orders@manning.com
Many of the designations used by manufacturers and sellers to distinguish their products are
claimed as trademarks. Where those designations appear in the book, and Manning
Publications was aware of a trademark claim, the designations have been printed in initial caps
or all caps.
Recognizing the importance of preserving what has been written, it is Manning’s policy to have
the books we publish printed on acid-free paper, and we exert our best efforts to that end.
Recognizing also our responsibility to conserve the resources of our planet, Manning books are
printed on paper that is at least 15 percent recycled and processed without elemental chlorine.
ISBN: 9781617291036
Printed in the United States of America
1 2 3 4 5 6 7 8 9 10 – MAL – 18 17 16 15 14 13
brief contents
PART 1 SIMPLE EXTENSIONS .................................................... 1
1 ■
jQuery extensions 3
2 ■
A first plugin 17
3 ■ Selectors and filters 30
v
vi BRIEF CONTENTS
1 jQuery extensions 3
1.1 jQuery background 4
Origins 4 ■
Growth 5 ■
Today 7
1.2 Extending jQuery 8
What can you extend? 8
1.3 Extension examples 11
jQuery UI 11 Validation
■
12 Graphical slider 13
■
1.4 Summary 15
vii
viii CONTENTS
2 A first plugin 17
2.1 jQuery architecture 18
jQuery extension points 19 Selectors 20 Collection
■ ■
plugin 45
3.3 Adding a set filter 45
The structure of a set selector 46 Adding a middle elements set
■
3.4 Summary 50
4 Plugin principles 53
4.1 Plugin design 54
Plugin benefits 54 Planning the design
■
54
Modularize the plugin 56
4.2 Guiding principles 56
Provide progressive enhancements 56 Only claim a single ■
documentation 67
4.3 Summary 69
5 Collection plugins 70
5.1 What are collection plugins? 71
5.2 A plugin framework 71
The MaxLength plugin 71 ■
MaxLength plugin operation 72
5.3 Defining your plugin 74
Claiming a namespace 74 ■
Encapsulation 74 ■
Using a
singleton 75
5.4 Attaching to an element 76
Basic attachment 77 Plugin initialization
■
78 ■
Invoking
methods 79 Getter methods 80
■
6 Function plugins 97
6.1 Defining your plugin
Localization plugin 98
98
■
Framework code 99 ■
Loading
localizations 100
x CONTENTS
operation 136
8.2 Defining your widget 137
Claiming a name 137 Encapsulating the plugin 137
■
widget 171
9.5 Adding event handlers 171
Registering an event handler 171 ■ Triggering an event
handler 172
9.6 Interacting with the mouse 173
Can a drag start? 173 Starting a drag
■ 174 ■ Tracking a
drag 174 Ending a drag 175
■
presence 179
9.8 Removing the widget 179
The _destroy method 180
9.9 The complete plugin 180
9.10 Summary 181
xii CONTENTS
12 Extending Ajax
12.1
216
The Ajax framework 217
Prefilters 218 ■
Transports 218 ■
Converters 219
12.2 Adding an Ajax prefilter 220
Changing the data type 220 ■
Disabling Ajax processing 220
12.3 Adding an Ajax transport 221
Loading image data 221 ■
Simulating HTML data for
testing 223
12.4 Adding an Ajax converter 226
Comma-separated values format 227 Converting text to ■
xiv
FOREWORD xv
DAVE METHVIN
PRESIDENT, JQUERY FOUNDATION
preface
I first encountered jQuery in early 2007 and immediately found it intuitive and simple
to use. I was quickly selecting elements and showing and hiding them. Next I tried to
use some of the third-party plugins on offer, but found that they varied widely in use-
fulness and usability.
I was fortunate to start my plugin writing with what was to become a major plugin
in the jQuery community. I came across Marc Grabanski’s Clean Calendar plugin,
which he had converted into a jQuery plugin, and liked the interface it provided for
entering a date. I started playing with it to add more features as a way to explore
jQuery’s capabilities and eventually offered these back to Marc. So started a collabora-
tion on this plugin over the next couple of years.
At that point the Calendar plugin had been renamed Datepicker and had been
chosen by the jQuery UI team as the basis for its date-picker offering.
Since that start I’ve been developing other plugins as the need or interest arose.
Some of my most popular ones are an alternative Datepicker that also allows for pick-
ing date ranges or multiple individual dates, a Calendars plugin that provides support
for non-Gregorian calendars, a Countdown plugin to show the time remaining until a
given date and time, and an SVG Integration plugin that allows you to interact with
SVG elements on the web page. During this time I’ve learned a lot about JavaScript
and jQuery and how to write plugins for the latter.
Creating plugins is an ideal way to capture functionality in a reusable format, mak-
ing it simple to incorporate into other web pages. It lets you more thoroughly test the
code and ensures consistent behavior wherever it is used.
xvi
PREFACE xvii
jQuery has grown significantly in size and functionality over the intervening years,
but it has remained true to its purpose of making the developer’s life easier. The thriv-
ing plugin community is a testament to the foresight of the jQuery team in providing
a platform that can be easily extended. I hope that the insights presented in this book
allow you to make the most of jQuery in your own projects.
acknowledgments
I’ll begin by thanking John Resig and the jQuery team for providing such a useful tool
for web developers throughout the world.
Thanks also to Marc Grabanski for allowing me to contribute to the Calendar/
Datepicker plugin and for launching me into plugin development.
Writing a book is always a group effort, and I would like to acknowledge the edito-
rial team at Manning: Bert Bates, Frank Pohlmann, and Cynthia Kane; the technical
proofreaders Renso Hollhumer and Michiel Trimpe; and the entire production team
for their support and guidance. Special thanks to Christina Rudloff for the initial
approach from Manning regarding a jQuery UI book.
My thanks to all the developers who have contacted me over the years with com-
ments, suggestions, bugs, and localizations for my plugins, with special thanks to those
who have contributed something to my efforts—I’m enjoying the music and dancing!
I am grateful to the reviewers of the early versions of the manuscript, for providing
insights that improved the final product: Amandeep Jaswal, Anne Epstein, Brady
Kelly, Bruno Figueiredo, Daniele Midi, David Walker, Ecil Teodoro, Geraint Williams,
Giuseppe De Marco, PhD, Jorge Ezequiel Bo, Lisa Z. Morgan, Mike Ma, Pim Van Heu-
ven, and Stephen Rice.
Special thanks to Dave Methvin, president of the jQuery Foundation, for contrib-
uting the foreword and for endorsing my book.
And last, but not least, sincere thanks to my partner, Trecialee, for accepting the
time spent away from her on this project (even though she doesn’t understand the
subject matter).
xviii
about this book
jQuery is the most widely used JavaScript library on the web, offering many abilities
that make web development much easier. But it concentrates on providing features
that are widely applicable and widely used, and can’t do everything that you might
want. You could code your extra requirements inline for each web page, but if you
find yourself repeating code across several pages it may be time to create a plugin for
jQuery instead.
A plugin lets you package your code in a single reusable module that can then be
easily applied to any number of web pages. You benefit by having a single code base,
with reduced testing and maintenance costs, and a consistent appearance and behav-
ior throughout your website.
jQuery has been designed to accommodate these plugins, allowing them to
become first-class members of the jQuery environment and to be used alongside the
built-in functionality. This book explains how you can use best practice principles to
produce a jQuery plugin that integrates with jQuery without interfering with other
plugins and that provides a flexible and robust solution.
xix
Random documents with unrelated
content Scribd suggests to you:
I do not think I have been able to tell the world anything new about the
poet or his surroundings. But the man 'who hedn't a bit of fish in him, and
was no mountaineer,' seems to have been in the eyes of the people always at
his studies; 'and that because he couldn't help it, because it was his hobby,'
for sheer love, and not for money. This astonished the industrious money-
loving folk, who could not understand the doing work for 'nowt,' and
perhaps held the poet's occupation in somewhat lighter esteem, just because
it did not bring in 'a deal o' brass to the pocket.' I think it is very interesting,
however, to notice how the woman part of the Rydal Mount family seemed
to the simple neighbourhood to have the talent and mental ability; and there
must have been, both about Dorothy Wordsworth and the poet's daughter
Dora, a quite remarkable power of inspiring the minds of the poor with
whom they came in contact, with a belief in their intellectual faculties and
brightness and cleverness. If Hartley Coleridge was held by some to be
Wordsworth's helper, it was to Dorothy he was supposed by all to turn if
'ivver he was puzzelt.' The women had 'the wits, or best part of 'em,'—this
was proverbial among the peasantry, and, as having been an article of rural
faith, it has been established out of the mouths of all the witnesses it has
been my lot to call.
But the sound of earlier civilisations is in our ears as one gazes across the
Ravenglass sand-dunes; for here beside us is the great cavern of ancient
oaken-logs and earth, wherein the Cymri buried their dead in prehistoric
time, and there within a stone's throw still upstands the seaside residence of
some great Roman general, who was determined apparently to enjoy a well-
heated house, and to do honour to the genius loci. No one who visits 'Walls'
Castle, as it is called, but must be struck with the remains of the 'tepidarium,'
and the little niche that held the statue of the tutelary god, or a bust of the
presiding Cæsar, within the ample hall.
Away at our back rises the Muncaster Fell with its grey beacon-tower, its
herd of deer, its wind-blown oaks, its primrose and bluebell haunted woods,
that slope towards the Vale of Esk. Further inland, sheltered by its
magnificent wall of forestry, stands rose-red one of the most interesting of
our northern castles, with its long terrace-lawn of quite unequalled grace and
loveliness. There in sheltered combe the rhododendrons bloom from earliest
spring, and the air will to-day be honeysweet from laurel-flower far and
wide.
But I was bent on seeing an older people than Cymri, Roman, Viking, or
Castle-Lord, albeit the line of Pennington reached far into the past, and
suited well his ancient castle hold. I had come in the last week of April, by
courteous invitation, to renew acquaintance with that fast-growing colony of
black-headed gulls that make the dunes of Ravenglass famous.
A boat was called, and leaving the pebbly beach that 'Stott of Oldham' so
delights to paint, we rowed across the flooding tide of the Ravenglass
harbour to the sand-dunes of happy quietude, where the oyster-catchers were
sunning themselves, and where the sheldrake in her nesting season loves to
hide. As one went forward over the dunes one felt back in the great desert of
the Badiet-Tih, and expected to see Bedouins start from the ground, and
camels come in single file with solemn sway round the sedge-tufted, wind-
blown hillocks and hummocks of glaring sand.
Who shall describe the uproar and anger with which one was greeted as
one stood in the midst of the nests? The black-headed gull swept at one with
open beak, and one found oneself involuntarily shading one's face and
protecting one's eyes as the savage little sooty-brown heads swooped round
one's head. But we were not the only foes they had had to battle with. The
carrion crow had evidently been an intruder and a thief; and many an egg
which was beginning to be hard set on, had been prey to the black robber's
beak. One was being robbed as I stood there in the midst of the hubbub.
Away, for what seemed the best part of a mile, the 'gullery' stretched to
the north in the direction of Seascale; and one felt that, thanks to the public-
spirited owner of the seaboard, and the County Council of Cumberland, the
black-headed gull was not likely to diminish in this generation.
Back to the boat we went with a feeling that we owed large apologies to
the whole sea-gull race for giving this colony such alarm, and causing such
apparent disquietude of heart, and large thanks to the lord of Muncaster for
his ceaseless care of the wild sea-people whom each year he entertains upon
his golden dunes.
We had a hard winter three years ago, and wherever the rooks were seen
upon the ground, the black flock was dappled with the white sea gull, and
the dolorous voice of the crow was drowned in the laughter of the black-
headed gull.
Very grateful were we in those sad and sombre winter mornings to hear
the gulls laughing round our house-roofs, and not the least enjoyable thought
as we went to our breakfast-table was the knowledge that these wild sea-
people had come to trust us, and were willing to be our almoners.
There was one house in the valley, set upon a grassy hill overlooking the
lake, which seemed especially to have charm for the bird visitors. Swift of
ear, as of eye, the black-headed gulls noticed that the family went to
breakfast at the sound of a gong. No sooner did that gong echo across the
lawn, than the heaven became white with wings—a click at the gate was
heard, and a maid with a large pancheon of food specially prepared—hot and
tasty—was seen to come on to the grass and toss out the meal, in splotches,
round about her. Then what had been a silent grey undulating cloud of wings
broke up into a tangled mass of down-sweeping pink legs and up-sweeping
white wings, and with the noise of laughter and talk unimaginable, the happy
people fell to feeding.
I do not think that anything more dainty can be imagined than that swift
balance of up-tilted wing and down-reaching rosy feet, unless it be the
consummate care and nicety with which, before the black-headed gull put
beak to food, it tucked those long sweeping slender wings close to its side.
Now and again as they fed, the whole flock would rise momentarily into
air and float up as though blown from the earth by some invisible breath, and
then, as silently and simultaneously, sink to earth again.
At times one noticed how, rising up, they seemed to move in exactly one
position, moving their yellow rosy-stained beaks and grey heads from right
to left as though they feared an enemy. Yet they had no need to fear, for it
was quite clear that the rooks had been specially engaged by them to be their
sentinels. There they sat each in solitary sable-hood, on the trees all round
the lawn,—policemen on guard, and of such good manners, that until the
visitors from the sea had eaten and were full, they did not think of claiming
their share of the broken victual.
How mild, how gentle, with what dove-like tenderness did these grey-
headed people of the sea appear as with merry laughter they sailed about my
head, their feet tucked up like coral pink jewels against their breast; how
unlike those fierce black-headed guardians of their nests and young, who had
dashed at one, with open beak and scolding voice and angry wing, upon the
spring-tide dunes of Ravenglass.
From the earliest times 'Cursmas' has been looked upon as a time when
everybody in the dale should enjoy himself. In the old days, when the
fiddlers went round from farm to farm between Christmas-day and New
Year's Day, and when the Merry Night (or Murry Neet) was held from place
to place, the Grasmere folk knew that, however hard they worked for the rest
of the year, at least they would 'laike' until the Twelfth Night, and precious
little work would go forward in the dales for the first fortnight of each glad
new year. The desire for some simple and rational form of amusement with
the beginning of every year has never died out of their blood, so that a
village play seems to fill a need which is part of their very nature. 'Why, we
could not live without it,' said a Grasmere body to me; 'it's the brightest spot
in our lives.' 'I can't tell you how dramatic it makes me feel,' said another. 'I
am going thro' my dialogue at all times o' day.' My husband said, 'You've had
company to-day then.' 'Ay, ay,' I replied, 'rare company. I was taking two or
three parts in second Act, you see, and changing voices, that was all.'
'But where do you get your theatrical properties?' I said. 'Who manages
the scene-shifting and all the rest of it?' 'Oh, as for scene-shifting, that is all
managed by that great hairy-faced man that you saw going down the road
just now; he is a grand stage manager and has been at it for twenty years or
more.' I did not see him again until after the close of the performance, when
I noticed him with his pocket-handkerchief in an unconventional way
fanning out the footlights, and then going up on a ladder to puff out the oil
lamps above the stage. 'And as for properties,' the good dame replied, 'if you
mean by that the things we have on the stage, well everything is lent—there
is crockery from one house and chairs from another, and the dresses, why
they are the old originals that were worn by our grandmothers, and great-
grandmothers. We all know to what farm or to what house we must go for
this or that particular dress, and it is lent very willingly.' 'And do you have
large audiences?' I said. 'Large audiences, well, if th' room would hold
double the number we could fill it, because folk of all maks and sizes come
together. This year we are giving a special afternoon performance for the
quality, but I am told that all reserved seats have been booked for weeks.'
Mrs. Rawlinson: 'I'se goin' to have mair nor sebben shillings a room this
time, but I was forced to ask a good price, for he'll be wanting late dinners,
and a' maks o' cooking and faddlements. What does ta think wawmlets'll be,
Dolly?'
Mrs. Rawlinson: 'And grilled bones to his breakfast; but I kna' what
them'll be, just a marra bone served up hot in a napkin. I can mannish that
finely. Then he talked about a dish o' curry; that'll certainly be some mak o' a
French stew, made rare and hot wid pepper and an onion or two.'
As long as I live I shall remember the delightful get-up of this said Mrs.
Rawlinson, with her high black cap and flower in it, and her old-fashioned
criss-cross shawl, and her spotless white 'brat'; and the way in which she
pronounced the word 'omelette' as 'waumlett' convulsed the house.
The second scene in that first act was one that went home to the hearts of
all, for if the Westmoreland folk love one thing more dearly than another it is
'a sale.' The sale is really the excitement of the winter time. I believe that if
nobody was changing farms they would compel someone in the
neighbourhood to pretend that he was, that a sale might be held. It is not the
fierce excitement of bidding one against the other that causes the great
gathering at the sale, but 'everybody's tied to go,' as they say—bound to go
to the sale, just as everybody is bound to go when they are bid to a funeral. It
would not be friendly not to do so, and high, low, rich and poor, one with
another, meet at the sales, as De Quincey has reminded us, to see one
another and to hear how the world is stirring.
The Grasmere Players in this sale scene were all of the manner born, and
a young mason played the part of 'Tom Mashiter' (auctioneer) with great
delight to himself and to his audience.
'Here's t' fadther and muther and t' dowter he cried, as he put three
teapots together. 2s. 6d. for the lot just to get us into the bidding! Here's a
pair of copper scales; see how true they hang! Now I durst bet there's not
above half a dozen among us as honest as them is. There's not, howiver; and
I know who's yan o' the half-dozen; ye can settle the other five amang you.
Three an' six. Three an nine. Come, be quick. Nay, I'll not wait. I'll tak some
on ye in, ye'll see, if ye don't bid quicker——'
'Here's another good jar, yan o' t' auld fashion, wid a pair o' good lugs to
hod by. A penny for it I have bid; who'll say tuppence? Tuppence for you,
Sarah. It's a real good un, yan o' t' rare auld-fashioned mak, like me an you,
Sarah. I think there's nobbut us two left o' the auld lang-eared breed.'
Then there were quilts sold with a deal of very amusing talk to make
them go off. One was in rags and tatters, but the auctioneer suggested that it
might do for a sick horse or a sick cow. I was listening with great
amusement, and I heard an old fellow beside me say, 'Well, but things is
goin' ower cheap,' and in another moment jerked out, 'A penny—here,' and
was not a little astonished that his bid was not taken. I only mention this to
show you how to the life the whole thing was done, and with what deep
interest the spectators gazed upon the play.
In the second act the plot thickens, and the interest centres in the two
chief actors of the little play—Aaron Hartley, with his apparently rejected
addresses to the statesman's daughter up at Hardcragg Farm, and Betty
Braithwaite. Aaron comes into his mother's kitchen, and, as far as any
Westmoreland man dare let himself go, allows her to see that things are all
up between himself and Betty. He must go off to 'Lunnon,' for he cannot face
living on in the dale now, and all the hay grass but one meadow has been got
in.
'I think I must be going away, muther, for a bit. I don't see but that you'll
mannish finely without me. We've gitten a' the hay in but t' midder, and
that'll not take so lang. It's nobbut a light crop, and then it'll be verra slack
till bracken time, and what, Jonty's match to make a good start with that if I
sudn't be back.'
Just then the farm servant Jonty enters. I believe that he was a coachman
in the village, but he was a consummate actor, and his quaint, silent ways
and the lifting up of his hand and scratching his head behind his ear when
talking were quite admirable. He has had, from youth up, the wish to have
something from London, and he tells Aaron that he's 'wonderin' whether he
could mannish to bring him a "spead" fra Lunnon' when he comes back; 'but
maybe the railway folk wad charge ower dear for carryin' on it.' Aaron chaffs
him out of the idea that a 'spead' made in London is better than one made in
Kendal, and suggests a nice silk handkerchief. 'I never thowt o' that,' says
Jonty; 'that wad be as like as aught.' Libby, the pretty farm servant breaks in
here, and says: 'I wish tha would think on it, and not be so ready with thy
jacket sleeve.'
'Ye'll not can tell me (says honest Jonty) how much t' silk handkercher'll
be until ye've bought it, I doubt; but if ye'll send word I can just send ye the
brass in a letter.'
And, saying, 'Well, I mun see all's reet afore goin' to bed,' the faithful
farm servant leaves the cottage to go round the byre.
But the actress of the piece throughout is Aaron's mother, Mrs. Hartley.
She sits there at her knitting, with her pretty crossover on her shoulders, sair
troubled at heart by her son Aaron's love affair; she drops her stitches, for
her eyes can hardly keep back the tears, but she seems to know intuitively
how much and how little comfort she may give her son, and how far she may
insist upon his confidences. The attempt on her part to make it appear as if it
did not matter at all and that everything will come right in the end is very
bravely done. Fewest words are best.
'Good night, mother,' says Aaron. 'You'll not mind a' I've said.'
And so the curtain falls. The second scene in the second act brings Jonty
and Mattha Newby (the village tailor) together. Mattha, as I heard, was the
son of a village tailor. To-day, evidently from his boyhood's remembrances,
he is able to play the tailor's part well. Jonty has been 'wrestling with a dyke'
and torn his jerkin, and Mattha volunteers to mend it. A song was introduced
into this scene which I had written for the occasion. It ran as follows:
It had been prettily set to music by a Grasmere lady, and the two bass
voices chimed in with the two last lines in each verse, and Mattha the tailor
and Jonty the farm servant gave great effect to the song by the sudden
addition of their manly notes. Before the curtain falls on this scene, we learn
that the tourist (to whom we were introduced in the first scene), Mr.
Augustus Mallister, who has heard that she is an heiress, is determined, if
possible, to win the heart of Betty Braithwaite. He knows that Aaron's
absence has made her heart grow fonder. He determines to write a letter,
which shall be posted in London, purporting to come from Aaron, in which
the absent lover declares that he has become engaged to an American girl;
and so the curtain falls.
In the last act, and the first scene, there is a pretty passage, although it is
a pathetic one, between Mrs. Hartley and the girl Betty Braithwaite, to
whom Mrs. Hartley has given Aaron's letters to read—one of them the fatal
letter. In the last scene Norman Braithwaite and his wife, an excellent make-
up, come in to talk matters over, and the letter from London amongst other
things. Jonty remembers how that, on a certain day in August, the tourist
chap, 'the fine gentleman' as he called him, had been spouting out a letter
about an Aaron getting wed to an American, and they at once seemed to see
light and to feel that the letter Mrs. Hartley had received was a forgery. Just
at that time Aaron and Betty enter, and one can tell by a glance at them that
it doesn't matter how many forged letters have been written in London; they
have quite made up their minds to make a match of it. As for Mallister, 'the
fine gentleman,' Jonty breaks in:
'Is it Mallister you're talkin' on? We weant see any more o' yon ne'er-do-
weel here. I met t' p'liceman going off wid him to Kendal.'
Jonty: 'It seems he's been wanted for some time. He's been up to some
forgery or summat o' that mak.'
During the acting it was quite plain that the actors themselves were as
much interested as those who witnessed the play. 'I was fairly shamed of
myself,' I heard one saying, 'to meet with ye when I came off the last time,
for the tears on my face, but if you had given me a five pound note I could
not have helped it.' Ah, thought I, that was the secret of your acting so well.
Now and again an actor in undress would pass down the room to have a look
at the others as they performed their parts, and to report. They would come
back with much encouragement to their fellow-players with such words as
these: 'Eh, but it's a grand company now, and walls is beginning to stream
now'; and in truth the heat of the room and the consequent vapour bath was a
thing not to be easily forgotten. But if it had been twice as hot, and the hall
had been twice as crammed, and the play had been twice as long, one could
still have sat with real pleasure to see such perfect acting done with such
simplicity and reality to the life. One wished that Will Shakspere could have
come along; how he would have blessed these village folk for their truth and
their simplicity. And how good a thing, thought I, it is, that there should be a
dull time at the English Lakes, so that, without any temptations to
extravagance in scenery or setting of the plays—that would inevitably come
with a wider public,—these natural dale-folk can delight their fellow-
villagers, by dramatic talent as real as it is remarkable.
JAMES CROPPER OF ELLERGREEN.
The Queen Anne's Bounty Board gave him the chance of helping the
church of his love. The late Bishop of Carlisle, Harvey Goodwin, had no
truer friend; and the present Bishop Bardsley testified to the constant help to
church work in the diocese that this most earnest layman was always willing
to bestow.
There was not a day that this public benefactor did not do something to
help his time. And if one asked oneself why it was he had the power to be a
pillar of good in his generation, a kind of beacon and standard for higher and
happier life in all classes of society round about him, the answer seemed to
be that he had a heart which was for ever young, in a body that seemed as if
age could not touch it—that his sympathies were not with the past, but with
the present and the future; that his enthusiasm for the better time coming
never failed him; that he believed that all things work together for good to
them that fear God and keep His commandments.
The grace of this abundant hopefulness flowed out in all he did and said.
'Age could not stale his infinite variety,' because he never grew old. To see
him with young men or little children was to see him at his best. To know
him in his home life was a privilege for which to be thankful.
But deeper than all his spring of hope and sympathy with the young and
the new lay the fountain of poetry at his heart. He did not, I think, write
poetry, but the love of it was a continual presence. He had the poet's heart,
and entered into the poet's mind. For him, the practical public county
magistrate and councillor, the spirit of the innermost was the joy of the
imagination. This was the secret of his swift sympathy with nature and with
man.
'I have had a delightful week,' he said, 'I wish all my friends could have
seen this wonderful exhibition. Yesterday I was at Chartres Cathedral. I
never knew what stained glass was before; pray visit Chartres. It is a
revelation to one.' Then he turned to the Spanish tapestries and went with
deepest pleasure through the historic scenes that the needles of the
fourteenth and fifteenth centuries have left on deathless record. He seemed
as young-hearted as a boy, and as fresh in his enthusiasm as if this Paris
Exhibition was the first he had ever seen, but he was seventy-seven and had
seen more than falls to most of us to see, of all this world can show. I did not
know as I shook hands and parted that Death already had shaken him by the
hand.
That night the sharp pain of pneumonia was upon him. I saw him once
again, at the bedside celebration of his last Holy Communion, and then I saw
him dead. His beautiful lace without a wrinkle in it with all the look of
youthfulness come back—but, alas, without the bloom, beneath that ample
crown of snow-white hair which for years past had added such dignity to his
refined and kindly presence. As I gazed, the one thought that came to me
was this, did ever man pass so little weary, so full of keen interest and
unabated enthusiasm after so long a pilgrimage, right up to the doors of that
other world where, as we trust, all his fullest powers shall find full play, or
enter these gates of life with so little pain?
He died in France and his body was borne across the sea and laid to rest
in the valley he held most dear. It seemed as if all Westmoreland and
Cumberland had come to Burneside to do him honour at the homegoing.
The coffin, covered with wreaths, was laid upon a simple wheeled bier in
front of the doors of Ellergreen, and so taken by hand from the house to the
church. It was his wish that no hearse should be used, and that this simpler
method of carrying the body to its rest should be employed. Before the
procession moved, many of those present came up to the coffin to see the
beautiful photograph taken after death; and side by side of it the picture of
his bride taken on her honeymoon. Beneath these two pictures were written
the words from Christina Rossetti's poem:
and beneath this a little note stating that these were the words which he had
begged might be inscribed upon his tombstone.
Those who knew how ideal had been their wedded life, knew also how
through all the long years of widowerhood and the grief of separation that
lent its pathos to his fine face, there had been one sweet music to which he
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookfinal.com