Practical Web Development 1st Edition Wellens Paul
Practical Web Development 1st Edition Wellens Paul
Practical Web Development 1st Edition Wellens Paul
Practical Web Development 1st Edition Wellens Paul
Practical Web Development 1st Edition Wellens Paul
1.
Practical Web Development1st Edition Wellens
Paul download
https://ebookbell.com/product/practical-web-development-1st-
edition-wellens-paul-50195080
Explore and download more ebooks at ebookbell.com
2.
Here are somerecommended products that we believe you will be
interested in. You can click the link to download.
Practical Web Development With Haskell Master The Essential Skills To
Build Fast And Scalable Web Applications 1st Edition Ecky Putrady
https://ebookbell.com/product/practical-web-development-with-haskell-
master-the-essential-skills-to-build-fast-and-scalable-web-
applications-1st-edition-ecky-putrady-7249994
Complete Vuejs 2 Web Development Practical Guide To Building Endtoend
Web Development Solutions With Vuejs 2 1st Edition Mike Street
https://ebookbell.com/product/complete-vuejs-2-web-development-
practical-guide-to-building-endtoend-web-development-solutions-with-
vuejs-2-1st-edition-mike-street-7336226
Sustainable Web Development With Ruby On Rails Practical Tips For
Building Web Applications That Last David Bryant Copeland
https://ebookbell.com/product/sustainable-web-development-with-ruby-
on-rails-practical-tips-for-building-web-applications-that-last-david-
bryant-copeland-28712458
Rust Web Development With Rocket A Practical Guide To Starting Your
Journey In Rust Web Development Using The Rocket Framework Karuna
Murti
https://ebookbell.com/product/rust-web-development-with-rocket-a-
practical-guide-to-starting-your-journey-in-rust-web-development-
using-the-rocket-framework-karuna-murti-43768604
3.
Web Development WithBlazor An Indepth Practical Guide For Net
Developers To Build Interactive Uis With C 2nd Edition 2nd Jimmy
Engstrm Engstrom
https://ebookbell.com/product/web-development-with-blazor-an-indepth-
practical-guide-for-net-developers-to-build-interactive-uis-
with-c-2nd-edition-2nd-jimmy-engstrm-engstrom-48223998
Django 2 Web Development Cookbook 100 Practical Recipes On Building
Scalable Python Web Apps With Django 2 3rd Edition Jake Kronika
https://ebookbell.com/product/django-2-web-development-
cookbook-100-practical-recipes-on-building-scalable-python-web-apps-
with-django-2-3rd-edition-jake-kronika-10469728
Web Development With Blazor A Practical Guide To Start Building
Interactive Uis With C 12 And Net 8 3rd Edition Jimmy Engstrm
https://ebookbell.com/product/web-development-with-blazor-a-practical-
guide-to-start-building-interactive-uis-with-c-12-and-net-8-3rd-
edition-jimmy-engstrm-56924602
Web Development With Blazor A Practical Guide To Start Building
Interactive Uis With C 12 And Net 8 3rd Edition Jimmy Engstrm
https://ebookbell.com/product/web-development-with-blazor-a-practical-
guide-to-start-building-interactive-uis-with-c-12-and-net-8-3rd-
edition-jimmy-engstrm-56999330
Web Development With Blazor A Practical Guide To Start Building
Interactive Uis With C 12 And Net 8 3rd Edition Jimmy Engstrm
https://ebookbell.com/product/web-development-with-blazor-a-practical-
guide-to-start-building-interactive-uis-with-c-12-and-net-8-3rd-
edition-jimmy-engstrm-57360710
Table of Contents
PracticalWeb Development
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. The World Wide Web
World Wide Web
The Internet
HTTP and HTML
HTML
HTTP
The World Wide Web Consortium (W3C)
Mosaic
The first browser
Netscape
Internet Explorer
The explosion of the Web
Amazon.com and e-commerce
Google and Yahoo!
Social networking
8.
Web development
HTML
HTML editorsand other tools
Browsers and web servers
CSS
JavaScript
PHP
Data
Summary
2. HTML
HTML versions
Semantic and presentational HTML
The structure and syntax of an HTML document
Doctype
<html>
<head>
<body>
Syntax for tags or elements inside the document
HTML comments
Links
The <a> tag and attributes
The href attribute
The <a> name attribute
The <a> target attribute
Classic document elements
<h1>, <h2>, <h3>, … <h6> – headings
<p> – paragraph
<span> – span
Lists
Images
<img> element and attributes
Image width and height
Input forms
Form elements
Form attributes
The label attribute
Input attributes
The name attribute
The value attribute
9.
The checked attribute
Thereadonly attribute
Textarea
Dropdown lists
The disabled attribute
The selected attribute
Tables
Table elements
<table>
<thead> <tbody>
<tr>
<th> <td>
Table attributes
colspan (td)
rowspan (td)
<div>, the "uebertag"
HTML entities
HTML5-specific tags
Summary
3. CSS
Adding styles to our documents
External style sheets
Internal CSS
Inline styles
The Document Object Model (DOM)
Selectors
Multiple classes
Descendants
Selecting children or siblings
Specificity
Block elements and inline elements
Colors
Fonts
So what are fonts?
Font families
Serif fonts
Sans-serif fonts
Monospace fonts
The font-family property
10.
Font-weight and font-style
Font-size
Line-height
Thebox model
Padding
Border
Margin
Collapsing margins
Positioning
Float
position:relative
position:absolute
Styling lists
list-style-type
list-style-image
list-style-position
Styling anchors – pseudo-classes
Firebug
Summary
4. JavaScript
Programming 101
Compiled and interpreted languages compared
JavaScript is not the same as Java
Java
JavaScript
Our first JavaScript program
Variables
Variable declarations
Values of variables
Numbers
Strings
Converting strings to numbers
Expressions and operators
Arithmetic operators
Addition(+)
Subtraction (-)
Multiplication (*)
Division (/)
Modulo (%)
11.
Relational operators
Control flow
if
while
switch
Functions
Scopeof variables
Objects
JSON
DOM objects, properties, methods, and events
The Window object
The Document object
write and writeln methods
Nodes and DOM traversing
Events
Summary
5. PHP
Introduction to PHP
Our first real PHP program
PHP and web hosting
Web hosting 101
Domain name
Web hosting companies
Server-side setup
Additional server-side services
PHP development environment
PHP as a web development language
Variables, values, operators, and expressions
Scope of variables
Local variables
Global variables
Static variables
String operators
To double quote or to single quote, that is the question
Control flow
Functions
String functions
strpos()
strlen()
12.
substr()
Date functions
time()
date()
strtotime()
Arrays
Numeric arraysor indexed arrays
Associative arrays
Cool control statements for associative arrays
Sending data back to the server – forms
POST or GET, what should we get?
$_POST and $_GET arrays
Files
include, require, and require_once
Regular files
File functions or f-functions
fopen
file_exists(), is_file(), and is_dir()
fread and fwrite
One line at a time – fgets()
The printf family
Syntax of printf family of functions
Summary
6. PHP and MySQL
Databases
Relational databases
SQL
MySQL
phpMyAdmin
Creating databases
Creating and managing users
Creating and managing database tables
MySQLi in PHP
Connecting to the database
Our first SQL query, really!
Writing a MySQL query in PHP
Fetching the result
Obtaining data from more than one table
Adding data
13.
Updating data
Summary
7. jQuery
Obtainingthe jQuery library
Where to place the jQuery library on your page?
jQuery UI and jQuery Mobile
Using jQuery selectors and methods
html()
text()
attr()
.val()
show() and hide()
.find()
.parent()
.next()
.css()
jQuery documentation
Event handlers and jQuery
preventDefault()
$(this)
updateNewsContent()
Summary
8. Ajax
XMLHttpRequest
Ajax and jQuery
jQuery Ajax methods
$.load() method
$.post()
$.ajax()
Summary
9. The History API – Not Forgetting Where We Are
The problem we are trying to solve
The self-service restaurant
HTML5 History API and the history object
pushState()
popstate event
popstate and different browsers
The History plugin
Bookmarking
14.
Summary
10. XML andJSON
XML
XML format
Displaying XML files
XML editors
XML Schema
SimpleXML
The XML file
The XML Schema file
The CSS file
The PHP file
Creating XML files with SimpleXML
Generating our HTML on the client side
XSLT
JSON
JSON syntax
JSON values
JSON objects
JSON strings
JSON arrays
JSON numbers
JSON and PHP
JSON with Ajax and jQuery
Two useful JSON methods
Summary
11. MongoDB
Relational database management systems
NoSQL databases
MongoDB
Installing MongoDB
The MongoDB shell
Creating databases, collections, and documents
_id and ObjectIds
Loading scripts
Removing documents
Updating documents
MongoDB data types
Basic data types
15.
Dates
Embedded documents
One moreexample
MongoDB and PHP
Getting our gallery data
CRUD operations with MongoDB and PHP
Insert documents
Update documents
Queries with conditions
MongoDB cursor object
Summary
12. Mobile First, Responsive Design with Progressive Enhancement
Responsive design
Déjà vu
Media queries
Using the media attribute
Do more with less
Mobile first
Why mobile first?
We have come a long way
Mobile devices have newer capabilities
Mobile devices are not only used while on the road
Content first, navigation next
Small means big
Mobile input
Mobile first recap
Progressive enhancement
EnhanceJS
enhance.js
loadStyles and loadScripts
enhanced and FOUC
Modernizr
The Modernizr object
Polyfills and Modernizr
yepnope.js or Modernizr.load
Summary
13. Foundation – A Responsive CSS/JavaScript Framework
Our responsive toolkit – Foundation
Foundation components
16.
The grid system
Classend
Visibility classes
The block grid system
Useful UI elements
Thumbnails – for simple galleries
Reveal modals – your better pop-up
Dropdowns
Example – a simple photo gallery
Accordions
Awesome Font awesome
Equalizer – the hardest thing to do with two <div>s made easy
Navigation
Top bar – not just your regular menu bar
Adding more magic
Yet more magic – off-canvas, the coolest thing
Summary
14. Node.js
Node.js
Installing node.js
npm
node
Adding HTML
Serving up static content
A tale of two (JavaScript) cities
node.js and MongoDB
Déjà vu … once more
Express
Installing Express
Our first Express app
An example with middleware
Templating and handlebars.js
Creating a layout
Our last Hello, World example
Summary
A. Bootstrap – An Alternative to Foundation
Bootstrap components
The Bootstrap grid system
Visibility classes
Credits
Author
Paul Wellens
Reviewers
Jorge Albaladejo
ElvisBoansi
Adam Maus
Jesús Pérez Paz
Commissioning Editor
Edward Gordon
Acquisition Editors
James Jones
Sonali Vernekar
Content Development Editor
Ritika Singh
Technical Editor
Ryan Kochery
Copy Editors
Alpha Singh
Ameesha Green
Jasmine Nadar
About the Author
PaulWellens has been a senior product manager for a major computer company
in the Los Angeles area and Silicon Valley for over two decades. Before that, he
used to install Unix systems and train companies in Europe, from his native
Belgium. Later in his career, he became a web development aficionado because
it brought him back to another passion of his: programming.
This is not his first book. His prior publication is of a different nature. Nature is
what it is all about as it is a guidebook on Eastern California, which is illustrated
with his own photographs. Therefore, it should not come as a surprise to learn
that, besides experimenting with new web technologies, his major hobbies are
photography and hiking in the Eastern Sierra.
23.
Acknowledgments
I have writtenbooks before and I know that the result can only be successful if
there are some nice people to assist you. This is the first time that I have worked
with a publisher, Packt Publishing, so these are the first people I would like to
thank. I would like to thank Shivani Wala for discovering me and James Jones
for working with me to figure out the right book for me to write and for you to
read. I enjoyed working with Priyanka Shah, Ritika Singh, and Ryan Kochery
who assisted me in bringing this cool project to completion, without a single
complaint, even though I was once again late with a deliverable. Thank you for
being so patient with me.
I would also like to thank (yes, this is a note of cynicism) the three companies
that "manage" the railroads in Belgium. Without their comedy of errors with
trains—delays, cancellations, failure to depart because of mechanical problems,
or trains departing from the station where you want to get to, as opposed to
depart from, I would never had so much time to work on this book on my iPad.
It is not in their honor, but, because for 2 years, it was the highlight of my day to
safely arrive at Antwerp Central Station—which was rated by an American
newspaper as the most beautiful train station in the world—that we decided to
use it as the cover photo.
Next, I would like to thank my web developer buddy, Björn Beheydt, for taking
the time to read the early versions of the chapters of this book and providing
constructive feedback. I would also like to mention Steve Drach and Bart
Reunes for always being there when I needed some technical advice.
Then, there are places that I would like to call a home away from home, where
folks did not mind that I was typing away on my Bluetooth keyboard when
inspiration kicked in. Most notably, I have to thank the folks at Trapke Op
(Caro, Maressa, Evi, Klaartje and Jill) in Brecht, Belgium, where I typed these
sentences. These wonderful people helped me make it to the finish line. Het
Boshuisje in Zoersel, where Hendrik Conscience wrote books over a hundred
years before I did, also comes to mind. I would like to thank Theo for always
giving me a seat to land with my iPad, keyboard, and work.
Less related to this book, but still in need of a mention, are all my friends in
California that inspired me to carry on doing great things in hard times. In
particular, I want to express my appreciation to the people that work(ed) at the
24.
particular, I wantto express my appreciation to the people that work(ed) at the
Gordon Biersch Restaurant in Palo Alto, which I can still proudly call my photo
gallery. I thank them for their support for over 11 years and for still welcoming
me when I visit them; they make me feel as if I only left last night. That also
includes the patrons of the place with whom I've had numerous conversations
and enjoyed every single one of them.
If you read this book, or my previous book, you will notice that I have a certain
affinity and passion for a particular part of California. So, I would like to thank
all the wonderful folks that live in the town of June Lake, California, for always
having inspired me to come back and be creative. My goal in life is to go there
as often as I can.
Finally, I would like to thank my mother. It has been hard for her since my father
passed away and her son returned. I am dedicating this book to her, not that I
expect her to read it, but I really appreciate the patience she had with me while I
was writing it.
25.
About the Reviewers
JorgeAlbaladejo is a software engineer with a master's degree in information
and communication technologies from HES-SO, Switzerland. With over a
decade of experience building cloud, SaaS, and web applications, he considers
himself to be a passionate and versatile full-stack web developer.
Throughout his professional experience, he has worked with many companies in
different fields, such as project management, social networks, quality assurance,
weather data visualization, and video games. He devours countless books about
software engineering, project management, and science fiction, and he is
passionate about clean, long-lasting software architectures.
He is currently working as a freelance contractor under the commercial name of
CometaStudio, and he is mostly interested in start-ups and mid-sized companies
that build great web experiences for great causes that make a difference. His next
dream is to become a digital nomad who travels around the globe while working
at the same time—and learn languages in the process!
Elvis Boansi is a software developer at John Jay College. He develops and
maintains custom web applications that are used by members of the college. In
his spare time, he enjoys playing soccer and basketball with his friends.
I'd like to thank my employers at John Jay College for all of their support. I
would also like to thank my supervisors, Ana and Juan, for their feedback. I
thank my friends, Sanga, Steve, and Loric, for constantly sharing their
knowledge with me.
Adam Maus is a software developer with a master's degree in computer science
and works at the Center for Health Enhancement Systems Studies at the
University of Wisconsin in Madison in the United States. His interests lie in
developing web technologies that utilize data mining to create better user
experiences. He primarily works on websites that help people undergoing
addiction recovery support, as well as people who are aging. In his free time, he
enjoys running, biking, and reading books.
Jesús Pérez Paz is a full-stack web developer with experience in project
26.
management. He worksat PepitaStore Inc. and collaborates with Mozilla.
His main area of work is design, and he integrates the user interface (or
frontend) of web pages / applications; however, lately, he has been diving into
backend stuff and has become a full-stack web developer.
He loves the open/free Internet and thinks that the Internet is a global public
resource that must remain open and accessible to everyone.
27.
www.PacktPub.com
Support files, eBooks,discount offers, and more
For support files and downloads related to your book, please visit
www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with
PDF and ePub files available? You can upgrade to the eBook version at
www.PacktPub.com and as a print book customer, you are entitled to a discount
on the eBook copy. Get in touch with us at <service@packtpub.com> for more
details.
At www.PacktPub.com, you can also read a collection of free technical articles,
sign up for a range of free newsletters and receive exclusive discounts and offers
on Packt books and eBooks.
https://www2.packtpub.com/books/subscription/packtlib
Do you need instant solutions to your IT questions? PacktLib is Packt's online
digital book library. Here, you can search, access, and read Packt's entire library
of books.
28.
Why subscribe?
Fully searchableacross every book published by Packt
Copy and paste, print, and bookmark content
On demand and accessible via a web browser
29.
Free access forPackt account holders
If you have an account with Packt at www.PacktPub.com, you can use this to
access PacktLib today and view 9 entirely free books. Simply use your login
credentials for immediate access.
30.
Preface
I am fortunateto have lived and worked in California for a long time. The
majority of that time, I lived in Palo Alto, which is the center of Silicon Valley,
the home of Stanford University, and the birthplace of many companies, big and
small, such as Sun Microsystems, where I worked. I sat on the front row to see
how the World Wide Web developed, as well as being present for the advent of
social media. Facebook started on the other side of the wall of my favorite
restaurant. Now, some Facebook guy or girl is sitting in what used to be my
office at the bottom of the Dumbarton Bridge. As a product manager for Solaris,
one of my tasks was to make sure that Netscape Navigator was included with our
operating system. So, I was right at the source in which the development of the
Web began. I even went to the Web 2.0 conference and bought the book of the
same name.
Then, I felt the need to have my own website to display my photographs and
inform people about the beauty and interesting places of the parts of California
that I had discovered during my many journeys travelling around the state. So, I
created one. One day, I was telling a friend about it and he tried to look at it on
his mobile phone. It looked terrible. So, I bought a Nokia phone (a brick
compared to what we have today) so that I could test my own site to make sure
that it looked good on a phone as well. This is how I caught the bug of
responsive design, years before someone started calling it this.
Upon my return to Belgium, I decided that it was time to learn as much as
possible (I love to learn new things) about what is out there beyond creating
websites and took a 6-month course on PHP web development. A lot of it looked
familiar as I was previously a UNIX and C developer. There were only 12
people in the class, who were all bright minds, and I quickly discovered that
there was more to learn.
As the classes took place in Leuven, a major university town in Belgium, I went
to the local university bookstore and bought book after book on all kinds of
related topics and quickly became a jQuery fan. jQuery, by the way, was not
even included in the course. I started wondering why someone needed to have 35
different books to learn about web development and that writing a single book
that gave a comprehensive overview of what you need to know to engage in web
development would not be a bad idea.
31.
Since then, webdevelopment has changed a lot; more books were needed,
eBooks this time, but the concept remained the same. So, now you know why I
wrote the book.
This book gives you an overview of all the general aspects of web development,
in a traditional way, using plain HTML to do static websites, as well as the
current way, to enable you to create your web pages dynamically and make sure
that they look great on mobile devices as well, by using responsive design. We
conclude by giving you a hint of what is yet to come if you replace the
traditional web server by writing your own using node.js.
32.
What this bookcovers
Chapter 1, The World Wide Web, gives you an overview of the history of what
we know today as the World Wide Web.
Chapter 2, HTML, introduces HTML and gives you an overview of the most
commonly used HTML tags to do web development. You will be able to create a
basic website after reading this chapter.
Chapter 3, CSS, explains how to use Cascading Style Sheets (CSS). This is used
for the presentation part or layout of your website, from color to dimensions to
typefaces. The most commonly used CSS properties are explained here. Once
you are done with this chapter, you will be able to make your basic website look
good.
Chapter 4, JavaScript, first gives you an introduction to the world of
programming and programming languages. Next, the overall syntax of
JavaScript and how to use it for client-side programming is introduced.
Chapter 5, PHP, explains PHP, which is another programming language. This
one is used to do server-side programming. It requires a web server to do the
development of your website and deploy it. You will learn how to dynamically
create your web pages, rather than having to write a bunch of HTML files.
Chapter 6, PHP and MySQL, introduces MySQL, an open source database. You
will learn how to create a database, manage it using the phpMyAdmin tool, and
perform basic CRUD (create, replace, update, delete) operations from within a
PHP program.
Chapter 7, jQuery, covers a popular JavaScript library. It allows you to write
more compact and clean code and handles browser incompatibilities for you.
With this, it is going to be a lot easier and faster for you to write JavaScript code
that traverses and manipulates the web page. It does so by using selectors, which
you learned to use with CSS. So, with jQuery, you can write JavaScript code
without having to learn a lot of JavaScript.
Chapter 8, Ajax, introduces Ajax. It represents a collection of techniques to make
it easy to dynamically change only portions of a website. With this chapter, we
have entered the world of what I call "modern web development". The interface
33.
that we usefor our Ajax calls is jQuery.
Chapter 9, The History API—Not Forgetting Where We Are, explains a very
important piece of the web development puzzle. Once we are changing pages on
the fly so they look different but actually remain the same page (URL), strange
things can happen when visitors want to go back to what they think is the
previous page. A solution for this is described here that will not only work for
HTML5 but for HTML4 as well.
Chapter 10, XML and JSON, describes XML and JSON. They are two popular
formats to exchange data, for example the server and the client. Although XML
is used in a variety of environments, JSON is closer to the web development
community.
Chapter 11, MongoDB, describes an alternative to MySQL as a database. This is
a so-called NoSQL database and a document database. Documents are
conveniently in the JSON format. Here, how to access a MongoDB database
from within a PHP program is described.
Chapter 12, Mobile First, Responsive Design with Progressive Enhancement,
has the longest chapter title of the book. It explains how modern web
development has to be done now that more people are using mobile devices
instead of traditional computer screens to go to websites.
Chapter 13, Foundation – A Responsive CSS/JavaScript Framework, describes
most of the features of the Foundation framework, which helps you with your
responsive design. It contains everything that I have always wanted to write
myself but never had the time to do. This concludes the part of the book that
covers what I call modern web development.
Chapter 14, Node.js, gives an overview of what I call the avant-garde of web
development. It introduces node.js, which allows you to write your server-side
code in JavaScript, including your own web server, which is facilitated by using
the Express framework.
Appendix, Bootstrap – An Alternative to Foundation, describes the popular
CSS/JavaScript framework, which is an alternative to Foundation to help you
with responsive design. The main reason to include this is to point out key
differences and similarities.
34.
The online chapter,The Mono County Site, provides a full example of a website
or application where we apply most, if not all, the things we learned. It is
available at
https://www.packtpub.com/sites/default/files/downloads/B03816_Appendix.pdf.
35.
What you needfor this book
You will need the following software to work with the examples in this book:
Software Source
Firefox and Firebug http://www.mozilla.org
Apache Web Server Part of the OS
XAMPP (includes MySQL and
PHPMyAdmin)
http://www.apachefriends.org
MySQL http://www.mysql.com
PHPMyAdmin phpmyadmin.net
jQuery http://www.jquery.com
The History jQuery plugin https://github.com/browserstate/history.js
MongoDB mongodb.org
Foundation foundation.zurb.com
Node.js nodejs.org
Bootstrap getbootstrap.com
36.
Who this bookis for
This book is for anyone who wants to get to grips with the broader picture of
web development today. It is perfect for beginners who want to get started and
learn web development basics, such as HTML, but it also offers experienced
developers a web development road map that will help them to extend their
capabilities and gain a greater insight into how different technologies interact
and work together.
37.
Conventions
In this book,you will find a number of text styles that distinguish between
different kinds of information. Here are some examples of these styles and an
explanation of their meaning.
Code words in text, database table names, folder names, filenames, file
extensions, pathnames, dummy URLs, user input, and Twitter handles are shown
as follows: "We can include other contexts through the use of the include
directive."
A block of code is set as follows:
<body>
<div id="header"></div>
<div id="container">
<div id="left"></div><div id="middle"></div><div id="right"></div>
</div>
<div id="footer"></div>
</body>
When we wish to draw your attention to a particular part of a code block, the
relevant lines or items are set in bold:
<tag class="value1 value2">text<?tag>
Any command-line input or output is written as follows:
{ "key" : { "name":"Schwarzenegger","first":"Arnold",
"profession":"governator" } }
New terms and important words are shown in bold. Words that you see on the
screen, for example, in menus or dialog boxes, appear in the text like this: "
Now, not until a user clicks the Beach button, Hello, World will turn into Hello,
Beach."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.
Reader feedback
Feedback fromour readers is always welcome. Let us know what you think
about this book—what you liked or disliked. Reader feedback is important for us
as it helps us develop titles that you will really get the most out of.
To send us general feedback, simply e-mail <feedback@packtpub.com>, and
mention the book's title in the subject of your message.
If there is a topic that you have expertise in and you are interested in either
writing or contributing to a book, see our author guide at
www.packtpub.com/authors.
40.
Customer support
Now thatyou are the proud owner of a Packt book, we have a number of things
to help you to get the most from your purchase.
41.
Downloading the examplecode
You can download the example code files from your account at
http://www.packtpub.com for all the Packt Publishing books you have
purchased. If you purchased this book elsewhere, you can visit
http://www.packtpub.com/support and register to have the files emailed directly
to you.
42.
Errata
Although we havetaken every care to ensure the accuracy of our content,
mistakes do happen. If you find a mistake in one of our books—maybe a mistake
in the text or the code—we would be grateful if you could report this to us. By
doing so, you can save other readers from frustration and help us improve
subsequent versions of this book. If you find any errata, please report them by
visiting http://www.packtpub.com/submit-errata, selecting your book, clicking
on the Errata Submission Form link, and entering the details of your errata.
Once your errata are verified, your submission will be accepted and the errata
will be uploaded to our website or added to any list of existing errata under the
Errata section of that title.
To view the previously submitted errata, go to
https://www.packtpub.com/books/content/support and enter the name of the
book in the search field. The required information will appear under the Errata
section.
43.
Piracy
Piracy of copyrightedmaterial on the Internet is an ongoing problem across all
media. At Packt, we take the protection of our copyright and licenses very
seriously. If you come across any illegal copies of our works in any form on the
Internet, please provide us with the location address or website name
immediately so that we can pursue a remedy.
Please contact us at <copyright@packtpub.com> with a link to the suspected
pirated material.
We appreciate your help in protecting our authors and our ability to bring you
valuable content.
44.
Questions
If you havea problem with any aspect of this book, you can contact us at
<questions@packtpub.com>, and we will do our best to address the problem.
45.
Chapter 1. TheWorld Wide Web
This book talks about the past, present, and future of Web Development.
Beginning with Chapter 2, HTML, we will walk you through all the technologies
you need to know about, in order to practice web development. Before we do
that, we want to set the stage, so that we all know which Web we are talking
about: this would be the World Wide Web (www).
46.
World Wide Web
Ilove history! So let us start with a little history about the World Wide Web. I
was fortunate enough to be able to work at a company that developed the first
commercial version of the UNIX Operating System. They were founded in 1977
and I joined them ten years later. UNIX is an Operating System (the thing you
need to make your computer do something) that was intended to run on
minicomputers (although they were called that, they could not fit into your
apartment and required air-cooling). These computers were typically used as an
isolated system that had quite a number of text-based terminals attached to them.
Today UNIX lives on, and forms the basis of Linux, Solaris, MacOS, and others.
Our company spotted an opportunity to add products that would add features and
technologies that today are standard. Some of these examples are email (ability
to send a mail to a person on another computer), and ftp (ability to transfer a file
to another computer, or to just access another computer). Yes, you had to pay
extra if you wanted to be able to send mail. Thanks to the Internet, all of this was
made possible.
47.
The Internet
The Internetis a global network that today interconnects billions of computers
worldwide. Its origin dates back to research done for the US government, but
today everybody can get on the Internet, using its standard set of protocols,
commonly referred to as TCP/IP (the IP here being Internet Protocol).
Every computer or device that is connected to the Internet will have a unique
Internet address, aka IP address. It is a set of 4 numbers separated by dots, for
example, 192.25.13.90. Of course, you will never tell your friend that you
bought something at 192.25.13.90 but at, for instance, www.amazon.com. This
is because the Internet also uses a feature that translates IP addresses into easier
to remember domain names. The example I used happens to be a website you
can go to and buy things from a practice that we all know has caused the www to
become what it is today.
The Internet and the www are, in everyday speech, treated as if they are
synonyms but they are indeed not. There are a lot of different services provided
on the Internet (by companies called Internet Service Providers (ISP)), and
that was already the case before the www existed (for example, giving you
access to electronic mail). What it took for the www to emerge was (just like in
JavaScript) a series of asynchronous events. Two of those are too important to
not mention.
48.
HTTP and HTML
Youhave probably heard this story many times, but the World Wide Web would
not have existed without it. It is the story of Tim Berners Lee, an engineer at the
European Centre for Nuclear Research (CERN). The centre had many
computers that were, of course, hooked up to the Internet. It also produced a
tremendous amount of data and documents, and that became almost impossible
to manage. Tim worked out a solution by developing a language to write these
documents in, a protocol on top of the Internet to manage them, as well as a
computer program for users to access them.
49.
HTML
HTML, short forHypertext Markup Language is the name of that language.
Hypertext is text that contains hyperlinks, which in turn are those parts of a
document which readers can click on to take them to a different document, using
the link. You have all seen the blue underlined parts of a text, in not-so-good-
looking web pages. These are hyperlinks.
A document in HTML consists of tags, with text in between them. There are
opening and closing tags for example, as follows:
<h1>Hello, world</h1>
Here, <h1> is the opening tag and </h1> the closing one. We will learn about a
similar markup language: XML. HTML and XML are not the same though. One
important difference is that in XML you can define your own tags, as long as
you close each one you've opened. XML is used to transfer the data and the tags
are used to organize the data.
In HTML, tags do have a specific meaning. <h1> would be used in a document
for the text of a level one header. A <a> tag—the anchor tag—is the one used to
include the hyperlinks we just discussed. So the purpose of writing HTML is not
to transfer data, but to present it to human users.
To do so, these tags are interpreted by the computer program we mentioned
earlier. Such a program is called a browser. When the reader clicks on a
hyperlink, the browser will detect that as well, and send a request to yet another
program, the web server, to go fetch another document.
50.
HTTP
This is whereHTTP, the Hypertext Transfer Protocol fits in. If a user clicks on a
link, it is like saying: go fetch another HTML document. The name of that
document would be part of a longer string that starts with http:// and also
contains the domain name of the server. It is called a uniform resource locator,
but we all refer to it as URL. Following is an example:
http://www.paulpwellens.com/examples/secondpage.html.
What you can do with HTTP has evolved over time and we will learn about it
later on in the book, but for now we need to move on with our history lesson.
One more little tidbit of history for you: guess how our friend Tim called his
browser, the first ever browser: WorldWideWeb. He later renamed it to avoid
confusion.
51.
The World WideWeb Consortium (W3C)
After he left the CERN in 1994, Tim Berners Lee founded the World Wide
Web Consortium (W3C). The consortium tries to enforce compatibility and
agreement between vendors that deliver components for the web. Incompatible
versions of HTML would cause browsers to render web pages differently; and
incompatible features added to browsers have the same unexpected result.
If you visit www.w3.org, the consortiums website, you will notice that the W3C
has evolved into a standards body for many technologies, but even in those days,
having such an organization was sorely needed.
52.
Mosaic
History moved on,and so did I! Our company was acquired by Sun
Microsystems and I became product manager for our PC UNIX product. Oh yes,
before I forget, PCs were everywhere by then and that phenomenon would, in
the long run, also contribute to the explosion of the World Wide Web.
One day, in the year 1993, my engineering manager walked into my office,
together with Jonathan, his lead programmer. They wanted to show me what he
(Jonathan) had done over the weekend. It was a port (take the source code of a
program and make it run as a binary on a computer) of a program called Mosaic
for our PC UNIX product. I saw him type a few commands but did not quite
understand why these guys were so excited. Little did I know that this seemingly
innocent little program was going to change our lives forever!
53.
The first browser
Mosaicwas developed at the National Center for Supercomputer
Applications (NCSA)at the University of Illinois in Champaign-Urbana (this is
a long drive through cornfields from Chicago, which I took once) by a team led
by Marc Andreesen. It was the first browser to support multiple protocols (hence
the name) as well as display an image and text on the same page (surprisingly,
this is not a trivial matter on a webpage!) It soon caught attention worldwide and
the browser was ported to many platforms, so that more and more people could
develop or have access to websites.
In November 1992, there were 26 websites. In the Mosaic browser, there was a
What's new section that showed a new website everyday. Three years later, there
were 10,000 and another three years later, millions. Today, I do not think it is
possible to count them anymore. So how did we get from thousands to millions?
54.
Netscape
Marc Andreesen foundeda company, named it after Mosaic, and then later
renamed it Netscape Communications Corporation. They basically rewrote the
Mosaic browser and optimized it for environments with lower network
bandwidth, such as individuals who access the Internet from home through their
ISP. The browser was called Netscape Navigator. This was clearly the first
commercial browser, making it to the shelves of computer retail stores as part of
a bundle, Netscape Communicator.
Netscape was also credited as the first browser to include support for JavaScript.
With this scripting language, interactivity could be added to web pages. The
World Wide Web could be at anybody's fingertips, as long as you had Netscape.
From 1994 to about 1999, Netscape clearly had the biggest market share for
browsers.
Over time, Netscape was moved over to Mozilla Corporation, an Open Source
organization, and the development of Netscape ended. Today, users can
download the Firefox browser from www.mozilla.org.
admirable proportions, andtasteful and correct ornamentation; by
admission of light from the roof, the unsightliness of windows
inserted in the walls is avoided, and, in its entirety, the building fairly
represents that which it purports to be.
Let the visitor, however, enter, and he will find himself somewhat
disappointed; for, instead of seeing a tolerably correct Greek temple,
he will find a singularly ineffective and mediocre Christian Church.
The profuseness of decoration, much of it foreign to the style, the
want of power in what should be the central point of attraction, the
general horizontal character of the lines, throwing out the building in
an unnatural degree—all show the abortiveness of an effort to lend
the rigidity of ancient forms to the exigencies of modern tastes.
Still, to compare the Madeleine, with all its faults, to the British
Museum, would be an insult to the former; not that the classical
façade of our own building is without merit: the nobility and majesty
of the portico and colonnade cannot well be denied, and, if built of
white marble (supposing the brightness of the marble could be
preserved in this variable climate) instead of their present dingy
material, they would have constituted, by their own merit, a most
striking and dignified object, whatever cavils might have existed as
to the reality of the purpose to which they would have been applied.
A certain distance, however, is requisite for the view, and this it is
most difficult to obtain; on closer inspection it will be seen that the
imposing range of pillars rather draws attention to, than serves to
conceal, the frightful sash windows which glare from behind it, and
whose light it obscures.
In the tympanum of the portico is a group of sculptured figures by
Sir R. Westmacott. To this M. Edgar Vinet, in a notice of the British
Museum in the Journal des Débats, written in 1858 (30th of
December) alludes in the following words:—“Un fronton récemment
terminé, et dans lequel Sir Richard Westmacott, ce qui se conçoit
pour un sujet pareil, a représenté, d’une manière un peu confuse,
l’homme passant de l’état sauvage, sans l’influence de la religion, à
la civilisation et au progrès.”
This cluster of sculpture is by no means happy, and the kindly
phrase of our critic, “une manière un peu confuse,” might, with a
57.
little freedom andmore truth, be rendered by the English words,
muddle, cram, and confusion.
On either flank of the main building, and in advance of it, is a
block of official dwelling-houses, which, as some may remember,
called down much denunciation at the time they were erected; they
are, however, so void of pretentiousness that they seem hardly to
deserve any very lavish outpouring of righteous indignation. It is
enough to say of them that they would have been better away.
The British Museum is, however, more admirable inside than out.
Here, nevertheless, the Nemesis of the style pursues the observer
even more unrelentingly. If some of the vast and dismal rooms be
not the very halls of Eblis, at least they are eminently fitted for the
depositories of the sarcophagi of those who have descended thither.
The beauty of their contents may, it is true, engross the visitor’s
attention for a time, but he can hardly hope to remain long free from
the depression and melancholy with which the surrounding air
seems impregnated. The lighting (and here, again, the blame must
be exclusively laid on the style adopted) is in many places most
defective; as to the mural decoration, it cannot be better described
than in the words of the already quoted M. Vinet:—A l’exception de
la salle de lecture, vaste rotonde dont la coupole reluit d’or la,
décoration intérieure du Musée Britannique vous étonne par sa
simplicité; les murailles sont nues, quelques méandres, peints à
l’encaustique, entourent des plafonds percés par un vitrage, par où
passe une lumière froide et grise: voilà tout ce que l’orgueilleuse
Albion a cru devoir accorder à l’embellissement intérieur de son
Musée: décoration conçue avec un tel puritanisme qu’elle est restée
au dessous des salles d’attente des chemins de fer, comme
ornementation et comme goût. Une large cheminée de fonte,
chauffée à blanc huit mois de l’année, occupe le centre de chaque
pièce, et, par son prosaïsme forme le plus étrange contraste avec les
œuvres élégantes, filles du soleil, qui l’entourent.”
To the objection that those who thus flatly condemn one form of
architecture are bound to suggest another more suitable, a ready,
and by no means embarrassing answer is forthcoming. The Pointed,
the most beautiful and ductile of all styles, may be left out of
58.
consideration, as beinghardly of sufficient congruity to the relics of
art stored in the National collection. Moreover, to have attempted a
Gothic structure at the time when the present Museum was built,
might have afforded an instructive example of corruptio optimi
pessima, but, in all probability, would have failed in point of utility,
and would most certainly have been an outrage on good taste.
It is hardly possible, however, to suppose that the illustrious
architect of the British Museum was not as conversant with Roman
as with Greek architecture, or that he was wholly unacquainted with
the Romano-Italian works of Wren or Palladio.
As the Roman, unlike the Grecian, and still more unlike the
Pointed, does not mainly depend for its beauty on the lines of its
construction, the facility for legitimately decorating a building of the
shape of the British Museum would have been far greater in the
first-named style. Who shall say that in a gallery of the Roman type
the statues of Roman Emperors, or even the monuments of Assyrian
Kings, are out of place? or that the disjecta membra of a Greek
frieze or pediment would be incongruous with an architecture so
nearly akin to their own? At any rate, we should have been able to
view them with comfort, which is scarcely the case at present; for
the power of lighting would have been increased tenfold.
Opportunities, too, of a more effective system of intramural
ornamentation would have been offered, and many other minor
advantages, conducive to beauty or convenience, secured. Happily,
in the latest addition to the great building—an addition that owes
alike its origin, position, and form of construction to the enterprise
and genius of Panizzi—the ponderous and unsuccessful imitation of
the Greek style has been laid aside, and a light and graceful form of
the Italian order adopted.
This little gem of architecture—this “Margarita”—is the “New
Reading-Room.”
The history and traditions of the Reading-Room at the British
Museum have been so faithfully and minutely recorded by others
that it would be unpardonable to overcrowd our space in this work
with too full a description of them. Since the year 1758, a Reading-
Room has always been attached to the Museum, and the original
59.
apartment was, byall accounts, especially comfortable and even
luxurious. Though small, it seems to have been sufficiently large to
meet the requirements of those early days of its existence. We read
of this pleasant corner room in “the basement story, with one oak
table and twenty chairs,” so small as to be fitted for only twenty
readers, yet it was seldom patronized to the extent of its full
capabilities. In one respect it must have been truly paradisiacal, for
it opened into a delightful garden in which, as tradition has it, the
presiding deity was accustomed to walk, although not in the cool of
the evening. This gentleman, Dr. Templeman, afterwards Secretary
to the Society of Arts, seems, notwithstanding, to have found his
duties sufficiently onerous. After eight months’ incumbency, “he
takes the opportunity of reminding the Committee that he begs to
be relieved from the excessive attendance of six hours’ continuance
each day, for it is more than he is able to bear,” and on March 13,
1760, he records with a chuckle “Last Tuesday, no company coming
to the Reading-Room, Dr. Templeman ventured to go away about 2
o’clock.” Not above twenty readers were admitted monthly during
the first few months, and when the novelty of the institution had
worn off, even this average declined to ten or twelve. It is true that
among these appear the names of Johnson, Gray, Hume and
Blackstone. Nor were the regulations patterns of liberality. The
statutes directed that notice should be given in writing the day
before to the officer in attendance by each person “what book or
manuscript he will be desirous of perusing the following day; which
book or manuscript in such request will be lodged in some
convenient place in the said room, and will from thence be delivered
to him by the officer of the said room.”
From the delightful garden with which it communicated, and its
almost rural surroundings; from the illustrious names of those
ornaments of the silver age of our literature who frequented it, and
in the excellence of whose works one almost seems to discover
traces of quiet ease of study, such as this resort must have afforded,
it is with mingled feelings of regret and envy that we turn to our
own time and lament that the world of readers and writers should
60.
have arrived atsuch monstrous dimensions and such unmanageable
proportions.
One great improvement has recently been effected, the electric
light—the latest application of science to the means of illuminating
large buildings, has been, through the energy of Mr. E. A. Bond, the
present Principal Librarian, most successfully introduced into this
department—gladdening the hearts of students by increasing their
hours of research, and enabling them to seek, with its clear
effulgence, the information which they desire to possess.
Our contemplation of Panizzi’s majestic work has, however, its
dark shade. It reminds us sadly of the bustling and feverish spirit
which pervades our present, literature; of the enormous trade of
bookmaking openly carried on amongst us, and of the lack both of
dignity and polish only too often conspicuous in the best works of
our best modern authors.
The quiet ease and learned leisure gradually died away, readers
and authors of all classes rapidly increased; insignificant as were
their numbers compared with the present multitude, it became
incumbent on the authorities to prepare something more than the
single and comfortable room with its garden; and in the old House
and in its last days, three rooms were set apart for their
accommodation.
To the first Reading-Room in the new building but scant praise can
be accorded. The appointments of it were in no wise satisfactory,
whilst the mode of access was almost mean and decidedly
incommodious. Previously crowded, as a rule, it is on record that,
although constructed to hold only about 120 readers, no less than
200 persons were frequently crammed into it. A larger apartment
was, therefore, urgently called for; and, in 1838, the old room was
closed, another being opened in a different quarter of the building.
This, divided into two compartments, was about one-third larger
than its predecessor, and in its size alone its superiority appears to
have consisted. It is true that, in many respects, its fittings were far
better, that a more convenient entrance was constructed, and that
more attention was paid to the comfort, if not so much of the
61.
readers, at anyrate of certain of the attendant officials, who had
before this been wretchedly housed.
The lighting by means of windows many feet from the ground
was, in both rooms, lamentably deficient. In neither had due care
been taken to provide sufficient ventilation. The admission of fresh
air appears to have been chiefly effected by the simple contrivance
of opening the windows, a practice not always possible, and not
unlikely, at certain seasons of the year to be attended with as much
danger as would have been the retention of foul air. Readers who
remained in the stifling atmosphere of either room for any length of
time were known to complain of a peculiar languor and headache,
and the expressive term Museum Megrims was invented to describe
the uneasy sensations of the too persistent student.
The following is an extract from a private letter, written a short
time since, in which, although the writer confesses that his memory,
at this distance of time, is not as fresh as it might be, a fair
description is given of the second or intermediate Reading-Room, as
it was in the year 1846:—
“What I recollect about it is as follows. It was entered by a sort
of lane going down from Montague-place into what must have
been at one time a stable-yard. You then went up a staircase into
a long, lofty room.... I think there were two great sort of chests of
hot water pipes on each side of the entrance from the staircase.
The entrance divided the room into two unequal parts, and I fancy
that the smaller portion was reserved for readers of MSS. The
catalogue was in a series of presses near the west wall,
commencing about opposite the entrance, and extending north.
The rest of the floor of the room was occupied by reading-tables.
At the north end was a thing like a buttery hatch. From this you
got your books, having previously given your docket describing
them. The walls of the room, for eight or ten feet from the floor,
were crowded with book-cases, except at the entrance and hatch,
and all accessible to readers in the room. I think the room was
lighted by windows above the book-cases, but, as far as I can
recollect, on the east side only. I think the other walls above the
62.
book-cases resting onthe floor of the reading room were also
covered with book-cases, but these not accessible from the
Reading-Room, but from galleries, &c., opening into the other
parts of the building. I recollect nothing about the ventilation, but
I know that after working some time, you found your head very
hot and heavy, and your feet cold. These were the symptoms of
the ‘Museum Megrims,’ about which there was, shortly after my
experience of the place, a deal of chaff in the papers. I fully
sympathized with it at the time.”
The Library of the British Museum continued to increase in
proportion to its rapid influx of readers; and in 1849, the collection,
excluding the masses of MSS., pamphlets, and other unbound works,
amounted to no less than 435,000 volumes.[Q]
What a vast
acquisition must this have been to the public, whether to the
student, the critic, or the occasional lounger!
Q. In 1880, 1,300,000 volumes.
The power of exercising rights of ownership was, however, by no
means commensurate with the legal title to the property: indeed,
owing to lack of room and other conveniences, such rights, in the
case of very many who would otherwise have taken advantage of
them, scarcely extended to liberty of inspecting the outsides of the
volumes; as to the insides, they were literally closed books.
Such a state of affairs made a deep impression on Panizzi, whose
incessant anxiety for, and interest in the Department over which he
presided, added to his repugnance to suffering so much of its
contents to lie idle and unprofitable, caused in him a ceaseless
feeling of regret. He saw and knew, only too well, how alone reform
was to take place—viz., by provision of ample room, and by due
attention too the requirements of readers, at the same time securing
the necessary amount of space in the building for the ever
increasing additions to the Library.
63.
From a veryearly period his attention had been directed to the
requirements of the Reading-Room, and an important improvement
in its service had been introduced by him even before he became
Keeper of Printed Books. Before his time, the press-mark denoting
the place of a book in the Library was not affixed to the Reading-
room copy of the Catalogue, and the reader simply indicated the
books he wished to see, which were then looked out in the Library
copy of the Catalogue by the attendants. This system, which may
have answered very well while the daily average of visitors did not
exceed thirty, became entirely inadequate when they amounted to
two hundred; and Mr. Baber, at Panizzi’s suggestion, directed that
press-marks should be put to the Reading-Room Catalogue, so that
the readers might search it for themselves. This innovation
occasioned an immense saving of time, but was naturally resented
by many to whom time was of less importance than trouble. Sir
Harris Nicolas, an excellent type of the really hard-working reader,
thought differently, and spontaneously addressed a letter to Panizzi,
congratulating him upon his reform. This incident had an amusing
sequel. Sir H. Nicolas saw fit to assail Panizzi’s management in a
series of anonymous articles in the Spectator newspaper, and among
other points censured the very regulation of which he had previously
approved. A correspondence ensued, in the course of which Panizzi
cited the material parts of Sir Harris’s former letter to himself
without marks of quotations, and Sir H. Nicolas mistaking his own
arguments for his antagonist’s, fell foul of them in a fashion which
gave Panizzi the opportunity he sought of withdrawing from further
controversy with “a man endowed with so flexible a judgment, and
so treacherous a memory.”
The improvements introduced by Panizzi into the internal
arrangements of the Old Reading-Room were nevertheless trivial in
comparison with those which he was destined to accomplish by the
construction of a new one.
In 1850, he submitted to the Trustees his first plan for a new
Reading-Room. As this, however, involved the acquisition of land and
the consequent erection of new buildings, it was rejected on account
of the delay and expense which would inevitably follow. The next
64.
plan of reformrelating to the enlargement of the capacities of the
Museum in general was brought forward by the Trustees themselves.
This or a similar scheme had long since been mooted, but was
regularly formulated for the first time in 1848. Their proposal was to
buy up the whole of one portion of the street, on the east side of the
Museum, to build on the site, and to complete that part of the
edifice which faced Russell Square with a grand façade. This
scheme, the cost of which was calculated to amount to only about a
quarter of a million, did not receive the favourable consideration of
Government. There is much reason to be thankful that the infliction
of a second grand façade has been spared us. The first sketch for
the New Reading-Room was drawn by Panizzi himself on April 18,
1852, and shown to Mr. Winter Jones on the same day.
On May 5 following, Panizzi sent in a report setting forth at large,
and in forcible terms, the discomfort and inconvenience existing in
his own Department of the Institution, and recommending, as a
remedy, the construction of the new building in the inner
quadrangle. It will not be amiss to give this report in extenso, as it
will present something more than a sketch of the work intended—
omitting, of course, all minor and unimportant details.
“May 5th, 1852.
“Mr. Panizzi has the honour to submit the following statement
and suggestions to the Trustees, in the hope that the pressing
importance of the subject will be deemed a sufficient apology for
thus urging it once more on their early and favourable
consideration.”
“It is a known and admitted fact that there is no more available
space in which to arrange books in a proper and suitable manner
in the Printed Book Department; that the collection is, therefore,
falling, and will continue to fall, into arrears, the consequences of
which are also too well known to be here further insisted upon;
that want of accommodation in the Reading-Rooms, not only for
readers, but for books of reference and for catalogues, prevents
many persons from making use of the collection of printed books,
whilst actual readers pursue their researches and studies amidst
65.
many and variousdiscomforts, all owing to the crowded state of
those rooms.”
“Supposing that it were at once determined to remove to
suitable buildings, to be erected for the purpose, some portion of
any of the collections now forming part of the British Museum, or
that in order to provide room for books an enlargement were
forthwith decided upon of the present Museum building, as Mr.
Panizzi had the honour to suggest long ago, it is manifest that
many years must elapse before the advantages to be derived from
either alternative would be felt. The additions which would in the
interval be made to other collections would greatly curtail the
advantages ultimately proposed for the readers, and for the
department of Printed Books, both of which would in the
meanwhile continue to labour under the present and eventual
disadvantages already pointed out. Under any circumstances,
therefore, and whatever be the determination adopted as to
provision being eventually made for the general wants of the
British Museum, the claims of the readers require the immediate
and special consideration of the Trustees.”
“With respect, moreover, to this important part of the subject—
the accommodation for readers—it seems to Mr. Panizzi that none
of the existing parts of the British Museum offer such comforts,
conveniences, and advantages as appear to him absolutely
required for a proper Reading-room of such an institution—a
circumstance to which he particularly begs to direct the attention
of the Trustees. Having long held this opinion, Mr. Panizzi
suggested from the first, and has often suggested since, whenever
the question of additions to the present building has been brought
under discussion, that a new Reading-Room should be erected;
and this suggestion he is more and more convinced must be acted
upon, even though portions of the collections now contained in
the British Museum were removed from it, and the space which
they occupy were destined to receive printed books,—a
destination which, it may be incidentally remarked, will be
convenient only with respect to certain parts of the building.”
66.
“Mr. Panizzi thinksthat the inconveniences now felt can be
completely remedied as well as all eventual difficulties removed in
a short time, and at a comparatively small cost, by the erection of
a suitable building in the inner quadrangle, which is at present
useless.... The building now suggested consists of an outer wall,
not higher than the sill of the windows of the quadrangle—about
18 feet. This wall is intended only to protect the contents of the
building, not to support it. It ought to be supported by iron
columns, and proper iron frames and girders. It would be for the
Trustees to consider of what material the rest of the building
should consist, and whether the whole or only parts of its roof
should be of glass; of course this may partly depend on the
quantity of light required.”
“All the partitions of the several portions (marked on the plan
accompanying the report), with the exception of those intended to
separate closets, washing-rooms, &c., &c., from the rest of the
building, should be formed by book-cases of uniform size, holding
books on both sides.”
“Such fittings and furniture would then be of use were it
considered expedient at some future period to remove the
proposed building altogether, and provide a Reading-Room
elsewhere.”
“It is intended that a space of four feet should be left between
the outside of the areas of the building now existing and the outer
wall of the one suggested. Neither the light, nor even the
ventilation of the rooms underground would be interfered with, at
least not to such an extent as to render it doubtful whether a
slight inconvenience possibly accruing to the use of cellars ought
to outweigh the manifest advantages which must evidently result
to the readers and Library from the adoption of the proposed
scheme.”
“By the adoption of that scheme a Reading-Room would be
provided capable of containing upwards of 560 readers at one and
the same time, all comfortably seated. They might have at their
free disposal 25,000 volumes of works of reference. The
superintendence, which is now peculiarly difficult (in consequence
67.
of which mutilationsand thefts have, of late, become not
uncommon), would then be as easy and as effective as possible.
The space assigned to books will, on a moderate calculation,
afford room for 400,000 volumes. There will, moreover, be ample
accommodation for Officers, Assistants, Transcribers, and
Attendants, to carry on their various duties in a more comfortable
as well as more economical manner than is now the case.
Requisite conveniences would also be provided for frequenters of
the Reading-Room. The whole building is capable of being as well
lighted, ventilated, and warmed, as can possibly be wished.”
“Mr. Panizzi having but a very limited knowledge of practical
architecture, and of the cost of building, cannot take upon himself
to give an estimate of the expense. He would, however, be greatly
surprised if the building now suggested, completely fitted up, were
to cost more than £50,000.”[R]
R. It so happened that Mr. Charles Cannon, one of the Assistants
in the Library, knew how to draw a plan in the proper manner;
Panizzi, therefore, employed him to put the rough sketch into such a
shape as to be clearly understood by the Trustees. The plans were
accordingly drawn and laid before the Board without any assistance
from outside the Museum. Panizzi, in after time, used frequently to
refer to this and some similar services as of great advantage to him.
A few weeks after, Panizzi wrote to Lord Rutherfurd:—
“May 27, 1852.
“I have submitted a plan of building in the Quadrangle to the
Trustees, which has taken with them all amazingly, and will, no
doubt, be executed, for even the architect is pleased with it. He
will have nothing on earth to do but carry into execution my ideas;
he has not been able to suggest one single improvement. He tried
yesterday to draw a plan somewhat different from mine, but he
was obliged to admit it was a failure, and will have to execute
68.
purely and simplymy own plan. I shall save the country many and
many thousand pounds, and do wonders for readers and library.”
And in December of the same year, he addressed a letter to
Hallam, the answer to which we give:—
“December 2, 1852.
“My dear Sir,
I have just received your valuable letter on the proposed
application to the Treasury for an addition to the building at the
Museum. Your plan appears to me the only one which will meet
the emergency, and also the only one which, on the score of
expense, the Government are at all likely to entertain. But as the
Trustees have already laid both this and the proposed building to
the east before the Treasury, they cannot avoid giving them the
choice.
I much fear that it will not be possible for me to attend with the
rest of the deputation—that is, I am engaged at a distance from
London both next and the following week. I will do, however, all I
can to be present. But I do not suppose the Treasury will have
time before the adjournment of Parliament.
You have, I dare say, called on the Trustees forming the
deputation. I will, however, and as you permit me, transmit your
letter to Mr. Macaulay. I think that Mr. Goulburn is as likely to have
weight as any one, but I am sure you have been in
communication with him.
I should not be surprised at the removal of Elgin and other
marbles to the new National Gallery, but, of course, that part of
the Museum could not be converted into a library without much
inconvenience and expense.
Yours, &c., &c.,
H. Hallam.”
In June, 1852, there appeared in the Quarterly Review, an
interesting article on the British Museum, from the pen of no less a
personage than the Right Honourable Wilson Croker himself. On the
69.
face of thisarticle the writer shows himself a thorough advocate of
the merits of the Reading-Room then in existence. Denying the
credibility, save in the case of a few individuals of abnormally weak
and susceptible brains, of the traditional Museum headache, to
which so many, and amongst them Thomas Carlyle, had from
personal experience, borne witness; he proceeds to charge the room
with the very defects on which the majority of its frequenters were
in the constant habit of dilating.
Amongst other works at the head of this article, is one entitled
Observations on the British Museum, National Gallery and National
Record Office, with suggestions for their improvement, by James
Fergusson. London, 1849.
In this work Mr. Fergusson, anticipating Panizzi’s purpose and
choice of site, proposed to construct in the inner quadrangle of the
British Museum, a Reading-Room about 175 feet by 105 feet. The
writer of the article gives Panizzi no credit for the soundness of his
scheme, and its adaptability to the requirements of the occasion, but
attributes his recommendations simply to his zeal for the efficiency
of his Department, and wonders how Mr. Smirke could have lent
these ideas his professional concurrence. With Mr. Fergusson’s
project he disagrees as likely to spoil the effect of the inner court, as
touching the grandeur and impressiveness in its naked severity; in
this he assumes that there is a peculiar merit in the eyes of those
who have seen it, though it must be granted that, to the few who
had done so, this peculiar merit was not so clearly visible. He
proposes as an improvement to cover in the whole court with a glass
roof, after the fashion of the original Crystal Palace of 1851, in Hyde
Park, and to use the grand room thus obtained as a receptacle for
antiquities, sculpture, etc., with other details of improvement, which,
as they were never carried out, do not require to be particularized in
these pages.
This was, in fact, the scheme submitted in 1853 to the Trustees of
the British Museum by Sir Charles Barry. The report made by the
Trustees respecting this plan is, as may be supposed, too long to
quote verbatim, but is, substantially, as follows:—
70.
That Sir C.Barry’s plan, so far as it related to increased
accommodation in the British Museum, was absolutely impracticable.
That it betrayed great ignorance of the wants of the Museum, and
indifference as to the safe-keeping of some of its most valuable
contents.
That the large skylight covering the 75,200 square feet of
quadrangle would darken every window therein, and, in many
seasons, obscure the whole space.
That the communications between Departments would be more
inconvenient than at present, and that the new Reading-Room,
proposed by Sir C. Barry, would be deficient in light, air, and
accommodation, and be attended by increased expense and delay in
the procuring of books.
That the supervision of the Reading-Room would be less effective,
and risk of loss incurred.
That access to parts of the Library would have to be through the
Reading-Room; the Cataloguers would be separated by a great
distance from their books, and the Catalogues themselves
suspended during the progress of the works.
That the Exhibition of Prints and Drawings would be in like manner
affected; that no additional space is provided for printed books; and
that general displacement and confusion in this Department would
be the result of the scheme.
That Sir C. Barry’s statement—viz., that the space of only one year
is sufficient for the completion of the work is without foundation.
That the plan of removal of the greater objects of antiquity from
their present site to Sir C. Barry’s new hall would be attended with
extraordinary labour and expense, and that their position would be
no more conspicuous than before.
That mummies, metals, pottery, and objects having delicacy of
colour would run risk of injury.
That ventilation would be most difficult, and the approach to the
area highly objectionable.
Lastly, that the sudden fall of any large portion of the enormous
glass roof might destroy some most valuable object or objects of art.
71.
Thus the Trusteesdismissed the project of Sir C. Barry, and
evinced an inclination to cling to their own design, notwithstanding
its rejection by the Government.
It was not long, however, before they saw the expediency of
adopting Panizzi’s views; and in a letter to Lord Rutherfurd, the latter
speaks hopefully, first of his plan, and afterwards of his final
anticipation of the success of his scheme.
“B. M., May 16, 1854.
“... Lord Aberdeen and also Mr. Gladstone, but not Lord
Lansdowne, have been to look at the model, and both have
agreed that the building should be raised as proposed. The
Trustees on Saturday were unanimously of opinion that my
suggestion was right, and have written for the Treasury’s
approbation, which, after what I mention just before, will, no
doubt, be given, and the thing done.”
The foundations of the New Reading-Room were commenced in
May, and the first brick was laid in September, 1854.
In a work of such a peculiar nature and vast importance, it would
be impossible to avoid the constant recurrence of obstacles and
difficulties; and a third letter from Panizzi to Lord Rutherfurd proves
conclusively that these were caused by circumstances quite
unconnected with the actual building operations. This we subjoin:—
“B. M., October 13th, 1854.
“... The building is going on tolerably. It will be used as a source
of great annoyance to me, particularly by our friend X——, who is
here for my sins. That building will cause yet to us all—I mean the
architect, builder, and myself—great anxiety and trouble;
numberless points are to be settled, and they are knotty ones.
Then I have to agree about it with some Trustees, who evidently
have no clear conception of what it is to be, and make
suggestions and objections which they would not make if they
understood what that building is, and how it will be when
finished.”
72.
As time progressed,it became necessary to encounter and settle
the question of internal decoration—a question, in all countries, of
extreme delicacy and taste, and, in our own climate, especially in the
atmosphere of London, most difficult of solution. The New Reading-
Room had no exterior, and those who have seen the interior in its
present finished state may readily imagine how bald and
unsatisfactory an appearance it would have presented had even a
less lavish use been made of paint and gilding in its ornamentation.
From a letter of Mr. Smirke’s to Panizzi it would appear that it
required some effort to obtain for the building the least amount of
gilding necessary.
Here, moreover, the equally delicate question of money arose, for
Panizzi’s modest estimate of £50,000 had already been greatly
exceeded in the mere construction of the room, without any of its
numerous and much needed accessories.
That this was so, may be seen from Mr. Smirke’s. letter:—
“Leicester, October 29, 1856.
“My dear Sir,
... I shall not let the subject of gilding the dome drop without
an effort, and propose to submit it formally to the Trustees at their
next meeting. If four or five thousand pounds were spent in
gilding some of the mouldings of the dome an effect would be
produced that could hardly be imagined; it would illuminate, as it
were, the whole building, and beautify it without detracting from
its simplicity and grandeur.
The £100,000 which the building costs will have been entirely
spent in objects of utility; surely four or five thousand pounds will
be a small percentage on that sum for ornament. In what public
building in London has the ratio of ornament to utility been as
four-and-a-half to a hundred?
Yours, &c., &c.,
Sydney Smirke.”
Most happily the authorities entertained no parsimonious ideas in
the matter; and a letter from the Secretary to the Treasury (the
73.
Right Honourable JamesWilson) displays a liberal and enlightened
view of the necessity of combining in the new room beauty with
utility, although his opinions as regards the British Museum in
general, may reasonably be questioned.
This letter will also be read with interest; therefore, although
lengthy, no apology is needed for its insertion:—
“Treasury Chambers,
June 3, 1856.
“My dear Panizzi,
I have read your note of the 28th of May with much interest.
I have since sent you an official letter sanctioning the gilding of
the dome. That, however, need not be considered to preclude the
consideration of the painting of the ceiling, should the Trustees be
disposed to entertain it. As the matter appears to me it is thus:—
The British Museum is certainly the best public building we have of
modern times, and is one of the few things we have to be proud
of. The Reading Hall will be one of the finest rooms and the Dome
one of the grandest structures of its kind, not to say in England,
but, so far as I know, in Europe. These circumstances certainly
point to the strong motive we should have to complete it in the
best style of which it is capable. Adverting to the fact that the
whole of the sides of that enormous circle will be fitted up with
dense rows of books, with a mass of gilded and varied coloured
backs, a plain white ceiling would be tame and cold in the
extreme, and I think the choice must lie between rich gilding, or
less gilding and painting. Against the latter I think the plan of the
interior of the dome is a serious drawback, because, being fitted in
compartments, any grand subject to spread over the whole of the
dome is impossible, and if painting is resorted to at all, it will
obviously be necessary to confine it to some mode of filling the
panels only, and which, moreover, excepting the ovals, are of a
bad shape; for I think it is obvious that any style that may be
adopted should be rich, grave, and even severe, looking to the
purpose for which the building is intended.
74.
However, it willremain for the Trustees, if they think right, to
consider this subject deliberately after they may be in possession
of any information or advice which they think proper to seek.
Expressing only my own private views at this stage, I should on
public grounds think that it would be well worth consideration, in
order to perfect so grand a work, whether an additional sum of
money should not be expended, thrown over two or three years, if
a great and decided effect can be attained by painting in place of
gilding.
Yours, &c., &c.,
James Wilson.”
Notwithstanding the suggestions alluded to in this letter, to the
great credit of the architect’s taste and judgment, the Dome was
“fitted in compartments,” and no opportunity was given for “any
grand subject to spread over the whole of the Dome.” Had this
project been seriously entertained, it is assuredly more than doubtful
whether an artist could have been found of sufficient capacity to
undertake it with any probability of success.
There is no doubt whatever that the surface of the Dome,
arranged and coloured as it fortunately has been, presents a far
better effect than it would have done had it been surrendered to any
such decoration as a grand subject painting extending over the
whole of it.
But à propos of decoration, Panizzi’s letter, written just one year
before, and addressed to a Trustee of the British Museum, Mr. W. R.
Hamilton, will also testify to his judgment and taste in architecture:
—
“B. M., June 11, 1855.
“My dear Sir,
I had no idea that my objections to showing the ribs in the
interior of the cupola, and to the form of the windows in it, would
ever have become the subject of discussion. I stated these
objections to Mr. Smirke and Mr. Fielder, and as the former was
responsible, he was perfectly right in persisting in his views if he
75.
thought me wrong;and had that been done privately, I should
have allowed the matter to pass in silence. But as my objections
have been formally canvassed and summarily dismissed—as I am
likely to get more blame for the new building than I am fairly
entitled to, and as I believe my objections to have more in them
than others allow. I think it right to put on record these
objections, being firmly convinced that the time will come when
the not having given them more consideration will be a source of
regret. If I write to you, instead of making a report to the
Trustees, it is because I do not want to say officially more than I
did on Saturday last to the Board, because Mr. Smirke appealed to
you originally as a friend, and because your unwearied kindness to
me, makes me confident that you will, on the same ground,
forgive my relieving my mind to you by repeating my objections.
1st.—As to the cupola: I object to its showing the ribs on which
it rests. I say that this is unprecedented, that it will have a bad
effect, that it renders it impossible ever to ornament it, and that
the oval frames which are introduced about half way, in the spaces
between the ribs are meaningless, not in keeping with the
building. Far from showing how they are constructed, it is their
being as if it were suspended in the air that gives the cupolas their
grace, and renders them striking objects. From them comes the
light as from the sky, of which they represent the form as much as
it is possible for mortals to imitate nature.
To show the ribs in a cupola is the same as if we were to show
in their nakedness the beams and girders supporting a floor or a
roof.
It is an utter mistake to say that the ribs (costoloni) of St.
Peter’s are seen in the great temple itself. The cupola which is
seen inside is a second cupola, quite smooth, built on purpose to
conceal the supports and ribs of the outer cupola, and these are
seen only by persons who go to the top of that superb building,
ascending between the two cupolas, the outer and inner one.
2nd.—As to the windows: Has any one ever seen such windows
in a building, the whole character and style of which is so totally
different from them in character and style? What will the effect be
76.
after having passedthrough the magnificent entrance of the
Museum, to enter a room lighted not only by arched windows, but
by windows with such ornaments in their upper portion, and then
divided lengthways by a slender upright into two very narrow and
very long arches, the proportions and frame of which are so
peculiar, and so much at variance with everything else in the
whole Museum? All the doors in the very room which is to be
lighted by those windows are of simple and rectangular form. Will
not this discordance produce a most disagreeable effect?
I feel, perhaps, too strongly on the subject, and I most sincerely
wish I may be mistaken, but I cannot, fearing strongly that this
building, which I cherished the hope would prove as handsome as
it will be useful, will thus be rendered subject to animadversion. I
write under this conviction—under this conviction I spoke last
Saturday to the Trustees. I shall claim no merit on the success; I
must disclaim the responsibility of failure on these two points.
Yours, &c., &c.,
A. Panizzi.”
Although, during the progress of the building, Panizzi had frequent
occasion to complain of the short-comings of the workmen employed
thereon, yet, the new Reading-Room was entirely finished by the
end of April, 1857, in the laudably short space of less than three
years. Much credit was due to the great energy of the contractor, Mr.
Fielder, for whom Panizzi entertained the highest esteem, and who
was untiring in his earnest endeavours in carrying out the plans of
the architect; and on the 2nd of May in the same year, the building
was duly opened, a grand breakfast being given at the British
Museum in honour of the occasion: to this the Prince Consort had
been invited by Panizzi, and had accepted the invitation, but was
prevented from attending by an unforeseen occurrence.
The following letter accounts for His Royal Highness’s absence
from the ceremony:—
“Piccadilly,
April 30th, 1857.
77.
“My dear Sir,
Asthe death of H.R.H. the Duchess of Gloucester will
inevitably prevent H.R.H. Prince Albert’s attending at the opening
of the Reading Room on Saturday next, you will oblige me by
stating whether or not the ceremony will still take place or be
postponed to a future day.
Yours faithfully,
Cadogan.”
A. Panizzi, Esq.
The postponement of the opening of the Room was, however,
simply impossible, and amongst other notabilities present were the
following:—
The Archbishop of Canterbury (Sumner), Earl and Countess of
Clarendon, Earl Cawdor, Earl of Aberdeen, the Speaker of the House
of Commons, Sir Charles and Lady Eastlake, Lady Cranworth, Baron
Marochetti, the Dean of St. Paul’s and Mrs. Milman, Professor Owen,
Lord Panmure, Lord and Lady John Russell, Sir George and Lady
Grey, Earl Spencer, the Bishop of London and Mrs. Tait, and the
Duke of Somerset.
All the officers were also present, with the exception of Sir
Frederick Madden (Keeper of the MSS.), but Mr. E. A. Bond, then
Assistant-Keeper, represented him. One of the letters replying to
Panizzi’s invitation to this breakfast may be given here, to show the
estimate formed by one whose judgment may safely be respected,
of the Librarian’s own share in the building of the new Reading-
Room:—
“24, Bedford Square,
21st April, 1857.
“Dear Panizzi,
I shall have very great pleasure in witnessing the
Inauguration of the New Reading-Room, not only as an
observance marking an epoch in the advance of the Museum, but
as tending by new allurements of splendor and convenience to
78.
increase the resortof every class of society to it, as well for study
as for investigations.
Without lessening the merits of Mr. Smirke and Mr. Fielder in
carrying out its plans, the contriver and real architect throughout
has been Antonio Panizzi.
Your exertions have brought increased prosperity to the greatest
of our Institutions.
Yours ever sincerely,
Henry Ellis.”
Another letter, by the same hand, bears testimony to the success
of the entertainment itself:—
“24, Bedford Square,
4th May, 1857.
“Dear Panizzi,
I must not resist the pleasure I feel in expressing to you my
congratulations on the successful opening of our new Reading-
Room, on Saturday, although H.R.H. Prince Albert, contrary to his
own intention, was prevented by the Duchess of Gloucester’s
demise, from honouring it with his presence.
You see I still venture to say our Reading-Room, for although
officially defunct, my heart and mind remain attached to the
welfare of the place, and with it a fancied identity still hovering
over me, and I must say not a little encouraged by the prosperity
and increasing magnificence of the place I have so long loved.
Everybody who came on Saturday was delighted with your kind
reception, and nothing could be a more complete adaptation to
the circuit which surrounded it than your entertainment, alike
conspicuous for the abundance, and the refined taste in the
selection and preparation of its viands.
The ladies, I can assure you, were not a little pleased with the
compliment of the bouquets. The only regret I felt myself was in
the consideration of the fatigue you must have undergone in your
own exertions to prepare for making so choice a company as you
assembled, so completely pleased and happy, not omitting your
79.
toil also inthe reception; but in both points I am quite sure you
were thoroughly successful.
Accept my own thanks for your kindness to me personally on
this eventful occasion, and with my best wishes that you may long
live to continue your exertions for the benefit of the Museum, and
that you may be backed by the liberality of successive Chancellors
of the Exchequer, such as Sir George Cornewall Lewis.
Yours, &c., &c.
Henry Ellis.”
The reply to this conveys a graceful tribute to Sir Henry Ellis’s own
deserts:—
“B. M., May 4th, 1857.
“My dear Sir Henry,
I assure you that I cannot find words to express adequately
the feelings with which I perused your most kind letter; believe
me, although I shall not say much, I feel deeply your kindness.
This great institution which has grown under your eyes, and
increased from small beginnings to its present magnitude by your
paternal care and unremitting exertions for the space of 56 years,
must always occupy a high place in your heart. I can only express
the hope that I may not attempt in vain to follow your footsteps in
the responsible situation which I fill, and that the comparison may
not be so much to my disadvantage, when in future times the
results of your administration are compared with mine.
Yours, &c., &c.,
A. Panizzi.”
Whatever may have been Panizzi’s claim to be considered the
“Architect,” as well as the originator of the design for the New
Reading-Room, his reputation for having performed so great a
service was not altogether unassailed. On the completion of his
important work, a vigorous attack, more formidable perhaps in
appearance than in reality, was directed from a somewhat
unexpected quarter against both the originality of the plan and the
80.
bonâ fides ofthe author. Hæc feci monimenta meum tulit alter
honorem, sic vos non vobis, etc. Such were the words of William
Hosking, Professor of Architecture, King’s College, London.
This gentleman had, some years before, prepared a design for
additional buildings to the British Museum, and these he proposed to
place in the quadrangle, on the site afterwards fixed on by Panizzi
for his Reading-Room. In 1848 Mr. Hosking submitted his plan to
Lord Ellesmere’s Museum Commission, and afterwards, in 1849, to
the Trustees.
Great though its merits may have been, it unfortunately met with
approbation from neither. Mr. Hosking now made a charge against
Panizzi of having pirated not only his choice of the position, but also
the form of the building, which he alleges has been colourably
altered so as to pass for Panizzi’s own.
The earlier design appeared in the Builder of June 22nd, 1850. We
mention this in order that the reader may have an opportunity of
comparing it with the latter and judge for himself as to which
possesses the greater merit and originality.
Mr. Hosking’s building, it must in justice be allowed, would have
been of itself extremely ornamental, and, with equal justice, it may
be said would have been considerably less useful than ornamental.
Although the superiority of past ages has reduced the art of the
present day to imitation, combined, in comparatively rare cases, with
happy adaptation, it is, nevertheless, doubtful how far any architect
who should make an actual copy of so well-known a building as the
Pantheon at Rome, and set it up in one of the most conspicuous
positions in London, would be justified in so doing, or would merit
popular approbation, even though he acted with the same “bonâ
fides” as Mr. Hosking.
Not to enter, however, on this higher question, it is obvious that
there were valid reasons why the Trustees should have rejected this
scheme. They may be excused for not, at first sight, perceiving the
necessity or utility of raising no less a structure than the dome of the
Pantheon over a portion of the statuary of the British Museum.
Another project in Mr. Hosking’s plan (not mentioned in the extract
from the Builder), whereby he proposed to cut off a portion of the
81.
King’s Library fora new Reading-Room, was scarcely worthy of
second consideration.
On the completion of Panizzi’s work Mr. Hosking, probably wroth at
his own ill success, and aggrieved at the favour lavished on the
other, proceeded to open his attack on the alleged pirate, firing his
first shot direct at that individual:—
“Athenæum,
30th April, 1857.
“Sir,
As the credit of suggesting the site and originating the work
recently built in the quadrangular court of the British Museum is
popularly assigned to you, whilst I claim to have devised and
made known the scheme in the first instance, I hope you will hold
me excused for asking you to be so good as to give me the means
of placing the matter rightly before the public by informing me
whether the project to the same effect which I laid before Lord
Ellesmere’s Commission in 1848, and communicated to the
Trustees of the Museum in 1849, had been seen by you before
you devised the present work.
My plan, with an abstract of the description which accompanied
it, was, after the drawing which presented it came back from the
Trustees, published in the Builder, as you know; for I sent you a
copy of the print, and that was two years before the scheme lately
carried out was made known to the public.
I am, yours, &c.,
William Hosking.”
To this Panizzi lost no time in replying:—
“British Museum,
May 1st, 1857.
“Sir,
I have to acknowledge the receipt of your letter of
yesterday’s date requesting me to inform you whether a certain
project of yours of building in the inner quadrangle of the
82.
Museum, and which,as you state, you laid before Lord Ellesmere’s
Commission in 1848, and communicated to the Trustees in 1849
(as I have just now ascertained for the first time) had been seen
by me before I designed the present work, that is the Reading-
Room and Libraries recently built on that site.
I beg in answer to state that I had never seen your project or
the scheme to which you allude before I suggested the work
which is now completed.
I saw, when published, in the Builder, a separately printed copy
of it which was sent to me, I suppose by you, without any
accompanying note or letter, long after the works for carrying out
my suggestion had been commenced.
The concluding part of your letter must mean, of course, that
that publication took place two years before the scheme lately
carried out had been made known, not that you sent me the copy
of your plan two years before my suggestion had been made
known to the public. It is desirable that there should be no
ambiguity on this point.
Permit me to add that the schemes for covering over, or building
in the quadrangle were numberless. My colleague, Mr. Hawkins,
had often suggested, long before 1850 a communication by
corridors across the quadrangle, from the front entrance to the
several departments, with a central building for the Trustees’
Meeting-Room and officers standing round it.
You suggested a great Central Hall with one floor of 120 feet in
diameter, two inscribing octagonal corridors presenting niches to
receive statues, and extensive wall surface fit to receive reliefs and
inscriptions with connecting galleries, etc.
The Hall was intended by you for the exhibition of the finer and
more important works of sculpture, besides a quadrilateral hall to
contain ample staircases, etc.
I, on the other hand, have suggested and have seen built a
circular Reading-Room, 140 feet in diameter, with amazing shelf
room for books of a totally novel construction. No central hall, no
quadrilateral hall nor ample staircases, no space, niches, or wall-
surface for the exhibition of works of sculpture, statues, or
83.
inscriptions as yousuggested. How your scheme can be
designated as being to the same effect as mine, and how, had I
seen it, it can take the merit of originality from mine, others will
say.
Yours was the scheme of an architect; thick walls, ample
staircases, etc. Mine the humble suggestion of a Librarian, who
wanted to find, at a small cost of time, space, and money, ample
room for books and comfortable accommodation for readers,
neither of which purposes you contemplated.
Yours, &c., &c.,
A. Panizzi.”
William Hosking, Esq.
Mr. Hosking also attempted to extract information as to the alleged
piracy from the architect of the new Reading-Room.
“Athenæum, 30th April, 1857
“My dear Sir,
Will you be so kind as to tell me whether you ever saw the
drawing, or any copy of it, of my project for building a modified
copy of the Pantheon at Rome within the enclosed quadrangle of
the British Museum, before the scheme of the analogous work
recently executed under your directions at the same place, and
attributed to Mr. Panizzi, was communicated to you?
Yours &c., &c.,
William Hosking.”
To Sydney Smirke, Esq.
How much success Mr. Hosking attained in this attempt will be
seen on a perusal of Mr. Smirke’s answer:—
“May 2, 1857.
“Dear Sir,
I beg to acknowledge the receipt of your letter of yesterday.
I recollect seeing your plans, or rather I had a glance over them at
a meeting of the Trustees, shortly after you sent them.
84.
When, long subsequently,Mr. Panizzi showed me his sketch for
a plan of a New Reading-Room, I confess it did not remind me of
yours, the purposes of the two plans and the treatment and
construction altogether were so different.
The idea of building over the quadrangle is of very early date, it
was certainly mooted in the Museum fifteen years ago.
Yours, &c., &c.,
Sydney Smirke.
It may as well be mentioned in this place, that as Panizzi in his
letter already quoted, disclaims originality in choosing the position of
his New Room, so Mr. Hosking, in a subsequent letter, dated 4th of
May, 1857, to Mr. Smirke, admits that “It is quite 15 years since Mr.
Hawkins proposed to build corridors across it (the quadrangle) to
facilitate intercommunication.” Neither of the opposing parties,
however, takes note of the fact that, as early as 1836-7, Mr. Thomas
Watts, the late Keeper of the Department of Printed Books in the
British Museum, had actually suggested the construction of a
Reading-Room in the very spot of Panizzi’s selection.
He had written in the Mechanics Magazine for March 11th, 1837,
commenting upon the waste of space occasioned by the empty
quadrangle, “A Reading-Room, of ample dimensions, might have
stood in the centre, and been surrounded on all four sides by
galleries for the books, communicating with each other and lighted
from the top.” A little further on, however, he half retracts his own
suggestion, remarking, “So much has been expended on the great
quadrangle, that it might seem barbarous to propose filling up the
square, as ought to have been originally done.” The grand
conception of the cupola, by which architectural effect was to be
taken away only to be restored with interest, had not dawned upon
him; and, in fact, the reverence expressed by so many for the
architecture of the inner court would have been more intelligible, if
the court had been more accessible.
As regards originality, therefore, in this portion of the respective
designs there can be no possible ground of discussion.
85.
Still Mr. Hoskingcould not be convinced that, in other points, his
design was not feloniously used and himself consequently wronged
by Panizzi, and so published a long pamphlet dwelling, amongst
other things, on the alleged fact that the latter must have seen the
copy of the Builder which he sent to him in May, 1852.
To this allegation Panizzi gave a categorical denial; but a short
statement, dated May 18th, 1858, in answer to the longer pamphlet,
will show sufficiently for our present purpose the line of attack
adopted by his opponent, and his own method of defence.
Remarks on Mr. Hosking’s Claims to the Design of the British
Museum New Building.
1st.—Mr. Hosking having suggested “a modified copy of the
Pantheon,” a massive building for the exhibition of sculpture, with
no accommodation for readers or books, now claims the merit of
the structure which I suggested, and which has been built, was
intended, and is used, solely, for readers and for books. His
scheme included quadrilateral halls, central halls, ample staircases,
corridors, &c., all of the usual materials; the building which I
suggested and have seen carried out, is original in plan, use of
materials, arrangement, and construction. Mr. Hosking says that it
is not the plan of the Pantheon that he claims, “but the application
of its form, disposition, and proportions;” and the plagiarism he
alleges, is the application of such his device, with certain of his
combinations, contrary to honour and good faith, not only on my
part, but also on that of the Trustees. It will be obvious to any one
who will inspect the building, that neither the form, nor the
disposition, nor the proportions of the Pantheon, have been
adopted in the new building at the Museum. There is no
resemblance whatever between the architectural features of the
two schemes. Mr. Hosking proposed a reduced Pantheon,—a
cupola 120 feet in height, and the same in diameter. The cupola of
the Reading-Room is 140 feet in diameter, and 106 feet in height.
Are these two conceptions alike?
86.
2nd.—Mr. Hosking saysthat I am a “pirate,” having taken from
his scheme my suggestions for building the Reading-Room and
surrounding Libraries; which suggestions I made on the 5th of
May, 1852. Instead of using hard words and dealing in
generalities, it would be better that Mr. Hosking should declare
specifically which of his suggestions have been adopted in the
new building. I affirm none, not even the most trifling. Indeed
such an appropriation was impossible, as I am going to prove. Mr.
Hosking states that, on the 14th of June, 1852, he sent me a copy
of that portion of the Builder, dated June 22, 1850, in which his
scheme of building was set forth. I distinctly aver that I did not
receive that portion of the Builder on the 14th of June, 1852, nor
in any part of 1852 or 1853, and that I never knew of Mr.
Hosking’s plan till the latter part of 1854, when I did see, for the
first time, the extract from the Builder of the 22nd of June, 1850.
3rd.—Long after the works for the new building were begun, I
found in my study at the British Museum (not at my private
residence), a paper merely addressed to me, in which was
carelessly wrapped up a copy of what professed to be an extract
from that number of the Builder. I showed it at once to Mr. Jones
and to Mr. Fielder, as a document just received, and wondering
whence it came. I learned then, for the first time, from Mr. Fielder,
who Mr. Hosking was.[S]
The moment I received Mr. Hosking’s
letter of the 30th of April, 1857, informing me that the extract
from the Builder had been sent by him, I showed it to both those
gentlemen, who recollected, immediately, my having shown them
that extract, as I have just stated. The works for the new building
were begun late in March, 1854, the contract was made some
time after: I became acquainted with Mr. Fielder after the contract
was made.
4th.—Mr. Hosking admits that I could not have received his
paper in May, 1852, when I put forward my “first design,” but is
positive that I had received it when I put forward “the other, early
in 1854.” My answer is, that I never put forward any design
whatever after May, 1852. I have freely made suggestions to Mr.
Smirke; he has most unreservedly consulted me from May, 1852,
87.
to the presentday; but I have never made any other design than
that shown by the two plans of May, 1852, accompanying my
report of the 5th of that month, and printed by order of the House
of Commons on the 30th of that same month.
5th.—Mr. Hosking asserts that if the cupola rested merely on its
iron supports (which it does, in fact, as any one may see) it would
tumble down; and, as if to show that he has not the most distant
conception of what the Museum Reading-Room ought to be, he
actually proposes that the King’s Library should be used as such.
6th.—If the new Reading-Room and Libraries at the British
Museum have any merit, they have, by universal consent, that of
being in every way adapted to their respective purposes. The
fittings, the tables, the warming, the lighting, the peculiar system
of ventilation applied, the multifarious, minute arrangements
adopted in order to economise space and for the accommodation
and comfort of readers, as well as for the ready access to books,
are certainly not less important than the building of which they
form an integral and vital part, but upon none of which has Mr.
Hosking put forth his views. His suggestion of placing works of art
in a room 120 feet in diameter, lighted from the top of a dome at
a height of 120 feet, speaks for itself.
7th.—On the publication of my plans by order of the House of
Commons, in June, 1852, they were much canvassed in the public
press, and severely animadverted upon in the Quarterly Review.
The possibility of their success was long denied, and Mr. Hosking
was silent. That success is now established, and Mr. Hosking
claims the merit as his own.
A. Panizzi.
B. M., May 18, 1858.
S. The name of Mr. Hosking occurs repeatedly in the printed
document here referred to as that of the author of the plan therein
put forth.
88.
Previously to theissue of this statement, Panizzi had asked for,
and obtained, from the architect his opinion on the dissimilarity
between the two plans.
“Grosvenor Street,
April 8th, 1858.
“Dear Sir,
I feel no hesitation in complying with your request, and
stating that the idea of a circular Reading-Room with surrounding
Library, and with the divisions formed wholly of book-cases, was
perfectly original and entirely your own, and totally unlike the solid
masonic structure devised by Mr. Hosking for the exhibition of
sculpture. The two plans neither did, nor do, strike me as having
any resemblance to each other, and that is what I meant to
express in my note of last July. The architectural features of the
present dome I am answerable for, not you, and it is obviously as
unlike the Pantheon as any two domes can be. It was Michael
Angelo’s cupola of St. Peter which suggested the present lines of
yours.
Yours, &c., &c.,
Sydney Smirke.
Neither Panizzi nor Hosking lacked supporters amongst the
numerous critics and judges who, as a matter of course, came
forward on such an occasion; and a war, supported by
newspapers on either side, was vigorously carried on for
upwards of a year. Into the details of the controversy it would be
tedious and irrelevant to enter; but whoever will undertake
impartially to peruse the records of it (many of which are still
extant), will have neither doubt nor difficulty in ascribing the
victory to Panizzi.
But as “there is a river in Macedon and there is, moreover, a
river at Monmouth,” so it must be admitted that there were, at
least, three sterling points of resemblance between the two
designs. They are as follows:—1st. That for each was chosen the
same plot of ground, but that the merit of originality in such
89.
Welcome to ourwebsite – the perfect destination for book lovers and
knowledge seekers. We believe that every book holds a new world,
offering opportunities for learning, discovery, and personal growth.
That’s why we are dedicated to bringing you a diverse collection of
books, ranging from classic literature and specialized publications to
self-development guides and children's books.
More than just a book-buying platform, we strive to be a bridge
connecting you with timeless cultural and intellectual values. With an
elegant, user-friendly interface and a smart search system, you can
quickly find the books that best suit your interests. Additionally,
our special promotions and home delivery services help you save time
and fully enjoy the joy of reading.
Join us on a journey of knowledge exploration, passion nurturing, and
personal growth every day!
ebookbell.com