Developing Responsive Web Applications with AJAX and jQuery 1st Edition Sandeep Kumar Patel - Download the full ebook now for a seamless reading experience
Developing Responsive Web Applications with AJAX and jQuery 1st Edition Sandeep Kumar Patel - Download the full ebook now for a seamless reading experience
https://ebookultra.com/download/flask-web-development-developing-web-
applications-with-python-2nd-edition-miguel-grinberg/
https://ebookultra.com/download/developing-web-components-ui-from-
jquery-to-polymer-1st-edition-jarrod-overson/
https://ebookultra.com/download/build-your-own-ajax-web-
applications-1st-edition-matthew-eernisse/
Responsive Web Design with HTML5 and CSS3 2nd Edition Ben
Frain
https://ebookultra.com/download/responsive-web-design-with-html5-and-
css3-2nd-edition-ben-frain/
AJAX and PHP Building Modern Web Applications 2nd Edition
Bogdan Brinzarea
https://ebookultra.com/download/ajax-and-php-building-modern-web-
applications-2nd-edition-bogdan-brinzarea/
https://ebookultra.com/download/ajax-creating-web-pages-with-
asynchronous-javascript-and-xml-1st-edition-edmond-woychowsky/
https://ebookultra.com/download/developability-of-biotherapeutics-
computational-approaches-1st-edition-sandeep-kumar/
https://ebookultra.com/download/developing-web-apps-with-haskell-and-
yesod-2nd-edition-michael-snoyman/
https://ebookultra.com/download/developing-applications-with-
enterprise-soa-1st-edition-martin-huvar/
Developing Responsive Web Applications with AJAX and
jQuery 1st Edition Sandeep Kumar Patel Digital Instant
Download
Author(s): Sandeep Kumar Patel
ISBN(s): 9781782162209, 1783980362
Edition: 1
File Details: PDF, 5.72 MB
Year: 2014
Language: english
Developing Responsive
Web Applications with
AJAX and jQuery
BIRMINGHAM - MUMBAI
Developing Responsive Web Applications with AJAX
and jQuery
All rights reserved. No part of this book may be reproduced, stored in a retrieval
system, or transmitted in any form or by any means, without the prior written
permission of the publisher, except in the case of brief quotations embedded in
critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy
of the information presented. However, the information contained in this book is
sold without warranty, either express or implied. Neither the author, nor Packt
Publishing, and its dealers and distributors will be held liable for any damages
caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
ISBN 978-1-78328-637-9
www.packtpub.com
Reviewers Proofreaders
Fernando Doglio Simran Bhogal
Md. Zahid Hasan Paul Hindle
Mohammad Amzad Hossain
Indexers
Jake Kronika
Hemangini Bari
Copy Editors
Roshni Banerjee
Sarang Chari
Janbal Dharmaraj
Gladson Monteiro
Deepa Nambiar
Karuna Narayanan
Adithi Shetty
About the Author
Fernando Doglio has been working as a web developer for the past 10 years.
During that time, he fell in love with the Web and has had the opportunity of
working with most of the leading technologies such as PHP, Ruby on Rails,
MySQL, Node.js, AngularJS, AJAX, REST APIs, and others.
In his spare time, he likes to tinker and learn new things, which is why his
GitHub account keeps getting new repos every month. He's also a big open
source supporter and tries to win the support of new people with the help
of his site: http://www.lookingforpullrequests.com/. He can be contacted
on Twitter at @deleteman123.
When not programming, he can be seen spending time with his family.
Md. Zahid Hasan is a professional web developer. He got his BSc and MSc in
Information and Communication Engineering from University of Rajshahi (RU),
Rajshahi. Now, he is working as a Lecturer in the department of Computer Science
and Engineering at Green University of Bangladesh. He previously worked as a
Software Developer at SEleven IT Limited for 2 years in Bangladesh.
He has a wide range of technical skills, Internet knowledge, and experience across
the spectrum of online development in the service of building and improving online
properties for multiple clients. He enjoys creating site architecture and infrastructure,
backend development using open source tools such as Linux, Apache, MySQL,
and PHP (LAMP), and frontend development with CSS and HTML/XHTML.
Mohammad Amzad Hossain has 7 years of experience building large-scale
complex websites and web applications. He works as a Branch Manager in Sourcetop
Inc. where he leads an offshore team in Dhaka, Bangladesh. His day-to-day life
requires him to plan, analyze, guide, and provide solutions for complex requirements.
In his free time, he digs into recent trends in web development and follows hundreds
of RSS that help him to keep up in the fast-track world of development. He has a BSc
degree in Computer Science Engineering.
He began his career early in life using online tools for static content and rapidly
progressed to building dynamic applications incorporating databases and server-side
scripting languages. He has been a Senior User Interface Software Engineer at ADP
Dealer Services in Seattle, WA, USA from 2011. Prior to this, he occupied numerous
senior-level positions in the UI space in Chicago, IL. He has also balanced considerable
freelance work under a sole proprietorship named Gridline Design & Development,
accessible at http://gridlined.com/, online since 1999.
Over the past several years, particularly as the HTML, CSS, and JavaScript portions
of websites have experienced rapid evolution, he has continually sought out and
digested new technological knowledge through reading, personal and client projects,
and other means. Some of his favorite current tools include Node.js and AngularJS,
Less/Sass, and Git VCS.
Prior to this book, he was a technical reviewer for the following Packt
Publishing titles:
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 [email protected] 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.
TM
http://PacktLib.PacktPub.com
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital
book library. Here, you can access, read and search across Packt's entire library of books.
Why subscribe?
• Fully searchable across every book published by Packt
• Copy and paste, print and bookmark content
• On demand and accessible via web browser
[ ii ]
Table of Contents
[ iv ]
Table of Contents
[v]
Preface
Welcome to Developing Responsive Web Applications with AJAX and jQuery. If you
want to learn and understand responsive layout development or social application
integration using AJAX and jQuery, then this book is for you. It covers a systematic
approach for building a responsive web application.
All the key features of a responsive application are explained with the detailed
code. It also explains how to debug and test a responsive web application
during development.
Chapter 2, Creating a Responsive Layout for a Web Application, explains how to develop
a layout that will support different screen sizes to render using Bootstrap 3.
Chapter 6, Google+ Integration, shows how to integrate the Google+ login and +1
feature into the web application.
Preface
Chapter 7, Linking Dynamic Content from External Websites, explains how to integrate
the YouTube API to embed a recommended video into a web application.
Chapter 9, Integrating the Google Currency Converter with Your Web Application,
explains how to integrate the Google Currency API to help a user see the amount
in a different currency.
Chapter 10, Debugging and Testing, introduces the different available online and offline
tools to test a responsive application during development.
Conventions
In this book, you will find a number of styles of text that distinguish between
different kinds of information. Here are some examples of these styles, and an
explanation of their meaning.
[2]
Preface
Code words in text, database table names, folder names, filenames, file extensions,
pathnames, dummy URLs, user input, and Twitter handles are shown as follows:
"The data-toggle attribute has the value for the effect property such as collapse."
New terms and important words are shown in bold. Words that you see on
the screen, in menus or dialog boxes for example, appear in the text like this:
"The Arguments option is for passing additional arguments."
[3]
Preface
Reader feedback
Feedback from our readers is always welcome. Let us know what you think about
this book—what you liked or may have disliked. Reader feedback is important for
us to develop titles that you really get the most out of.
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 on www.packtpub.com/authors.
Customer support
Now that you are the proud owner of a Packt book, we have a number of things to
help you to get the most from your purchase.
Errata
Although we have taken 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 would 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 on our website, or added to any list of
existing errata, under the Errata section of that title. Any existing errata can be viewed
by selecting your title from http://www.packtpub.com/support.
[4]
Preface
Piracy
Piracy of copyright material 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.
We appreciate your help in protecting our authors, and our ability to bring you
valuable content.
Questions
You can contact us at [email protected] if you are having a problem with
any aspect of the book, and we will do our best to address it.
[5]
Other documents randomly have
different content
an old blind Indian named Waterman was nearly suffocated when the
cowboys released him. The Indians having abandoned him refused to
care for him further and he became a burden on the whites.
At the time of the white settlement of the Virgin River Valley in the
50’s and 60’s, there were perhaps a thousand Parrusits in various
bands along the stream with their principal camping places near
Rockville, Virgin City, Toquerville, Washington Fields and Santa Clara.
These all appear to have recognized the leadership of Chief Tut-se-
gavits, head of the Tonaquint band living on the Santa Clara Creek,
and to have been held together under regular tribal control.
Yearly expeditions are fitted out in New Mexico to trade with the
Pah-Utahs for their children and recourse is often had to foul
means to force their parents to part with them. So common is it to
make a raid for this purpose, that it is considered as no more
objectionable than to go on a buffalo or a mustang hunt. One of
our men, Jose Galliego [sic], who was an old hand at this species
of man-hunting, related to us with evident gusto, numerous
anecdotes on this subject; and as we approached the village he
rode up to Mr. Beale and eagerly proposed to him that we should
“charge on it like h—l, kill the mans, and maybe catch some of the
[6]
little boys and gals.”
Within a few years, farm crops and livestock brought to the whites
more food and clothing than the Indians had ever dreamed of. No
wonder they became beggars in the towns and thieves of cattle and
horses on the range. As long as the whites were in the minority, they
used to feed the Indians. In the words of John Dennett, an old settler
of Rockville, this “gave them an idea of some other kind of food
beside grass seed and wild game.”
Not only was their food supply reduced, but the whites also spread
strange maladies among the Indians. Measles and smallpox are
known to have been fatal in many cases. When Silver Reef, a mining
town of 1500 people, was flourishing in the 70’s and 80’s it is known
that venereal diseases were spread among the Indians. Fatalities
from disease and the diminution of food supplies were undoubtedly
heavy factors in the drastic reduction of the Indian population. Of the
estimated thousand Parrusits living along the Virgin River in the 50’s
and 60’s, there was only one survivor (until his death in June, 1945),
an old fellow called Peter Harrison, who lived among the Shivwits
Indians on the Santa Clara reservation.
Asked to account for this tragedy, the old Kaibabits Indian George
explained it this way: “When white man come, lotsa Injuns here; alla
same white man now. Injuns heap yai-quay [meaning lots of them
die]; maybe so six, maybe so five, maybe so two in night. Purty soon
all gone. White man, he come: raise’m pompoose. Purty soon lotsa
white man.”
123
Early Explorations
Zion Canyon was known to the Indians from time immemorial, but its
discovery by white men, so far as is known, dates only from the
middle of the 19th century. However, the series of explorations in this
region which finally led to its discovery cover the period of three
quarters of a century beginning in 1776.
The expedition set out July 29, 1776 from Santa Fe, passing through
explored territory as far as the Gunnison river in southwestern
Colorado, whence it struck out into the unknown. The priests were
fortunate in finding a couple of young Ute Indians from Utah Lake,
who acted as guides and who led them safely across the Colorado
(Grand) and Green Rivers up the Duchesne to its headwaters and
across the Wasatch Range to their home on Utah Lake.
Obtaining fresh guides, the party proceeded about two hundred miles
into the deserts of southwestern Utah to Black Rock Springs near
Milford, heading for the Pacific coast. They had been longer than
expected on their journeyings. Fall was rapidly advancing. A snowfall
on October 5 dashed their hopes of being able to cross the great
Sierras still blocking their path to Monterey. Provisions were getting
low and they were a long way from either Monterey or Santa Fe.
Casting of lots determined that they should go back home.
It was on this detour that they discovered the Virgin River and came
closest to Zion Canyon. The party left the vicinity of Cedar City,
crossed over the rim of the Great Basin at Kanarra and descended
Ash Creek, tributary of the Virgin. A short distance below Toquerville
they passed the three Indian cornfields with well made irrigation
ditches, to which reference has already been made, and reached the
Virgin River at the point where Ash Creek and La Verkin Creek joined
it. Escalante called Ash Creek the Rio del Pilar. The main stream of
the Virgin River above this point he named the Sulphur River because
of the hot sulphur springs that flow into the stream about a mile
distant from the point where the great Hurricane Fault crosses the
river.
The party climbed out of the canyon alongside a volcanic ash cone or
crater standing north of the present town of Hurricane. While some
of the members of the party probably lingered to investigate the hot
sulphur springs, others went ahead across the Hurricane bench and
striking some Indian tracks, followed them out of the proper route
and found themselves in the midst of an area of red sand dunes
several miles in extent, sometimes called the Red Desert. This may
be seen from the road approaching Zion from either St. George or
Cedar City.
The sand dunes made traveling very difficult and by the time the
party had plowed its way through and stood on top of a high bluff
overlooking the corrugated valley below, both the horses and men
were so tired they could scarcely make their way down the bluff to
water at the site of old Fort Pearce. Here they found a desert shrub,
the creosote bush (Hediondilla) and tamarisk trees (supposed to have
been introduced from the old world).
Here their provisions became exhausted, and from then on they had
to subsist largely upon horse flesh and such food as they could
procure from the Indians. The next morning, as they started on their
journey, they met a group of the Parrusits Indians who were living in
scattered bands along the Upper Virgin River, forming one of the
dozen or more clans belonging to the Paiute tribe, and who warned
them that they were headed toward the Grand Canyon at a place
where it could not be forded. After much persuasion they agreed to
show the explorers a route by which they could climb the Hurricane
Fault and proceed eastward toward a ford of the Colorado.
The Indians led them four or five miles up a narrow canyon along a
footpath that became so steep and ledgy that the horses and 125
mules could not follow. Perceiving this, the Indians fled and
the party was forced to retrace the rocky trail to the foot and press
southward again, crossing the present line into Arizona. They became
suspicious that the Indians were purposely misdirecting them.
That night they made a dry camp, and having neither food nor water,
both men and animals suffered intensely. Early next day they found
water but after traveling about twenty-five miles some of the men
were so weak and hungry they had to stop to rest. After ransacking
their camp outfit, they found odds and ends enough to satisfy their
worst needs.
At this point they found a way to climb the bold face of the Hurricane
Fault. Hungry and thirsty, they headed for rough country to the
southeast where they found water after about eighteen miles. They
also found Indians from whom they procured some food. Again being
warned by the Indians of the great impassable Grand Canyon ahead
they swung off sharply to the northeast.
The journey lasted from July 29, 1776 to January 2, 1777. It covered
a circuitous route through four states and the priests had been
pathbreakers in new and unexplored territory. One objective, the
route to the Pacific coast, had not been attained, but the other, that
of locating sites for missions, had been abundantly fulfilled. Many
possibilities were marked along the route, but apparently none gave
the Fathers more satisfaction than the prospects among the Parrusits
Indians on the Pilar River (now Ash Creek and Virgin River) who were
already farmers.
Still later, other Spaniards developed the route from Santa Fe to the
Pacific coast which the Fathers had failed to do. Known as the Old
Spanish Trail, this passed northwestward from Santa Fe through
southwestern Colorado and central Utah and then southwestward to
Los Angeles. It crossed Escalante’s trail near Cedar City. But before
this route was developed, other explorers had opened the way.
On his first trip of 1826, he followed the Virgin River down through
the narrows below the mouth of the Santa Clara, a hazardous
undertaking since most of the channel is barely wide enough to
accommodate the stream. This would have involved much wading of
the stream over shifting quicksand, through deep holes and around
giant rocks and boulders. On his second trip, a year later, he avoided
these narrows by going up Corn Creek (Santa Clara) about twenty
five miles, crossing over a pass to the drainage into Beaver Dam
Wash which he followed down to the Virgin, rejoining his old route
[11]
about ten miles below the narrows.
These pioneering trips of Smith’s not only opened two new routes to
the Pacific, westward and southwestward, but his reports of his
travels and stories of adventure undoubtedly incited others to 128
follow. One of these was George C. Yount, who was in the
mountains with Smith for several months. Smith’s stories inflamed in
him a desire to visit California. In the fall of 1830, Yount joined a
party organized by William Wolfskill at Santa Fe for the purpose of
reaching the coast. Coming up through the corner of Colorado and
eastern Utah, they reached the Sevier River, probably through Salina
Canyon, arrived at the Virgin River and followed it down to the
Colorado. The story of this trip was told by Yount in his old age and
the details of the route are not precise, but it appears that his party
[12]
must have attempted to follow Smith’s trail. It is probable that
these explorations had a great deal to do with the development of
[13]
the Old Spanish Trail, then in its formative stages.
Fremont followed the route from the coast past Las Vegas and
encamped on the Muddy River after a fifty to sixty mile jaunt across
the parched desert, sixteen hours of uninterrupted traveling 129
without water. The Indians were numerous and insulting,
evidently intent upon raiding the camp and stealing anything they
could. Horses fatigued and left behind the night before were found
butchered the next morning. The party remained in camp all day on
May 5, 1844, to let their animals recuperate from the hard trip of the
day before. They remained constantly armed and on watch. Fremont
called the natives Digger Indians. They fed largely upon lizards and
other small animals of the desert. Many of them carried long sticks,
hooked at the end for extracting lizards from the rocks.
After a day of rest (May 13) at the Meadows, Fremont pushed to the
northeast across the south end of the Great Basin until he 130
reached the Little Salt Lake near Paragonah. Here he left the
Old Spanish Trail and cut off to the north along the edge of the
desert at the western foot of the mountains. On May 20 he met a
band of Ute Indians under the leadership of the well known chief,
Walker (Wah-kerr), journeying southward to levy the annual toll upon
the California caravan. Fremont says, “They were all mounted, armed
with rifles, and use their rifles well.... They were robbers of a higher
order than those of the desert. They conducted their depredations
with form and under the color of trade and toll for passing through
their country. Instead of attacking and killing, they affect to purchase,
taking the horses they like and giving something nominal in return.”
Early Mormon Settlement
While trade between California and New Mexico was beating the path
of the Old Spanish Trail into a road across southwestern Utah, events
elsewhere were leading to the elimination of Spanish influence and
the rise of Anglo-Saxon power. The Mexican War ended Spanish
domination, but it was the Mormon migrations which were to fill the
region with settlements.
In 1847, the Mormons began to move west from the Missouri River to
the Great Salt Lake Valley. The precedent of Texas breaking away
from Mexico was before them as they traveled across the plains to
enter Mexican territory, where they would be free from those who
had persecuted them, and where they would be practically isolated
from Mexican authority by the barrier of the Grand Canyon. What
dreams of empire held their thoughts as they trekked across the
[17]
plains can only be conjectured.
During the first few years of settlement, there was little change in
governmental organization and the people were for the most part
guided and controlled by their religious leaders. In March, 1849, they
set up a provisional government for their proposed State of 131
[18]
Deseret. In 1851, however, Congress carved this western
empire into territories, paying no attention to the proposed State and
designating its heart as the Territory of Utah (named for the
dominant Indian nation of the region, the Utes or Utahs). The
Mormon dreams were thus dimmed, but they did not finally die until
1858, when Albert Sydney Johnston’s army marched to Utah and
completely ended all hopes of an independent political unit.
Thereafter, the Mormon attitude gradually changed from one of open
opposition to one of conditioned loyalty and the long struggle for
[19]
statehood began.
Altogether there were about 125 wagons and 1,000 head of cattle.
The Argonauts were a nondescript lot, everyone intent upon his own
personal problems and not actuated by a common ideal as were the
Mormons. They caused Hunt a great deal of trouble and even
threatened his life over certain details of the trip. Dissensions arose
which split the party several times. At last, near the rim of the Great
Basin not far from the Mountain Meadows, most of them left him for
a supposed cutoff via Walker’s Pass in the Sierras. Hunt, in peace,
safely piloted the remaining six or seven wagons to the coast. The
[23]
party taking the cutoff ended in disaster in Death Valley. Captain
Hunt stayed in California more than a year and returned to Utah early
in 1851.
Here it was decided to divide the party, some to guard the 133
recuperating cattle, while twenty of the men with horses and
mules were to push the exploration southward. Those who remained
moved their camp to Birch Creek (now Parowan) and while waiting
explored the surrounding region. Some went up Parowan Canyon
where they discovered accessible timber, plaster of paris (gypsum),
water lime (limestone) and iron ore.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookultra.com